Download the PHP package spora-ai/spora-plugin-media-archive-frontend without Composer

On this page you can find all versions of the php package spora-ai/spora-plugin-media-archive-frontend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spora-plugin-media-archive-frontend

spora-plugin-media-archive-frontend

Pre-built Vue SPA for the Spora Media Archive admin panel. Delivered as a Composer package of type spora-plugin-frontend; spora-installer's SporaPluginFrontendInstaller copies this repo's frontend/ directory into public/plugins/media-archive/ so the host SPA can lazy-load it via /plugins/media-archive/main.js. The directory name comes from this package's composer.json#extra.spora-plugin-slug (media-archive), which must equal the parent plugin's plugin.json#slug — there is no fallback to the package name.

Why a separate repo from the PHP plugin?

Detail-drawer affordances

The detail drawer (right-side panel that opens when a card is selected) covers the operational lifecycle of a media asset:

Grid pagination

The panel's shape

The panel is a folder rail on the left and the grid on the right:

Scope

The scope dropdown replaces the old ALL / My Media / Group A / … chip row:

Folder tree

The rail carries a tree of the media library's folders, built on the client from the flat parent_id list the server returns:

Creating a folder

The rail's New folder button opens a dialog — the upload dialog's shape, because both are the operator's dialog:

Filing an asset into a folder

Two ways, both making the same PATCH /media/{id} with a folder_id:

HTML drag and drop needs a mouse; on a touch screen the detail page's picker is the way.

Picking a folder

MediaFolderPicker.vue is the one component that picks a folder, and the detail page and the upload dialog both use it. It draws the tree the folders' parent_id describes, indented — a <select> lists the folders flat, and a folder called "2026" under "Corporate" would be indistinguishable from one under "Templates".

The folder filter

The rail offers two roots: All media (the whole library) and All media without a folder (the assets filed in no folder). They are exclusive on the wire — ?folder_id= names one folder, ?unfiled=true names the assets in none, and the server ignores the flag when a folder is named.

MediaFolderFilter ({ kind: 'all' | 'folder' | 'unfiled' }) is the one value the rail, the grid and the drag-and-drop work with; the wire query keeps the two filters apart because the server does.

Selecting several assets

The toolbar's Select button turns the selection mode on. Every card grows a tick, a click toggles the asset instead of opening its detail page, and the bar under the toolbar counts the selection and offers Move to folder and Delete.

Kind filter

An asset / template / example dropdown in the toolbar, plus an unfiltered state:

Tailwind and the transform defaults

The plugin ships no preflight — the host owns the document-level resets — and Tailwind v3 emits its --tw-translate-x, --tw-rotate, --tw-scale-x defaults in the same base rule as its preflight. A transform utility reads them:

Without the defaults the declaration references variables that do not exist, so it is invalid at computed-value time and the element keeps transform: none — the utility silently does nothing. The host's Tailwind v4 does not define them either, so there is nothing to borrow.

The panel therefore avoids transform utilities altogether: centring is inset-y-0 my-auto, and the drawer slides on left. That is why the search icon sits centred in its field instead of half a line off, and why the drawer goes off-screen on a narrow one.

Upload

Build

The build output (main.js + style.css) is not committed — it is gitignored and built by the release workflow, which packs frontend/ verbatim into the GitHub Release tarball the Composer package points at. Operators get the new bundle on the next composer update. See RELEASING.md.

Dev mode (plugin author)

The host SPA proxies /plugins/media-archive to :5174 so editing src/* updates the panel without rebuilding the host. The proxy is not hard-coded: start the host with SPORA_PLUGIN_DEV_PORTS=media-archive:5174 npm run dev and it installs one per listed slug. See https://docs.spora-ai.com/develop/plugins/local-development.html for the dev workflow.

The dev sandbox reads ?locale=de from the query string, so the panel can be rendered in German without a backend.

Translations

The panel ships its own catalogue under src/locales/. en.json is generated from the source — the key is the English string — and de.json is hand-edited.

npm run i18n:check also fails on operator-facing copy that is not wrapped in t(), so a new string cannot ship untranslated by accident.

Catalogue grammar

This panel's rule 0 asks vue-i18n's own message compiler whether a key compiles, so the catalogue may use the interpolation syntax it was always meant to: {name} and the | plural separator. Fifteen keys in de.json do.

The host's extractor is stricter — it rejects any key carrying a raw {, } or |, and the host's own catalogue therefore holds no unescaped placeholder. The two grammars never meet: this panel's catalogue is read by this panel's extractor, the host's by the host's, and the host's i18n:check harvests the framework's own sources and never opens a plugin's catalogue.

That makes the difference a contract divergence rather than a break, and vue-i18n compiles at render either way. It is also stable under the merge: a key is the English source text, so a string present in both catalogues carries the same placeholders in both. Do not rewrite this panel's keys to satisfy the host's rule, and do not loosen the host's rule to match this one.

Mount contract

The IIFE bundle installs window.SporaAppMediaArchive (the PascalCase of the slug) with two methods:

The host's apps/registry.ts reads both. The bundle names must stay aligned with media-archive → SporaAppMediaArchive (see vite.config.ts → build.lib.name).

License

MIT — see LICENSE.


All versions of spora-plugin-media-archive-frontend with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spora-ai/spora-plugin-media-archive-frontend contains the following files

Loading the files please wait ...