Sync folders
This commit is contained in:
parent
58a7fc405c
commit
20c4ea5875
12 changed files with 80 additions and 94 deletions
BIN
ansico-plugins-1.0.0.zip
Normal file
BIN
ansico-plugins-1.0.0.zip
Normal file
Binary file not shown.
BIN
ansico-plugins-1.0.0.zip:Zone.Identifier
Normal file
BIN
ansico-plugins-1.0.0.zip:Zone.Identifier
Normal file
Binary file not shown.
|
|
@ -1,62 +1,45 @@
|
||||||
# Ansico Plugins
|
# Ansico Plugins
|
||||||
|
|
||||||
Version: 0.0.0.1
|
Version: 1.0.0
|
||||||
|
Contributor: aphandersen
|
||||||
Forfatter: Andreas Andersen (Ansico)
|
Forfatter: Andreas Andersen (Ansico)
|
||||||
URL: https://ansico.dk
|
Author URL: https://ansico.dk
|
||||||
|
Support URL: https://ansico.dk/Ansico/Ansico-plugins
|
||||||
|
Licens: GPL-3.0-or-later
|
||||||
|
Testet på WordPress: 6.9.4
|
||||||
|
Kræver PHP: 7.0
|
||||||
|
|
||||||
|
## Beskrivelse
|
||||||
|
|
||||||
|
Gives access to Ansico plugin directory with Ansico plugins.
|
||||||
|
|
||||||
## Formål
|
## Formål
|
||||||
|
|
||||||
Dette plugin gør det muligt at forbinde et WordPress-site til en Forgejo-server og bruge udvalgte repositories som et privat plugin-katalog.
|
Dette plugin forbinder WordPress til Ansico's Forgejo-server og giver adgang til Ansico plugins gennem et privat plugin-katalog.
|
||||||
|
|
||||||
## Hvad kan pluginet i denne version?
|
## Funktioner
|
||||||
|
|
||||||
- Gemme forbindelsesoplysninger til Forgejo
|
- Viser interne plugin-repositories fra Ansico
|
||||||
- Teste forbindelsen til Forgejo
|
- Åbner en WordPress-lignende popup med plugin-detaljer
|
||||||
- Hente repositories fra en bruger eller organisation
|
- Kan installere, aktivere, geninstallere, opdatere og afinstallere plugins
|
||||||
- Filtrere repositories på topic
|
- Kan læse metadata fra repository og plugin-header
|
||||||
- Vise seneste release for hvert repository
|
- Kan vise `screenshot.png`, hvis filen findes i repository-roden
|
||||||
- Finde første ZIP-asset i seneste release
|
- Kan opdatere Ansico Plugins selv via release-systemet
|
||||||
- Installere pluginet direkte fra den ZIP-fil
|
- Leveres med Ansico-standardindstillinger og reset-knap
|
||||||
|
|
||||||
## Sådan opsætter du det
|
## Standardindstillinger
|
||||||
|
|
||||||
1. Installer og aktivér pluginet i WordPress.
|
Ved første installation er disse værdier udfyldt:
|
||||||
2. Gå til **Indstillinger → Ansico Plugins**.
|
|
||||||
3. Udfyld:
|
|
||||||
- **Forgejo base URL** – fx `https://forgejo.example.com/`
|
|
||||||
- **Bruger eller organisation** – den konto der ejer repos
|
|
||||||
- **Owner-type** – `Bruger` eller `Organisation`
|
|
||||||
- **Access token** – nødvendigt for private repos
|
|
||||||
- **Topic-filter** – fx `wordpress-plugin`
|
|
||||||
4. Gem indstillinger.
|
|
||||||
5. Klik på **Test forbindelse**.
|
|
||||||
6. Gå til **Plugins → Ansico Plugins**.
|
|
||||||
7. Klik på **Installér / opdatér** ud for det ønskede plugin.
|
|
||||||
|
|
||||||
## Krav til releases på Forgejo
|
- Forgejo URL: `https://ansico.dk`
|
||||||
|
- Bruger eller organisation: `Ansico`
|
||||||
|
- Access token: tom
|
||||||
|
- Topic-filter: `wordpress-plugin`
|
||||||
|
- Owner type: `Organisation`
|
||||||
|
- Selvopdatering: aktiv
|
||||||
|
- Ansico plugins owner: `Ansico`
|
||||||
|
- Ansico plugins repository: `Ansico-plugins`
|
||||||
|
|
||||||
Hver plugin-release bør have en ZIP-asset som:
|
## Release
|
||||||
- ender på `.zip`
|
|
||||||
- indeholder plugin-mappen i roden
|
|
||||||
- indeholder en gyldig WordPress-pluginfil
|
|
||||||
|
|
||||||
Eksempel:
|
Denne version er klargjort som officiel release `1.0.0`.
|
||||||
|
|
||||||
`mit-plugin.zip`
|
|
||||||
- `mit-plugin/`
|
|
||||||
- `mit-plugin/mit-plugin.php`
|
|
||||||
- `mit-plugin/includes/...`
|
|
||||||
|
|
||||||
## Begrænsninger i version 0.0.0.1
|
|
||||||
|
|
||||||
- Pluginet bruger første ZIP-fil i seneste release
|
|
||||||
- Ingen automatisk versionssammenligning i WordPress’ normale update-UI endnu
|
|
||||||
- Ingen changelog-modal endnu
|
|
||||||
- Ingen cachelagring af API-kald endnu
|
|
||||||
|
|
||||||
## Næste oplagte trin
|
|
||||||
|
|
||||||
- Integrere med WordPress’ normale plugin-opdateringer
|
|
||||||
- Understøtte manifest-fil pr. repo
|
|
||||||
- Understøtte changelog og plugin-detaljer
|
|
||||||
- Tilføje caching og bedre fejlvisning
|
|
||||||
|
|
|
||||||
BIN
ansico-plugins/README.md:Zone.Identifier
Normal file
BIN
ansico-plugins/README.md:Zone.Identifier
Normal file
Binary file not shown.
|
|
@ -2,20 +2,25 @@
|
||||||
/**
|
/**
|
||||||
* Plugin Name: Ansico Plugins
|
* Plugin Name: Ansico Plugins
|
||||||
* Plugin URI: https://ansico.dk
|
* Plugin URI: https://ansico.dk
|
||||||
* Description: Privat plugin-directory til Forgejo. Giver overblik over plugins, test af forbindelse og mulighed for installation/opdatering fra seneste release-ZIP.
|
* Description: Gives access to Ansico plugin directory with Ansico plugins
|
||||||
* Version: 0.0.0.35
|
* Version: 1.0.0
|
||||||
* Author: Andreas Andersen (Ansico)
|
* Author: Andreas Andersen (Ansico)
|
||||||
* Author URI: https://ansico.dk
|
* Author URI: https://ansico.dk
|
||||||
|
* Contributors: aphandersen
|
||||||
|
* Support URI: https://ansico.dk/Ansico/Ansico-plugins
|
||||||
|
* License: GPL-3.0-or-later
|
||||||
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
* Tested up to: 6.9.4
|
||||||
* Text Domain: ansico-plugins
|
* Text Domain: ansico-plugins
|
||||||
* Requires at least: 6.3
|
* Requires at least: 6.3
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 7.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('ABSPATH')) {
|
if (!defined('ABSPATH')) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define('ANSICO_PLUGINS_VERSION', '0.0.0.35');
|
define('ANSICO_PLUGINS_VERSION', '1.0.0');
|
||||||
define('ANSICO_PLUGINS_MANAGED_OPTION', 'ansico_plugins_managed_plugins');
|
define('ANSICO_PLUGINS_MANAGED_OPTION', 'ansico_plugins_managed_plugins');
|
||||||
define('ANSICO_PLUGINS_FILE', __FILE__);
|
define('ANSICO_PLUGINS_FILE', __FILE__);
|
||||||
define('ANSICO_PLUGINS_DIR', plugin_dir_path(__FILE__));
|
define('ANSICO_PLUGINS_DIR', plugin_dir_path(__FILE__));
|
||||||
|
|
|
||||||
BIN
ansico-plugins/ansico-plugins.php:Zone.Identifier
Normal file
BIN
ansico-plugins/ansico-plugins.php:Zone.Identifier
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,56 +1,54 @@
|
||||||
=== Ansico Plugins ===
|
=== Ansico Plugins ===
|
||||||
Contributors: ansico
|
Contributors: aphandersen
|
||||||
Tags: forgejo, plugins, private directory
|
Tags: forgejo, plugins, private directory, ansico
|
||||||
Requires at least: 6.3
|
Requires at least: 6.3
|
||||||
Tested up to: 6.8
|
Tested up to: 6.9.4
|
||||||
Requires PHP: 7.4
|
Requires PHP: 7.0
|
||||||
Stable tag: 0.0.0.3
|
Stable tag: 1.0.0
|
||||||
License: GPLv2 or later
|
License: GPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
Privat plugin-directory til Forgejo.
|
Gives access to Ansico plugin directory with Ansico plugins.
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
|
|
||||||
Ansico Plugins forbinder et WordPress-site til en Forgejo-server og viser udvalgte repositories som et privat plugin-katalog.
|
Ansico Plugins gives WordPress access to Ansico's private Forgejo-based plugin directory and lets administrators install, activate, reinstall, update, and delete internal plugins from Ansico releases.
|
||||||
|
|
||||||
Funktioner i version 0.0.0.2:
|
= Features =
|
||||||
- Indstillingsside under Indstillinger → Ansico Plugins
|
|
||||||
- Test af Forgejo-forbindelse
|
* Connects WordPress to Ansico's Forgejo server.
|
||||||
- Filtrering af repositories via topic
|
* Lists internal plugin repositories from Ansico.
|
||||||
- Oversigt over repos under Plugins → Ansico Plugins
|
* Reads plugin metadata and README content from repositories.
|
||||||
- Installation/opdatering fra første ZIP-fil i seneste release
|
* Opens a WordPress-style details popup for each plugin.
|
||||||
- Native update-check i WordPress for plugins installeret via Ansico Plugins
|
* Installs plugins from the latest Forgejo release ZIP.
|
||||||
- Enkel plugin-information og changelog til WordPress' detaljevisning
|
* Supports activate, reinstall, update, and delete actions.
|
||||||
- Enkel caching af Forgejo API-kald
|
* Supports self-updates for Ansico Plugins itself.
|
||||||
|
* Includes Ansico default settings and a reset button.
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
1. Upload plugin-mappen til /wp-content/plugins/ eller installer ZIP-filen.
|
1. Upload the plugin ZIP through WordPress, or copy the plugin folder to `/wp-content/plugins/`.
|
||||||
2. Aktivér pluginet i WordPress.
|
2. Activate **Ansico Plugins**.
|
||||||
3. Gå til Indstillinger → Ansico Plugins.
|
3. Open **Settings -> Ansico Plugins**.
|
||||||
4. Udfyld Forgejo base URL, owner/org og eventuelt access token.
|
4. Review the default Ansico settings or click **Reset til Ansico standard**.
|
||||||
5. Gem indstillinger og test forbindelsen.
|
5. Open **Plugins -> Ansico Plugins** to browse available plugins.
|
||||||
6. Gå til Plugins → Ansico Plugins og installér fra seneste release.
|
|
||||||
7. Senere vil WordPress kunne opdage nye releases som opdateringer for plugins, der er installeret via Ansico Plugins.
|
|
||||||
|
|
||||||
== Release workflow på Forgejo ==
|
== Frequently Asked Questions ==
|
||||||
|
|
||||||
1. Marker relevante repos med topic "wordpress-plugin" eller et andet topic efter eget valg.
|
= Does it work without an access token? =
|
||||||
2. Opret en release.
|
|
||||||
3. Upload en ZIP-fil som release-asset.
|
Yes. Public Ansico repositories can be listed without a token. A token can still be added for private repositories or stricter API access.
|
||||||
4. Sørg for at ZIP-filen er installérbar i WordPress og har plugin-mappen i roden.
|
|
||||||
|
= Can Ansico Plugins update itself? =
|
||||||
|
|
||||||
|
Yes. Self-update support is built in and can check the configured Ansico Plugins repository for newer releases.
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
= 0.0.0.2 =
|
= 1.0.0 =
|
||||||
* Tilføjet native opdateringskontrol i WordPress for plugins installeret via Ansico Plugins.
|
* First stable release.
|
||||||
* Tilføjet plugin-information/changelog via plugins_api.
|
* WordPress-style plugin catalogue UI.
|
||||||
* Tilføjet enkel caching af Forgejo API-kald.
|
* Details popup with metadata and optional screenshot.
|
||||||
|
* Install, activate, reinstall, update, and delete actions.
|
||||||
= 0.0.0.1 =
|
* Self-update support for Ansico Plugins.
|
||||||
* Første MVP-version.
|
* Ansico default configuration and reset button.
|
||||||
|
|
||||||
= 0.0.0.3 =
|
|
||||||
* Fixed organization repository topic filtering by fetching repo details when needed.
|
|
||||||
* Topic filter is now case-insensitive.
|
|
||||||
|
|
|
||||||
BIN
ansico-plugins/readme.txt:Zone.Identifier
Normal file
BIN
ansico-plugins/readme.txt:Zone.Identifier
Normal file
Binary file not shown.
Loading…
Reference in a new issue