Sync folders
This commit is contained in:
parent
58a7fc405c
commit
ffd69386d6
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
|
||||
|
||||
Version: 0.0.0.1
|
||||
Version: 1.0.0
|
||||
Contributor: aphandersen
|
||||
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
|
||||
|
||||
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
|
||||
- Teste forbindelsen til Forgejo
|
||||
- Hente repositories fra en bruger eller organisation
|
||||
- Filtrere repositories på topic
|
||||
- Vise seneste release for hvert repository
|
||||
- Finde første ZIP-asset i seneste release
|
||||
- Installere pluginet direkte fra den ZIP-fil
|
||||
- Viser interne plugin-repositories fra Ansico
|
||||
- Åbner en WordPress-lignende popup med plugin-detaljer
|
||||
- Kan installere, aktivere, geninstallere, opdatere og afinstallere plugins
|
||||
- Kan læse metadata fra repository og plugin-header
|
||||
- Kan vise `screenshot.png`, hvis filen findes i repository-roden
|
||||
- Kan opdatere Ansico Plugins selv via release-systemet
|
||||
- Leveres med Ansico-standardindstillinger og reset-knap
|
||||
|
||||
## Sådan opsætter du det
|
||||
## Standardindstillinger
|
||||
|
||||
1. Installer og aktivér pluginet i WordPress.
|
||||
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.
|
||||
Ved første installation er disse værdier udfyldt:
|
||||
|
||||
## 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:
|
||||
- ender på `.zip`
|
||||
- indeholder plugin-mappen i roden
|
||||
- indeholder en gyldig WordPress-pluginfil
|
||||
## Release
|
||||
|
||||
Eksempel:
|
||||
|
||||
`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
|
||||
Denne version er klargjort som officiel release `1.0.0`.
|
||||
|
|
|
|||
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 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.
|
||||
* Version: 0.0.0.35
|
||||
* Description: Gives access to Ansico plugin directory with Ansico plugins
|
||||
* Version: 1.0.0
|
||||
* Author: Andreas Andersen (Ansico)
|
||||
* 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
|
||||
* Requires at least: 6.3
|
||||
* Requires PHP: 7.4
|
||||
* Requires PHP: 7.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
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_FILE', __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 ===
|
||||
Contributors: ansico
|
||||
Tags: forgejo, plugins, private directory
|
||||
Contributors: aphandersen
|
||||
Tags: forgejo, plugins, private directory, ansico
|
||||
Requires at least: 6.3
|
||||
Tested up to: 6.8
|
||||
Requires PHP: 7.4
|
||||
Stable tag: 0.0.0.3
|
||||
License: GPLv2 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tested up to: 6.9.4
|
||||
Requires PHP: 7.0
|
||||
Stable tag: 1.0.0
|
||||
License: GPL-3.0-or-later
|
||||
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 ==
|
||||
|
||||
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:
|
||||
- Indstillingsside under Indstillinger → Ansico Plugins
|
||||
- Test af Forgejo-forbindelse
|
||||
- Filtrering af repositories via topic
|
||||
- Oversigt over repos under Plugins → Ansico Plugins
|
||||
- Installation/opdatering fra første ZIP-fil i seneste release
|
||||
- Native update-check i WordPress for plugins installeret via Ansico Plugins
|
||||
- Enkel plugin-information og changelog til WordPress' detaljevisning
|
||||
- Enkel caching af Forgejo API-kald
|
||||
= Features =
|
||||
|
||||
* Connects WordPress to Ansico's Forgejo server.
|
||||
* Lists internal plugin repositories from Ansico.
|
||||
* Reads plugin metadata and README content from repositories.
|
||||
* Opens a WordPress-style details popup for each plugin.
|
||||
* Installs plugins from the latest Forgejo release ZIP.
|
||||
* Supports activate, reinstall, update, and delete actions.
|
||||
* Supports self-updates for Ansico Plugins itself.
|
||||
* Includes Ansico default settings and a reset button.
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Upload plugin-mappen til /wp-content/plugins/ eller installer ZIP-filen.
|
||||
2. Aktivér pluginet i WordPress.
|
||||
3. Gå til Indstillinger → Ansico Plugins.
|
||||
4. Udfyld Forgejo base URL, owner/org og eventuelt access token.
|
||||
5. Gem indstillinger og test forbindelsen.
|
||||
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.
|
||||
1. Upload the plugin ZIP through WordPress, or copy the plugin folder to `/wp-content/plugins/`.
|
||||
2. Activate **Ansico Plugins**.
|
||||
3. Open **Settings -> Ansico Plugins**.
|
||||
4. Review the default Ansico settings or click **Reset til Ansico standard**.
|
||||
5. Open **Plugins -> Ansico Plugins** to browse available plugins.
|
||||
|
||||
== Release workflow på Forgejo ==
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
1. Marker relevante repos med topic "wordpress-plugin" eller et andet topic efter eget valg.
|
||||
2. Opret en release.
|
||||
3. Upload en ZIP-fil som release-asset.
|
||||
4. Sørg for at ZIP-filen er installérbar i WordPress og har plugin-mappen i roden.
|
||||
= Does it work without an access token? =
|
||||
|
||||
Yes. Public Ansico repositories can be listed without a token. A token can still be added for private repositories or stricter API access.
|
||||
|
||||
= Can Ansico Plugins update itself? =
|
||||
|
||||
Yes. Self-update support is built in and can check the configured Ansico Plugins repository for newer releases.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 0.0.0.2 =
|
||||
* Tilføjet native opdateringskontrol i WordPress for plugins installeret via Ansico Plugins.
|
||||
* Tilføjet plugin-information/changelog via plugins_api.
|
||||
* Tilføjet enkel caching af Forgejo API-kald.
|
||||
|
||||
= 0.0.0.1 =
|
||||
* Første MVP-version.
|
||||
|
||||
= 0.0.0.3 =
|
||||
* Fixed organization repository topic filtering by fetching repo details when needed.
|
||||
* Topic filter is now case-insensitive.
|
||||
= 1.0.0 =
|
||||
* First stable release.
|
||||
* WordPress-style plugin catalogue UI.
|
||||
* Details popup with metadata and optional screenshot.
|
||||
* Install, activate, reinstall, update, and delete actions.
|
||||
* Self-update support for Ansico Plugins.
|
||||
* Ansico default configuration and reset button.
|
||||
|
|
|
|||
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