synchro du labo (0bf0da65) : app.blade.php, README.md
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# ◇ test-atelier
|
||||||
|
|
||||||
|
test-atelier-0
|
||||||
|
|
||||||
|
| | |
|
||||||
|
| --- | --- |
|
||||||
|
| id | `test-atelier` |
|
||||||
|
| fournit | — |
|
||||||
|
| bions qu'il nomme | `jOSApps` `jOSPorts` |
|
||||||
|
| fichiers | `app.blade.php` |
|
||||||
|
| dans le labo | `resources/views/ploxions/test-atelier/` (dépôt `my_website2`) |
|
||||||
|
|
||||||
|
## Contribuer
|
||||||
|
|
||||||
|
- **Dans le xer** : https://labo.j0bot.ch/px/atelier?ploxion=test-atelier — prends-le, modifie-le, vois-le tourner, « ⧗ envoyer le tsoin ».
|
||||||
|
- **Dans VS Code** : `xb prendre test-atelier` (ou l'extension xerboxion › ⇩ Prendre), puis ⧗ Envoyer.
|
||||||
|
- Le chemin complet : https://labo.j0bot.ch/px/contribuer
|
||||||
|
|
||||||
|
Ce dépôt est un **miroir** du labo (synchronisé par `bin/ploxions-forge.mjs`, depuis le commit `0bf0da65`) : une modif se propose par un tsoin ou une branche du labo, pas directement ici.
|
||||||
|
|
||||||
|
© 2026 chill-tekk · ne pas nuire
|
||||||
36
app.blade.php
Normal file
36
app.blade.php
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{{-- PL0XION test-atelier ✨ — né dans l'atelier 🛠 (décris-le ici). window.jOSApps['test-atelier'] = { manifest, mount -> { unmount }, describe }. --}}
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
var ID = 'test-atelier';
|
||||||
|
window.jOSApps = window.jOSApps || {};
|
||||||
|
if (window.jOSApps[ID]) return; // idempotent
|
||||||
|
|
||||||
|
function mount(container, ctx) {
|
||||||
|
container.innerHTML =
|
||||||
|
'<div style="padding:16px;font-family:system-ui;display:flex;flex-direction:column;gap:10px">' +
|
||||||
|
'<div style="font-weight:800;color:#3fe0d0">✨ test-atelier</div>' +
|
||||||
|
'<button data-go style="padding:9px;border-radius:8px;border:1px solid #3fe0d0;background:rgba(63,224,208,.12);color:#3fe0d0;font-weight:700;cursor:pointer">dire bonjour</button>' +
|
||||||
|
'<div data-msg style="font-family:monospace;color:#3fe0d0">salut, toi.</div>' +
|
||||||
|
'</div>';
|
||||||
|
|
||||||
|
var msg = container.querySelector('[data-msg]');
|
||||||
|
container.querySelector('[data-go]').addEventListener('click', function () {
|
||||||
|
msg.textContent = 'oh mon dieu ! un xerboxion !';
|
||||||
|
if (window.jOSPorts) { jOSPorts.emit(ID, 'bonjour', {}); } // parle au bus
|
||||||
|
});
|
||||||
|
|
||||||
|
return { unmount: function () { container.innerHTML = ''; } };
|
||||||
|
}
|
||||||
|
|
||||||
|
window.jOSApps[ID] = {
|
||||||
|
manifest: { id: ID, name: 'test-atelier', icon: '✨' },
|
||||||
|
mount: mount,
|
||||||
|
describe: function () {
|
||||||
|
return { v: 1, id: ID, title: 'test-atelier', icon: '✨', items: [
|
||||||
|
{ p: 1, kind: 'text', label: 'né dans l\'atelier' }
|
||||||
|
] };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user