@bagelink/vue 1.15.358 → 1.15.362

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/README.md CHANGED
@@ -1,64 +1,34 @@
1
1
  # @bagelink/vue
2
2
 
3
- Features:
4
-
5
- - Build with [unbuild](https://github.com/unjs/unbuild)
6
- - File-to-file transpilation via [mkdist](https://github.com/unjs/mkdist)
7
- - Playground with [vite](https://vitejs.dev/)
8
-
9
3
  ## Usage
10
4
 
11
- Use component globally
5
+ Import exactly one Bagel stylesheet from your application entry:
12
6
 
13
7
  ```ts
14
8
  // src/main.ts
15
- import { createApp } from 'vue';
16
- import { BagelVue } from '@bagel/vue';
9
+ import { createApp } from 'vue'
10
+ import { BagelVue } from '@bagelink/vue'
17
11
 
18
- import App from './App.vue';
12
+ // Public websites and Blox sites: complete UI styles with system fonts.
13
+ import '@bagelink/vue/styles/core.css'
19
14
 
20
- const BagelConfig = {
21
- host: '/api',
22
- fileBaseUrl: import.meta.env.VITE_BAGEL_FILE_BASE_URL,
23
- onError: (err: any) => {
24
- // handle error
25
- // example:
26
- // useToast().error(`${$t('anErrorOccurred')}: ${err?.response?.data?.detail || err.message}`);
27
- },
28
- };
15
+ import App from './App.vue'
29
16
 
30
- const app = createApp(App);
31
- app.use(head as Plugin);
32
-
33
- app.mount('#app');
17
+ createApp(App)
18
+ .use(BagelVue)
19
+ .mount('#app')
34
20
  ```
35
21
 
36
- Import component
37
-
38
- ```vue
39
- <script setup lang="ts">
40
- import { useBagel } from '@bagel/vue';
22
+ For Bagel admin applications, replace the core import with:
41
23
 
42
- const bagel = useBagel();
43
- </script>
44
-
45
- <!-- OR -->
46
- <script lang="ts">
47
- export default defineComponent({
48
- onMounted() {
49
- console.log(this.$bagel.host)
50
- },
51
- });
52
- </script>
53
-
54
- <!-- OR -->
55
- <template>
56
- <div>
57
- {{ $bagel.host }}
58
- </div>
59
- </template>
24
+ ```ts
25
+ import '@bagelink/vue/styles/admin.css'
60
26
  ```
61
27
 
28
+ `@bagelink/vue/style.css` remains an alias for the admin stylesheet for
29
+ backward compatibility. Do not import internal paths such as
30
+ `@bagelink/vue/dist/style.css`, and do not import more than one aggregate
31
+ stylesheet.
62
32
 
63
33
  ## License
64
34
 
package/dist/admin.css ADDED
@@ -0,0 +1 @@
1
+ @import "https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap";@font-face{font-family:Ploni;font-style:normal;font-weight:200;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:800;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.eot)format("eot")}:root{--bgl-font:"Lexend", "Ploni", sans-serif}