@micacms/editor-ui 0.3.0 → 0.4.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/dist/assets/{ChangesView-D7n3k873.js → ChangesView-DoLhwPxu.js} +2 -2
- package/dist/assets/{ChangesView-D7n3k873.js.map → ChangesView-DoLhwPxu.js.map} +1 -1
- package/dist/assets/{CollectionView-Cu_ytsrZ.js → CollectionView-D3W4tRXa.js} +2 -2
- package/dist/assets/{CollectionView-Cu_ytsrZ.js.map → CollectionView-D3W4tRXa.js.map} +1 -1
- package/dist/assets/{ConfirmDialog.vue_vue_type_script_setup_true_lang-C4yhYMWf.js → ConfirmDialog.vue_vue_type_script_setup_true_lang-BhOQwoeA.js} +2 -2
- package/dist/assets/{ConfirmDialog.vue_vue_type_script_setup_true_lang-C4yhYMWf.js.map → ConfirmDialog.vue_vue_type_script_setup_true_lang-BhOQwoeA.js.map} +1 -1
- package/dist/assets/{DashboardView-7y5LY2BH.js → DashboardView-JZ2Eaw1_.js} +2 -2
- package/dist/assets/{DashboardView-7y5LY2BH.js.map → DashboardView-JZ2Eaw1_.js.map} +1 -1
- package/dist/assets/{EntryView-IyBqYorV.js → EntryView-BwERaZkJ.js} +2 -2
- package/dist/assets/{EntryView-IyBqYorV.js.map → EntryView-BwERaZkJ.js.map} +1 -1
- package/dist/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
- package/dist/assets/LoginView-BCrrdqnf.js +2 -0
- package/dist/assets/LoginView-BCrrdqnf.js.map +1 -0
- package/dist/assets/{MediaView-BVODAshv.js → MediaView-KlQHfWAi.js} +2 -2
- package/dist/assets/{MediaView-BVODAshv.js.map → MediaView-KlQHfWAi.js.map} +1 -1
- package/dist/assets/{NotFoundView-K-fMCruW.js → NotFoundView-C9bEHUGC.js} +2 -2
- package/dist/assets/{NotFoundView-K-fMCruW.js.map → NotFoundView-C9bEHUGC.js.map} +1 -1
- package/dist/assets/{ObjectField-CAJPaAKa.js → ObjectField-gxr2a2pp.js} +2 -2
- package/dist/assets/{ObjectField-CAJPaAKa.js.map → ObjectField-gxr2a2pp.js.map} +1 -1
- package/dist/assets/{PageHeader.vue_vue_type_script_setup_true_lang-IPw0xrLa.js → PageHeader.vue_vue_type_script_setup_true_lang-B-fBJAjn.js} +2 -2
- package/dist/assets/{PageHeader.vue_vue_type_script_setup_true_lang-IPw0xrLa.js.map → PageHeader.vue_vue_type_script_setup_true_lang-B-fBJAjn.js.map} +1 -1
- package/dist/assets/{RepeaterField-BAnvha76.js → RepeaterField-obOWml_P.js} +2 -2
- package/dist/assets/{RepeaterField-BAnvha76.js.map → RepeaterField-obOWml_P.js.map} +1 -1
- package/dist/assets/{SingletonView-C3AqQe6a.js → SingletonView-BNJCcl7V.js} +2 -2
- package/dist/assets/{SingletonView-C3AqQe6a.js.map → SingletonView-BNJCcl7V.js.map} +1 -1
- package/dist/assets/{SystemView-DKA_QdVz.js → SystemView-CB8CT0Pa.js} +2 -2
- package/dist/assets/{SystemView-DKA_QdVz.js.map → SystemView-CB8CT0Pa.js.map} +1 -1
- package/dist/assets/{arrow-right-s8aI3aOk.js → arrow-right-DJTAYrz5.js} +2 -2
- package/dist/assets/{arrow-right-s8aI3aOk.js.map → arrow-right-DJTAYrz5.js.map} +1 -1
- package/dist/assets/{arrow-up-BeQh5rSe.js → arrow-up-CibOjHj-.js} +2 -2
- package/dist/assets/{arrow-up-BeQh5rSe.js.map → arrow-up-CibOjHj-.js.map} +1 -1
- package/dist/assets/{chevron-down-BgnDSY3E.js → chevron-down-Bmt8sf-v.js} +2 -2
- package/dist/assets/{chevron-down-BgnDSY3E.js.map → chevron-down-Bmt8sf-v.js.map} +1 -1
- package/dist/assets/{index-9WVbsgdk.js → index-Colfqb-9.js} +26 -26
- package/dist/assets/index-Colfqb-9.js.map +1 -0
- package/dist/assets/index-bRiiEobC.css +1 -0
- package/dist/assets/{plus-D6xxK_qW.js → plus-D_aoCFbi.js} +2 -2
- package/dist/assets/{plus-D6xxK_qW.js.map → plus-D_aoCFbi.js.map} +1 -1
- package/dist/assets/{useField-CQv2TS4g.js → useField-BDSV5ZPo.js} +2 -2
- package/dist/assets/{useField-CQv2TS4g.js.map → useField-BDSV5ZPo.js.map} +1 -1
- package/dist/assets/{useUnsavedChanges-bO5Ha9y6.js → useUnsavedChanges-B0WVqgI4.js} +5 -5
- package/dist/assets/useUnsavedChanges-B0WVqgI4.js.map +1 -0
- package/dist/fonts/InterVariable-LICENSE.txt +92 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/assets/LoginView-C8sJvqmb.js +0 -2
- package/dist/assets/LoginView-C8sJvqmb.js.map +0 -1
- package/dist/assets/index-9WVbsgdk.js.map +0 -1
- package/dist/assets/index-DDeMbcSl.css +0 -1
- package/dist/assets/useUnsavedChanges-bO5Ha9y6.js.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/dist/index.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<link rel="icon" href="/admin/brand/favicon.ico" sizes="48x48" />
|
|
11
11
|
<link rel="icon" href="/admin/brand/micacms-favicon.svg" type="image/svg+xml" />
|
|
12
12
|
<link rel="apple-touch-icon" href="/admin/brand/apple-touch-icon.png" />
|
|
13
|
-
<script type="module" crossorigin src="/admin/assets/index-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/admin/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/admin/assets/index-Colfqb-9.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/admin/assets/index-bRiiEobC.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body class="h-full">
|
|
17
17
|
<div id="app" class="h-full"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micacms/editor-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Mica editor SPA — identity-neutral Vue administration UI, shipped as built assets and mounted by a composing app.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vue": "^3.5.13",
|
|
38
38
|
"vue-router": "^4.5.0",
|
|
39
39
|
"vue-tsc": "^2.2.0",
|
|
40
|
-
"@micacms/core": "0.
|
|
40
|
+
"@micacms/core": "0.4.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22.12.0"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as _,o as y,c as a,a as t,_ as b,t as u,b as d,e as v,u as h,f as k,r as f,g as c,h as i}from"./index-9WVbsgdk.js";const w={key:0,class:"grid min-h-full place-items-center p-6"},q={key:1,class:"grid min-h-full place-items-center p-6"},C={class:"w-full max-w-sm"},M={class:"card space-y-4 p-5"},S={key:0,role:"alert",class:"rounded-md border border-danger/15 bg-danger-soft px-4 py-3 text-sm text-danger"},V=["disabled"],B={key:1,class:"text-center text-xs text-muted"},N={class:"font-medium"},R={key:0,class:"mt-4 text-center text-xs text-muted"},I=_({__name:"LoginView",setup(T){const r=h(),m=k(),l=f(!1),o=f(null),p=c(()=>{var e;return(e=r.config.value)==null?void 0:e.provider}),n=c(()=>{var e;return((e=r.config.value)==null?void 0:e.authRequired)===!1}),x=c(()=>{const e=m.query.redirect;return typeof e=="string"&&e.startsWith("/admin")?e:"/admin/"});y(()=>{const e=m.query.error;typeof e=="string"&&(o.value=e),n.value&&!o.value&&g()});function g(){l.value=!0,r.signIn(x.value)}return(e,s)=>n.value&&!o.value?(i(),a("div",w,[...s[0]||(s[0]=[t("p",{class:"text-sm text-muted"},"Opening the editor…",-1)])])):(i(),a("div",q,[t("div",C,[s[3]||(s[3]=t("div",{class:"mb-7 flex flex-col items-center gap-4 text-center"},[t("img",{src:b,alt:"micacms",class:"h-8 w-auto"}),t("div",null,[t("h1",{class:"text-lg font-semibold tracking-tight"},"Sign in to Mica"),t("p",{class:"mt-0.5 text-sm text-muted"},"Manage your website content.")])],-1)),t("div",M,[o.value?(i(),a("p",S,u(o.value),1)):d("",!0),t("button",{type:"button",class:"btn-primary w-full",disabled:l.value,onClick:g},u(l.value?"Redirecting…":n.value?"Continue":"Sign in"),9,V),p.value&&!n.value?(i(),a("p",B,[s[1]||(s[1]=v(" You will be taken to ",-1)),t("span",N,u(p.value),1),s[2]||(s[2]=v(" to sign in. ",-1))])):d("",!0)]),n.value?d("",!0):(i(),a("p",R," Mica does not hold your password. Trouble signing in is a question for whoever runs your identity provider; no access once you are in is a question for a site administrator. "))])]))}});export{I as default};
|
|
2
|
-
//# sourceMappingURL=LoginView-C8sJvqmb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginView-C8sJvqmb.js","sources":["../../src/views/LoginView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Sign in.\n *\n * There is no form. Mica does not hold passwords, so there is nothing for an\n * editor to type here — the button hands the browser to the identity provider,\n * which does the actual authenticating and sends it back.\n *\n * The error banner exists because the round trip can fail after the provider\n * is satisfied: someone can authenticate perfectly well and still not be\n * admitted to this site, and that has to read as \"ask for access\", not as\n * \"your password was wrong\".\n *\n * In local mode this screen is not reached at all: there is no provider, no\n * account and nobody to be, and the session starts as the page is served. The\n * redirect below is the fallback for the one way in that skips that — a\n * browser still holding `/admin/login` from an earlier session.\n */\n\nimport { computed, onMounted, ref } from \"vue\";\nimport { useRoute } from \"vue-router\";\n\nimport { useSession } from \"@/stores/session\";\n\nconst session = useSession();\nconst route = useRoute();\n\nconst busy = ref(false);\n\n/** Set by the callback when it bounces the browser back here with a reason. */\nconst error = ref<string | null>(null);\n\nconst provider = computed(() => session.config.value?.provider);\n/** Local mode: no provider to send anybody to, so there is nothing to show. */\nconst authDisabled = computed(() => session.config.value?.authRequired === false);\n\n/** Where to land afterwards. Always a path on this server. */\nconst returnTo = computed(() => {\n const redirect = route.query[\"redirect\"];\n return typeof redirect === \"string\" && redirect.startsWith(\"/admin\")\n ? redirect\n : \"/admin/\";\n});\n\nonMounted(() => {\n const reason = route.query[\"error\"];\n if (typeof reason === \"string\") error.value = reason;\n\n // No provider, no question to ask. Straight to the editor.\n if (authDisabled.value && !error.value) signIn();\n});\n\nfunction signIn(): void {\n busy.value = true;\n session.signIn(returnTo.value);\n}\n</script>\n\n<template>\n <!-- Local mode: a held breath, not a screen. -->\n <div v-if=\"authDisabled && !error\" class=\"grid min-h-full place-items-center p-6\">\n <p class=\"text-sm text-muted\">Opening the editor…</p>\n </div>\n\n <div v-else class=\"grid min-h-full place-items-center p-6\">\n <div class=\"w-full max-w-sm\">\n <div class=\"mb-7 flex flex-col items-center gap-4 text-center\">\n <img src=\"/brand/micacms-wordmark.svg\" alt=\"micacms\" class=\"h-8 w-auto\" />\n <div>\n <h1 class=\"text-lg font-semibold tracking-tight\">Sign in to Mica</h1>\n <p class=\"mt-0.5 text-sm text-muted\">Manage your website content.</p>\n </div>\n </div>\n\n <div class=\"card space-y-4 p-5\">\n <p v-if=\"error\" role=\"alert\" class=\"rounded-md border border-danger/15 bg-danger-soft px-4 py-3 text-sm text-danger\">\n {{ error }}\n </p>\n\n <button type=\"button\" class=\"btn-primary w-full\" :disabled=\"busy\" @click=\"signIn\">\n {{ busy ? \"Redirecting…\" : authDisabled ? \"Continue\" : \"Sign in\" }}\n </button>\n\n <p v-if=\"provider && !authDisabled\" class=\"text-center text-xs text-muted\">\n You will be taken to <span class=\"font-medium\">{{ provider }}</span> to sign in.\n </p>\n </div>\n\n <p v-if=\"!authDisabled\" class=\"mt-4 text-center text-xs text-muted\">\n Mica does not hold your password. Trouble signing in is a question for\n whoever runs your identity provider; no access once you are in is a\n question for a site administrator.\n </p>\n </div>\n </div>\n</template>\n"],"names":["session","useSession","route","useRoute","busy","ref","error","provider","computed","_a","authDisabled","returnTo","redirect","onMounted","reason","signIn","_openBlock","_createElementBlock","_hoisted_1","_cache","_createElementVNode","_hoisted_2","_hoisted_3","_imports_0","_hoisted_4","_hoisted_5","_toDisplayString","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9"],"mappings":"6kBAwBA,MAAMA,EAAUC,EAAA,EACVC,EAAQC,EAAA,EAERC,EAAOC,EAAI,EAAK,EAGhBC,EAAQD,EAAmB,IAAI,EAE/BE,EAAWC,EAAS,IAAA,OAAM,OAAAC,EAAAT,EAAQ,OAAO,QAAf,YAAAS,EAAsB,SAAQ,EAExDC,EAAeF,EAAS,IAAA,OAAM,QAAAC,EAAAT,EAAQ,OAAO,QAAf,YAAAS,EAAsB,gBAAiB,GAAK,EAG1EE,EAAWH,EAAS,IAAM,CAC9B,MAAMI,EAAWV,EAAM,MAAM,SAC7B,OAAO,OAAOU,GAAa,UAAYA,EAAS,WAAW,QAAQ,EAC/DA,EACA,SACN,CAAC,EAEDC,EAAU,IAAM,CACd,MAAMC,EAASZ,EAAM,MAAM,MACvB,OAAOY,GAAW,WAAUR,EAAM,MAAQQ,GAG1CJ,EAAa,OAAS,CAACJ,EAAM,OAAOS,EAAA,CAC1C,CAAC,EAED,SAASA,GAAe,CACtBX,EAAK,MAAQ,GACbJ,EAAQ,OAAOW,EAAS,KAAK,CAC/B,cAKaD,EAAA,QAAiBJ,EAAA,OAA5BU,IAAAC,EAEM,MAFNC,EAEM,CAAA,GAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CADJC,EAAqD,IAAA,CAAlD,MAAM,oBAAA,EAAqB,sBAAmB,EAAA,CAAA,OAGnDJ,IAAAC,EA8BM,MA9BNI,EA8BM,CA7BJD,EA4BM,MA5BNE,EA4BM,aA3BJF,EAMM,MAAA,CAND,MAAM,qDAAmD,CAC5DA,EAA0E,MAAA,CAArE,IAAAG,EAAkC,IAAI,UAAU,MAAM,YAAA,GAC3DH,EAGM,MAAA,KAAA,CAFJA,EAAqE,KAAA,CAAjE,MAAM,sCAAA,EAAuC,iBAAe,EAChEA,EAAqE,IAAA,CAAlE,MAAM,2BAAA,EAA4B,8BAA4B,CAAA,SAIrEA,EAYM,MAZNI,EAYM,CAXKlB,EAAA,WAATW,EAEI,IAFJQ,EAEIC,EADCpB,EAAA,KAAK,EAAA,CAAA,YAGVc,EAES,SAAA,CAFD,KAAK,SAAS,MAAM,qBAAsB,SAAUhB,EAAA,MAAO,QAAOW,CAAA,EACrEW,EAAAtB,EAAA,qBAAwBM,EAAA,MAAY,WAAA,SAAA,EAAA,EAAAiB,CAAA,EAGhCpB,EAAA,QAAaG,EAAA,OAAtBM,IAAAC,EAEI,IAFJW,EAEI,eAFuE,yBACpD,EAAA,GAAAR,EAA+C,OAA/CS,EAA+CH,EAAlBnB,EAAA,KAAQ,EAAA,CAAA,gBAAU,gBACtE,EAAA,EAAA,eAGQG,EAAA,oBAAVO,EAII,IAJJa,EAAoE,iLAIpE"}
|