@poadio/app-vue 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/LICENSE +22 -0
- package/README.md +16 -2
- package/app-vue.css +181 -0
- package/dist/browser.d.ts +23 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +112 -0
- package/dist/browser.js.map +1 -0
- package/dist/draft-toolbar.d.ts +65 -0
- package/dist/draft-toolbar.d.ts.map +1 -0
- package/dist/draft-toolbar.js +62 -0
- package/dist/draft-toolbar.js.map +1 -0
- package/dist/front-view.d.ts +39 -0
- package/dist/front-view.d.ts.map +1 -0
- package/dist/front-view.js +174 -0
- package/dist/front-view.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/items.d.ts +33 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +369 -0
- package/dist/items.js.map +1 -0
- package/dist/lazy.d.ts +56 -0
- package/dist/lazy.d.ts.map +1 -0
- package/dist/lazy.js +68 -0
- package/dist/lazy.js.map +1 -0
- package/dist/messages.d.ts +56 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +102 -0
- package/dist/messages.js.map +1 -0
- package/dist/sections/grid.d.ts +53 -0
- package/dist/sections/grid.d.ts.map +1 -0
- package/dist/sections/grid.js +46 -0
- package/dist/sections/grid.js.map +1 -0
- package/dist/sections/under-construction.d.ts +25 -0
- package/dist/sections/under-construction.d.ts.map +1 -0
- package/dist/sections/under-construction.js +32 -0
- package/dist/sections/under-construction.js.map +1 -0
- package/package.json +72 -4
- package/runtime-dist/app.css +535 -0
- package/runtime-dist/app.js +2 -0
- package/runtime-dist/c-0rxdxcn3.js +2 -0
- package/runtime-dist/c-0vbs937h.js +18 -0
- package/runtime-dist/c-0zqjsnm5.js +2 -0
- package/runtime-dist/c-13nx24wa.js +1 -0
- package/runtime-dist/c-16cdkp27.js +1 -0
- package/runtime-dist/c-16cm3n82.js +1 -0
- package/runtime-dist/c-1h49vkah.js +2 -0
- package/runtime-dist/c-1xpa1fqz.js +1 -0
- package/runtime-dist/c-29v2e09p.js +1 -0
- package/runtime-dist/c-2ag31260.js +2 -0
- package/runtime-dist/c-2s6r37jb.js +1 -0
- package/runtime-dist/c-2v244yc0.js +1 -0
- package/runtime-dist/c-3be398px.js +1 -0
- package/runtime-dist/c-3jm96b1p.js +2 -0
- package/runtime-dist/c-3pe5hprv.js +2 -0
- package/runtime-dist/c-3zbf5g3p.js +1 -0
- package/runtime-dist/c-4h51m4qq.js +1 -0
- package/runtime-dist/c-523qwqen.js +2 -0
- package/runtime-dist/c-572jz6y4.js +1 -0
- package/runtime-dist/c-64j9mv7a.js +1 -0
- package/runtime-dist/c-6f446pxt.js +1 -0
- package/runtime-dist/c-6pd33f4a.js +1 -0
- package/runtime-dist/c-6qa26wds.js +1 -0
- package/runtime-dist/c-6w0f1kqm.js +1 -0
- package/runtime-dist/c-72hj12cs.js +2 -0
- package/runtime-dist/c-7cjj18ea.js +1 -0
- package/runtime-dist/c-823yyjat.js +1 -0
- package/runtime-dist/c-8gpbevx2.js +1 -0
- package/runtime-dist/c-98tbntdq.js +2 -0
- package/runtime-dist/c-9sm6aybf.js +2 -0
- package/runtime-dist/c-a63rkaa9.js +1 -0
- package/runtime-dist/c-ahcj5yr5.js +1 -0
- package/runtime-dist/c-azvw5879.js +2 -0
- package/runtime-dist/c-b6g9ey7e.js +2 -0
- package/runtime-dist/c-bssc8kwn.js +1 -0
- package/runtime-dist/c-bvp9zbmr.js +1 -0
- package/runtime-dist/c-cc3m3rs1.js +2 -0
- package/runtime-dist/c-cp1ehb23.js +1 -0
- package/runtime-dist/c-cvsx6n6e.js +2 -0
- package/runtime-dist/c-d5y90g8f.js +1 -0
- package/runtime-dist/c-d8hfdner.js +2 -0
- package/runtime-dist/c-dqtdk937.js +1 -0
- package/runtime-dist/c-dzx0rg0g.js +2 -0
- package/runtime-dist/c-eczfywaq.js +1 -0
- package/runtime-dist/c-epemgj1a.js +2 -0
- package/runtime-dist/c-et83hbhc.js +1 -0
- package/runtime-dist/c-ffkh15py.js +1 -0
- package/runtime-dist/c-fn3059s1.js +2 -0
- package/runtime-dist/c-fnzeden9.js +1 -0
- package/runtime-dist/c-gen0a4bn.js +1 -0
- package/runtime-dist/c-gesjk5ph.js +1 -0
- package/runtime-dist/c-gkyekesy.js +15 -0
- package/runtime-dist/c-gs1k0twe.js +2 -0
- package/runtime-dist/c-gznx0sj4.js +2 -0
- package/runtime-dist/c-h5m94fwp.js +1 -0
- package/runtime-dist/c-hdstjg33.js +2 -0
- package/runtime-dist/c-hsy77frc.js +3 -0
- package/runtime-dist/c-j02ymtyd.js +2 -0
- package/runtime-dist/c-j63hz554.js +2 -0
- package/runtime-dist/c-jvrr9zb8.js +1 -0
- package/runtime-dist/c-jymrpj5m.js +1 -0
- package/runtime-dist/c-k624qrhh.js +2 -0
- package/runtime-dist/c-kbg0cafy.js +2 -0
- package/runtime-dist/c-kmx0mv0c.js +2 -0
- package/runtime-dist/c-krt6rpg1.js +1 -0
- package/runtime-dist/c-kyajr8zz.js +2 -0
- package/runtime-dist/c-m30q0jrb.js +1 -0
- package/runtime-dist/c-m49q9r7s.js +1 -0
- package/runtime-dist/c-m6yf7zaj.js +2 -0
- package/runtime-dist/c-m70tbfc5.js +2 -0
- package/runtime-dist/c-mdj990nz.js +2 -0
- package/runtime-dist/c-mvdn43tv.js +2 -0
- package/runtime-dist/c-mw3zx9yk.js +1 -0
- package/runtime-dist/c-n8mqnvjg.js +1 -0
- package/runtime-dist/c-nkrm4n9a.js +1 -0
- package/runtime-dist/c-nn49946s.js +1 -0
- package/runtime-dist/c-ny0mdx7k.js +2 -0
- package/runtime-dist/c-p8wyhrwm.js +2 -0
- package/runtime-dist/c-pbn2syef.js +1 -0
- package/runtime-dist/c-prt5qv2x.js +1 -0
- package/runtime-dist/c-qe1kevqk.js +1 -0
- package/runtime-dist/c-rasvf2z2.js +2 -0
- package/runtime-dist/c-rf1xevya.js +1 -0
- package/runtime-dist/c-rktc0ksd.js +2 -0
- package/runtime-dist/c-sd570jk7.js +2 -0
- package/runtime-dist/c-sdf15np5.js +1 -0
- package/runtime-dist/c-sjajadt4.js +2 -0
- package/runtime-dist/c-sv15z0aa.js +1 -0
- package/runtime-dist/c-tv3ksk7j.js +2 -0
- package/runtime-dist/c-vrmw0gka.js +1 -0
- package/runtime-dist/c-wjadf68q.js +1 -0
- package/runtime-dist/c-wnynh7zm.js +1 -0
- package/runtime-dist/c-xeqwqt9z.js +2 -0
- package/runtime-dist/c-xk9fqzsc.js +1 -0
- package/runtime-dist/c-xqf3j4w7.js +1 -0
- package/runtime-dist/c-xx4986kx.js +1 -0
- package/runtime-dist/c-y9120d6h.js +1 -0
- package/runtime-dist/c-ywzh0r63.js +1 -0
- package/runtime-dist/c-zyfkspym.js +2 -0
- package/runtime-dist/index.html +14 -0
- package/runtime-dist/ui-accordion.css +29 -0
- package/runtime-dist/ui-app-shell.css +36 -0
- package/runtime-dist/ui-avatar.css +28 -0
- package/runtime-dist/ui-badge.css +14 -0
- package/runtime-dist/ui-block-editor.css +85 -0
- package/runtime-dist/ui-block-view.css +50 -0
- package/runtime-dist/ui-block.css +20 -0
- package/runtime-dist/ui-bottom-nav.css +54 -0
- package/runtime-dist/ui-breadcrumb.css +25 -0
- package/runtime-dist/ui-button-group.css +39 -0
- package/runtime-dist/ui-calendar.css +168 -0
- package/runtime-dist/ui-card.css +26 -0
- package/runtime-dist/ui-carousel.css +35 -0
- package/runtime-dist/ui-chart.css +26 -0
- package/runtime-dist/ui-checkbox.css +25 -0
- package/runtime-dist/ui-chip.css +30 -0
- package/runtime-dist/ui-code-editor.css +25 -0
- package/runtime-dist/ui-colorpicker.css +46 -0
- package/runtime-dist/ui-combo.css +43 -0
- package/runtime-dist/ui-dataview.css +50 -0
- package/runtime-dist/ui-datepicker.css +80 -0
- package/runtime-dist/ui-dialog.css +119 -0
- package/runtime-dist/ui-divider.css +18 -0
- package/runtime-dist/ui-fieldset.css +25 -0
- package/runtime-dist/ui-filter-chip.css +24 -0
- package/runtime-dist/ui-floating.css +9 -0
- package/runtime-dist/ui-gantt.css +105 -0
- package/runtime-dist/ui-image.css +34 -0
- package/runtime-dist/ui-inplace.css +19 -0
- package/runtime-dist/ui-json-editor.css +40 -0
- package/runtime-dist/ui-layout.css +39 -0
- package/runtime-dist/ui-listbox.css +52 -0
- package/runtime-dist/ui-map.css +469 -0
- package/runtime-dist/ui-menu.css +38 -0
- package/runtime-dist/ui-menubar.css +55 -0
- package/runtime-dist/ui-meter.css +26 -0
- package/runtime-dist/ui-multiselect.css +62 -0
- package/runtime-dist/ui-nav-drawer.css +118 -0
- package/runtime-dist/ui-number.css +26 -0
- package/runtime-dist/ui-option-list.css +28 -0
- package/runtime-dist/ui-orderlist.css +54 -0
- package/runtime-dist/ui-orgchart.css +71 -0
- package/runtime-dist/ui-paginator.css +25 -0
- package/runtime-dist/ui-panel.css +28 -0
- package/runtime-dist/ui-password.css +26 -0
- package/runtime-dist/ui-picklist.css +58 -0
- package/runtime-dist/ui-popover.css +20 -0
- package/runtime-dist/ui-progress.css +31 -0
- package/runtime-dist/ui-radio.css +29 -0
- package/runtime-dist/ui-rating.css +19 -0
- package/runtime-dist/ui-richtext.css +48 -0
- package/runtime-dist/ui-scheduler.css +132 -0
- package/runtime-dist/ui-scroll-top.css +17 -0
- package/runtime-dist/ui-segmented.css +25 -0
- package/runtime-dist/ui-select.css +47 -0
- package/runtime-dist/ui-sheet.css +56 -0
- package/runtime-dist/ui-skeleton.css +18 -0
- package/runtime-dist/ui-slider.css +59 -0
- package/runtime-dist/ui-speed-dial.css +26 -0
- package/runtime-dist/ui-splitter.css +23 -0
- package/runtime-dist/ui-stepper.css +47 -0
- package/runtime-dist/ui-switch.css +31 -0
- package/runtime-dist/ui-table-panel.css +114 -0
- package/runtime-dist/ui-table.css +430 -0
- package/runtime-dist/ui-tabs.css +45 -0
- package/runtime-dist/ui-taskboard.css +104 -0
- package/runtime-dist/ui-timeline.css +44 -0
- package/runtime-dist/ui-toast.css +43 -0
- package/runtime-dist/ui-toggle-button.css +6 -0
- package/runtime-dist/ui-tooltip.css +21 -0
- package/runtime-dist/ui-tree.css +44 -0
- package/runtime-dist/ui-upload.css +46 -0
- package/runtime-dist/version.json +1 -0
- package/src/browser.ts +126 -0
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +186 -0
- package/src/index.ts +5 -0
- package/src/items.ts +436 -0
- package/src/lazy.ts +76 -0
- package/src/messages.ts +110 -0
- package/src/sections/grid.ts +56 -0
- package/src/sections/under-construction.ts +34 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type Lang = 'fr' | 'en';
|
|
2
|
+
declare const FR: {
|
|
3
|
+
readonly loading: "Chargement…";
|
|
4
|
+
readonly 'under.title': "En construction";
|
|
5
|
+
readonly 'under.text': "Ce front se prépare. Revenez bientôt.";
|
|
6
|
+
readonly 'under.project': "Projet";
|
|
7
|
+
readonly 'unpublished.title': "Pas encore publié";
|
|
8
|
+
readonly 'unpublished.text': "Ce front existe mais n’a pas encore été publié depuis la console du projet.";
|
|
9
|
+
readonly 'notfound.title': "Page introuvable";
|
|
10
|
+
readonly 'notfound.text': "Cette adresse ne correspond à aucune page de ce front.";
|
|
11
|
+
readonly 'notfound.home': "Revenir à l’accueil";
|
|
12
|
+
readonly 'error.title': "Ce front ne peut pas s’afficher";
|
|
13
|
+
readonly 'error.text': "Sa configuration est illisible. L’erreur a été enregistrée dans les journaux du projet.";
|
|
14
|
+
readonly 'signin.title': "Connexion";
|
|
15
|
+
readonly 'signin.text': "Cette page est réservée aux utilisateurs du projet.";
|
|
16
|
+
readonly 'signin.email': "Adresse e-mail";
|
|
17
|
+
readonly 'signin.password': "Mot de passe";
|
|
18
|
+
readonly 'signin.submit': "Se connecter";
|
|
19
|
+
readonly 'signin.invalid_credentials': "Adresse e-mail ou mot de passe incorrect.";
|
|
20
|
+
readonly 'signin.error': "La connexion a échoué. Réessayez.";
|
|
21
|
+
readonly signout: "Se déconnecter";
|
|
22
|
+
readonly 'signin.link': "Se connecter";
|
|
23
|
+
readonly 'badge.auth': "Membres";
|
|
24
|
+
readonly 'badge.public': "Public";
|
|
25
|
+
readonly 'badge.visitor': "Vu comme visiteur";
|
|
26
|
+
readonly 'grid.empty': "Grille vide : glissez un composant de la boîte à outils, ou cliquez dessus.";
|
|
27
|
+
readonly 'grid.empty.live': "Cette page est encore vide.";
|
|
28
|
+
readonly nav: "Pages du front";
|
|
29
|
+
readonly 'draft.badge': "Brouillon";
|
|
30
|
+
readonly 'draft.text': "Vous voyez le brouillon, pas la version en ligne.";
|
|
31
|
+
readonly 'draft.close': "Fermer la barre du brouillon (pour cet onglet)";
|
|
32
|
+
readonly 'draft.toolbar': "Barre du brouillon";
|
|
33
|
+
readonly 'draft.device': "Taille d’écran";
|
|
34
|
+
readonly 'draft.device.desktop': "Ordinateur";
|
|
35
|
+
readonly 'draft.device.tablet': "Tablette";
|
|
36
|
+
readonly 'draft.device.phone': "Téléphone";
|
|
37
|
+
readonly 'draft.theme.dark': "Passer en thème sombre";
|
|
38
|
+
readonly 'draft.theme.light': "Passer en thème clair";
|
|
39
|
+
readonly 'draft.pages': "Aller à une page";
|
|
40
|
+
readonly 'draft.reload': "Recharger le brouillon";
|
|
41
|
+
readonly 'draft.collapse': "Replier la barre";
|
|
42
|
+
readonly 'draft.expand': "Déplier la barre";
|
|
43
|
+
readonly 'draft.move': "Déplacer la barre";
|
|
44
|
+
readonly 'item.content': "Contenu de « {name} ».";
|
|
45
|
+
readonly 'item.image.empty': "Image : donnez son adresse dans les propriétés.";
|
|
46
|
+
readonly 'item.menu': "Menu";
|
|
47
|
+
readonly 'item.actions': "Actions";
|
|
48
|
+
readonly 'item.unknown': "Composant indisponible dans ce moteur.";
|
|
49
|
+
readonly 'item.failed': "Ce composant n’a pas pu se charger.";
|
|
50
|
+
};
|
|
51
|
+
export type MessageKey = keyof typeof FR;
|
|
52
|
+
export declare const MESSAGES: Record<Lang, Record<MessageKey, string>>;
|
|
53
|
+
export declare const langOf: (languages: readonly string[] | undefined) => Lang;
|
|
54
|
+
export declare const translator: (lang: Lang) => (key: MessageKey) => string;
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/B,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDE,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,EAAE,CAAC;AAoDzC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAsB,CAAC;AAErF,eAAO,MAAM,MAAM,GAAI,WAAW,SAAS,MAAM,EAAE,GAAG,SAAS,KAAG,IAAsE,CAAC;AAEzI,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,MAAM,KAAK,UAAU,WAAwB,CAAC"}
|
package/dist/messages.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
const FR = {
|
|
2
|
+
'loading': 'Chargement…',
|
|
3
|
+
'under.title': 'En construction',
|
|
4
|
+
'under.text': 'Ce front se prépare. Revenez bientôt.',
|
|
5
|
+
'under.project': 'Projet',
|
|
6
|
+
'unpublished.title': 'Pas encore publié',
|
|
7
|
+
'unpublished.text': 'Ce front existe mais n’a pas encore été publié depuis la console du projet.',
|
|
8
|
+
'notfound.title': 'Page introuvable',
|
|
9
|
+
'notfound.text': 'Cette adresse ne correspond à aucune page de ce front.',
|
|
10
|
+
'notfound.home': 'Revenir à l’accueil',
|
|
11
|
+
'error.title': 'Ce front ne peut pas s’afficher',
|
|
12
|
+
'error.text': 'Sa configuration est illisible. L’erreur a été enregistrée dans les journaux du projet.',
|
|
13
|
+
'signin.title': 'Connexion',
|
|
14
|
+
'signin.text': 'Cette page est réservée aux utilisateurs du projet.',
|
|
15
|
+
'signin.email': 'Adresse e-mail',
|
|
16
|
+
'signin.password': 'Mot de passe',
|
|
17
|
+
'signin.submit': 'Se connecter',
|
|
18
|
+
'signin.invalid_credentials': 'Adresse e-mail ou mot de passe incorrect.',
|
|
19
|
+
'signin.error': 'La connexion a échoué. Réessayez.',
|
|
20
|
+
'signout': 'Se déconnecter',
|
|
21
|
+
'signin.link': 'Se connecter',
|
|
22
|
+
'badge.auth': 'Membres',
|
|
23
|
+
'badge.public': 'Public',
|
|
24
|
+
'badge.visitor': 'Vu comme visiteur',
|
|
25
|
+
'grid.empty': 'Grille vide : glissez un composant de la boîte à outils, ou cliquez dessus.',
|
|
26
|
+
'grid.empty.live': 'Cette page est encore vide.',
|
|
27
|
+
'nav': 'Pages du front',
|
|
28
|
+
'draft.badge': 'Brouillon',
|
|
29
|
+
'draft.text': 'Vous voyez le brouillon, pas la version en ligne.',
|
|
30
|
+
'draft.close': 'Fermer la barre du brouillon (pour cet onglet)',
|
|
31
|
+
'draft.toolbar': 'Barre du brouillon',
|
|
32
|
+
'draft.device': 'Taille d’écran',
|
|
33
|
+
'draft.device.desktop': 'Ordinateur',
|
|
34
|
+
'draft.device.tablet': 'Tablette',
|
|
35
|
+
'draft.device.phone': 'Téléphone',
|
|
36
|
+
'draft.theme.dark': 'Passer en thème sombre',
|
|
37
|
+
'draft.theme.light': 'Passer en thème clair',
|
|
38
|
+
'draft.pages': 'Aller à une page',
|
|
39
|
+
'draft.reload': 'Recharger le brouillon',
|
|
40
|
+
'draft.collapse': 'Replier la barre',
|
|
41
|
+
'draft.expand': 'Déplier la barre',
|
|
42
|
+
'draft.move': 'Déplacer la barre',
|
|
43
|
+
'item.content': 'Contenu de « {name} ».',
|
|
44
|
+
'item.image.empty': 'Image : donnez son adresse dans les propriétés.',
|
|
45
|
+
'item.menu': 'Menu',
|
|
46
|
+
'item.actions': 'Actions',
|
|
47
|
+
'item.unknown': 'Composant indisponible dans ce moteur.',
|
|
48
|
+
'item.failed': 'Ce composant n’a pas pu se charger.',
|
|
49
|
+
};
|
|
50
|
+
const EN = {
|
|
51
|
+
'loading': 'Loading…',
|
|
52
|
+
'under.title': 'Under construction',
|
|
53
|
+
'under.text': 'This front is being prepared. Come back soon.',
|
|
54
|
+
'under.project': 'Project',
|
|
55
|
+
'unpublished.title': 'Not published yet',
|
|
56
|
+
'unpublished.text': 'This front exists but has not been published from the project console yet.',
|
|
57
|
+
'notfound.title': 'Page not found',
|
|
58
|
+
'notfound.text': 'This address matches no page of this front.',
|
|
59
|
+
'notfound.home': 'Back to the home page',
|
|
60
|
+
'error.title': 'This front cannot be shown',
|
|
61
|
+
'error.text': 'Its configuration cannot be read. The error was recorded in the project logs.',
|
|
62
|
+
'signin.title': 'Sign in',
|
|
63
|
+
'signin.text': 'This page is reserved for the project users.',
|
|
64
|
+
'signin.email': 'Email address',
|
|
65
|
+
'signin.password': 'Password',
|
|
66
|
+
'signin.submit': 'Sign in',
|
|
67
|
+
'signin.invalid_credentials': 'Wrong email address or password.',
|
|
68
|
+
'signin.error': 'Sign-in failed. Try again.',
|
|
69
|
+
'signout': 'Sign out',
|
|
70
|
+
'signin.link': 'Sign in',
|
|
71
|
+
'badge.auth': 'Members',
|
|
72
|
+
'badge.public': 'Public',
|
|
73
|
+
'badge.visitor': 'Seen as a visitor',
|
|
74
|
+
'grid.empty': 'Empty grid: drag a component from the toolbox, or click it.',
|
|
75
|
+
'grid.empty.live': 'This page is still empty.',
|
|
76
|
+
'nav': 'Front pages',
|
|
77
|
+
'draft.badge': 'Draft',
|
|
78
|
+
'draft.text': 'You are seeing the draft, not the online version.',
|
|
79
|
+
'draft.close': 'Close the draft toolbar (for this tab)',
|
|
80
|
+
'draft.toolbar': 'Draft toolbar',
|
|
81
|
+
'draft.device': 'Screen size',
|
|
82
|
+
'draft.device.desktop': 'Desktop',
|
|
83
|
+
'draft.device.tablet': 'Tablet',
|
|
84
|
+
'draft.device.phone': 'Phone',
|
|
85
|
+
'draft.theme.dark': 'Switch to dark theme',
|
|
86
|
+
'draft.theme.light': 'Switch to light theme',
|
|
87
|
+
'draft.pages': 'Go to a page',
|
|
88
|
+
'draft.reload': 'Reload the draft',
|
|
89
|
+
'draft.collapse': 'Fold the toolbar',
|
|
90
|
+
'draft.expand': 'Unfold the toolbar',
|
|
91
|
+
'draft.move': 'Move the toolbar',
|
|
92
|
+
'item.content': 'Content of “{name}”.',
|
|
93
|
+
'item.image.empty': 'Image: set its address in the properties.',
|
|
94
|
+
'item.menu': 'Menu',
|
|
95
|
+
'item.actions': 'Actions',
|
|
96
|
+
'item.unknown': 'Component not available in this runtime.',
|
|
97
|
+
'item.failed': 'This component could not be loaded.',
|
|
98
|
+
};
|
|
99
|
+
export const MESSAGES = { fr: FR, en: EN };
|
|
100
|
+
export const langOf = (languages) => (languages?.[0]?.toLowerCase().startsWith('en') ? 'en' : 'fr');
|
|
101
|
+
export const translator = (lang) => (key) => MESSAGES[lang][key];
|
|
102
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAGA,MAAM,EAAE,GAAG;IACT,SAAS,EAAE,aAAa;IACxB,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,uCAAuC;IACrD,eAAe,EAAE,QAAQ;IACzB,mBAAmB,EAAE,mBAAmB;IACxC,kBAAkB,EAAE,6EAA6E;IACjG,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,wDAAwD;IACzE,eAAe,EAAE,qBAAqB;IACtC,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,yFAAyF;IACvG,cAAc,EAAE,WAAW;IAC3B,aAAa,EAAE,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I,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAEzI,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,CAAC,GAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type FrontLogger, type GridSection as Section } from '@poadio/app-core';
|
|
3
|
+
import type { MessageKey } from '../messages.js';
|
|
4
|
+
import type { FrontNav } from '../items.js';
|
|
5
|
+
/** Lignes libres gardées sous le dernier composant, sur le canevas */
|
|
6
|
+
export declare const CANVAS_SPARE_ROWS = 6;
|
|
7
|
+
export declare const CANVAS_MIN_ROWS = 12;
|
|
8
|
+
export declare const GridSection: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
section: {
|
|
10
|
+
type: PropType<Section>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
t: {
|
|
14
|
+
type: PropType<(k: MessageKey) => string>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
canvas: BooleanConstructor;
|
|
18
|
+
log: {
|
|
19
|
+
type: PropType<FrontLogger | null>;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
/** Pages et routeur du front, pour les composants de navigation posés */
|
|
23
|
+
nav: {
|
|
24
|
+
type: PropType<FrontNav | null>;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
section: {
|
|
31
|
+
type: PropType<Section>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
t: {
|
|
35
|
+
type: PropType<(k: MessageKey) => string>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
canvas: BooleanConstructor;
|
|
39
|
+
log: {
|
|
40
|
+
type: PropType<FrontLogger | null>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
/** Pages et routeur du front, pour les composants de navigation posés */
|
|
44
|
+
nav: {
|
|
45
|
+
type: PropType<FrontNav | null>;
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{}>, {
|
|
49
|
+
nav: FrontNav | null;
|
|
50
|
+
canvas: boolean;
|
|
51
|
+
log: FrontLogger | null;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/sections/grid.ts"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAA8B,KAAK,WAAW,EAAiB,KAAK,WAAW,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,WAAW;;cAGO,QAAQ,CAAC,OAAO,CAAC;;;;cACrB,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;;;cAEnC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;IACnD,yEAAyE;;cAClD,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;;;;;;;cALrB,QAAQ,CAAC,OAAO,CAAC;;;;cACrB,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;;;cAEnC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;IACnD,yEAAyE;;cAClD,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;;;;;;;4EAgClD,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Section grille (24 colonnes) : les composants posés, chacun dans sa case (x, y, w, h), rendus par leur module chargé
|
|
2
|
+
// à la demande (lazy.ts, items.ts). Sur un écran étroit (< 640 px), ils s'empilent dans l'ordre de lecture, chacun à
|
|
3
|
+
// sa hauteur. Sur le canevas de la console, la grille montre ses lignes et garde de la place libre en dessous pour
|
|
4
|
+
// poser la suite ; la console dessine par-dessus la sélection et les poignées (elle reçoit la place de la grille
|
|
5
|
+
// par le message `rendered`, voir browser.ts).
|
|
6
|
+
import { defineComponent, h } from 'vue';
|
|
7
|
+
import { readingOrder, resolveProps } from '@poadio/app-core';
|
|
8
|
+
import { itemComponent } from '../lazy.js';
|
|
9
|
+
/** Lignes libres gardées sous le dernier composant, sur le canevas */
|
|
10
|
+
export const CANVAS_SPARE_ROWS = 6;
|
|
11
|
+
export const CANVAS_MIN_ROWS = 12;
|
|
12
|
+
export const GridSection = defineComponent({
|
|
13
|
+
name: 'PoadFrontGrid',
|
|
14
|
+
props: {
|
|
15
|
+
section: { type: Object, required: true },
|
|
16
|
+
t: { type: Function, required: true },
|
|
17
|
+
canvas: Boolean,
|
|
18
|
+
log: { type: Object, default: null },
|
|
19
|
+
/** Pages et routeur du front, pour les composants de navigation posés */
|
|
20
|
+
nav: { type: Object, default: null },
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const failed = (type, err) => props.log?.error(`composant ${type} : chargement impossible (${err?.message ?? String(err)})`, { event: 'app_component_load_error', attrs: { component: type, section: props.section.id } });
|
|
24
|
+
const cell = (it, order) => {
|
|
25
|
+
const c = itemComponent(it.type, failed);
|
|
26
|
+
const ctx = { t: props.t, canvas: props.canvas, nav: props.nav };
|
|
27
|
+
return h('div', {
|
|
28
|
+
key: it.id,
|
|
29
|
+
class: ['poad-front__item', `is-${it.type}`],
|
|
30
|
+
'data-item': it.id,
|
|
31
|
+
style: { gridColumn: `${it.x + 1} / span ${it.w}`, gridRow: `${it.y + 1} / span ${it.h}`, '--poad-item-order': order, '--poad-item-h': it.h },
|
|
32
|
+
}, [c ? h(c, { p: resolveProps(it.type, it.props), ctx }) : h('div', { class: 'poad-front__placeholder' }, props.t('item.unknown'))]);
|
|
33
|
+
};
|
|
34
|
+
return () => {
|
|
35
|
+
const s = props.section;
|
|
36
|
+
const items = readingOrder(s.items);
|
|
37
|
+
const used = items.reduce((m, i) => Math.max(m, i.y + i.h), 0);
|
|
38
|
+
const rows = props.canvas ? Math.max(CANVAS_MIN_ROWS, used + CANVAS_SPARE_ROWS) : used;
|
|
39
|
+
return h('section', { class: ['poad-front__grid', props.canvas && 'is-canvas', items.length > 0 && 'has-items'], 'data-section': s.id, style: { '--poad-front-row': `${s.rowHeight}px` } }, [
|
|
40
|
+
h('div', { class: 'poad-front__cells', 'data-grid': s.id, 'data-rows': rows, style: { '--poad-front-rows': rows } }, items.map(cell)),
|
|
41
|
+
s.items.length === 0 ? h('p', { class: 'poad-front__grid-empty' }, props.t(props.canvas ? 'grid.empty' : 'grid.empty.live')) : null,
|
|
42
|
+
]);
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/sections/grid.ts"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,qHAAqH;AACrH,mHAAmH;AACnH,iHAAiH;AACjH,+CAA+C;AAC/C,OAAO,EAAE,eAAe,EAAE,CAAC,EAAiB,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,Y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GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACvF,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,kBAAkB,EAAE,KAAK,CAAC,MAAM,IAAI,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE,EAAE;gBAC1L,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACrI,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;aACpI,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { UnderConstructionSection as Section } from '@poadio/app-core';
|
|
3
|
+
import type { MessageKey } from '../messages.js';
|
|
4
|
+
export declare const UnderConstructionSection: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
section: {
|
|
6
|
+
type: PropType<Section>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
t: {
|
|
10
|
+
type: PropType<(k: MessageKey) => string>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
section: {
|
|
17
|
+
type: PropType<Section>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
t: {
|
|
21
|
+
type: PropType<(k: MessageKey) => string>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
//# sourceMappingURL=under-construction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"under-construction.d.ts","sourceRoot":"","sources":["../../src/sections/under-construction.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,wBAAwB;;cAGN,QAAQ,CAAC,OAAO,CAAC;;;;cACrB,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;;;;;cAD/B,QAAQ,CAAC,OAAO,CAAC;;;;cACrB,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;iGAwB5D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Section « En construction » : nom du front, message, nom du projet. Aucun composant de @poadio/ui-vue.
|
|
2
|
+
import { defineComponent, h } from 'vue';
|
|
3
|
+
export const UnderConstructionSection = defineComponent({
|
|
4
|
+
name: 'PoadFrontUnderConstruction',
|
|
5
|
+
props: {
|
|
6
|
+
section: { type: Object, required: true },
|
|
7
|
+
t: { type: Function, required: true },
|
|
8
|
+
},
|
|
9
|
+
setup(props) {
|
|
10
|
+
return () => {
|
|
11
|
+
const s = props.section;
|
|
12
|
+
const t = props.t;
|
|
13
|
+
return h('section', { class: 'poad-front__under', 'data-section': s.id }, [
|
|
14
|
+
h('div', { class: 'poad-front__under-mark', 'aria-hidden': 'true' }, [
|
|
15
|
+
// Une grue stylisée : trait seul, couleur du thème
|
|
16
|
+
h('svg', { viewBox: '0 0 64 64', width: 64, height: 64, fill: 'none', stroke: 'currentColor', 'stroke-width': 2.5, 'stroke-linecap': 'round', 'stroke-linejoin': 'round' }, [
|
|
17
|
+
h('path', { d: 'M14 58V10l-6 8h44' }),
|
|
18
|
+
h('path', { d: 'M14 10l38 8' }),
|
|
19
|
+
h('path', { d: 'M44 18v14' }),
|
|
20
|
+
h('rect', { x: 38, y: 32, width: 12, height: 9, rx: 1.5 }),
|
|
21
|
+
h('path', { d: 'M6 58h20' }),
|
|
22
|
+
]),
|
|
23
|
+
]),
|
|
24
|
+
h('h1', { class: 'poad-front__under-title' }, t('under.title')),
|
|
25
|
+
s.props.front ? h('p', { class: 'poad-front__under-front' }, s.props.front) : null,
|
|
26
|
+
h('p', { class: 'poad-front__under-text' }, s.props.message || t('under.text')),
|
|
27
|
+
s.props.project ? h('p', { class: 'poad-front__under-project' }, [h('span', { class: 'poad-front__under-label' }, `${t('under.project')} `), h('strong', null, s.props.project)]) : null,
|
|
28
|
+
]);
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=under-construction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"under-construction.js","sourceRoot":"","sources":["../../src/sections/under-construction.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,OAAO,EAAE,eAAe,EAAE,CAAC,EAAiB,MAAM,KAAK,CAAC;AAIxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe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UAAU,EAAE,CAAC;qBAC7B,CAAC;iBACH,CAAC;gBACF,CAAC,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC;gBAC/D,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClF,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;gBAC/E,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAE,GAAG,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;aACzL,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poadio/app-vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Vue 3 rendering of the fronts designed in poad, over @poadio/app-core and @poadio/ui-vue: pages, navigation, sign-in with the project users (RLS), the under-construction page, the preview and canvas modes driven by the poad console (iframe, postMessage), and the compiled runtime that the poad engine serves for each front (runtime-dist/).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "poad — Stéphane Zuccatti",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"*.css"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./app-vue.css": "./app-vue.css",
|
|
19
|
+
"./runtime/*": "./runtime-dist/*",
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"runtime-dist",
|
|
25
|
+
"src",
|
|
26
|
+
"!src/**/*.test.ts",
|
|
27
|
+
"app-vue.css",
|
|
28
|
+
"README.md",
|
|
29
|
+
"CHANGELOG.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && bun runtime/build.mjs",
|
|
34
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
35
|
+
"test": "vitest run"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@poadio/app-core": "^0.2.0",
|
|
39
|
+
"@poadio/ui-core": "^0.9.3",
|
|
40
|
+
"@poadio/ui-vue": "^0.10.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"vue": "^3.5.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@poadio/client-js": "0.6.1",
|
|
47
|
+
"@types/node": "^24.0.0",
|
|
48
|
+
"chart.js": "4.6.1",
|
|
49
|
+
"jsdom": "^28.0.0",
|
|
50
|
+
"typescript": "~5.9.2",
|
|
51
|
+
"vitest": "^4.0.8",
|
|
52
|
+
"vue": "^3.5.46"
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/poadio/ui.git",
|
|
57
|
+
"directory": "packages/app-vue"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://github.com/poadio/ui/tree/main/packages/app-vue#readme",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/poadio/ui/issues"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"poad",
|
|
65
|
+
"vue",
|
|
66
|
+
"app-builder",
|
|
67
|
+
"low-code",
|
|
68
|
+
"front",
|
|
69
|
+
"runtime"
|
|
70
|
+
],
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public"
|
|
73
|
+
}
|
|
74
|
+
}
|