|
1 | | -import Wrapper from "@/components/layout/Wrapper.vue"; |
| 1 | +import brainboxLogo from '@/assets/brainbox-logo-small_noFont.svg'; |
| 2 | +import Wrapper from '@/components/layout/Wrapper.vue'; |
| 3 | +import '@fontsource/roboto/100.css'; |
2 | 4 |
|
3 | 5 | export default { |
4 | | - decorators: [() => { |
5 | | - return { |
| 6 | + decorators: [ |
| 7 | + () => ({ |
6 | 8 | components: { Wrapper }, |
7 | | - template: "<Wrapper><story/></Wrapper>", |
| 9 | + template: '<Wrapper><story/></Wrapper>', |
8 | 10 | provide: { |
9 | 11 | config: { |
10 | | - siteName: "BrainBox", |
11 | | - baseURL: "https://brainbox.pasteur.fr", |
12 | | - logoURL: |
13 | | - "https://brainbox.pasteur.fr/img/brainbox-logo-small_noFont.svg", |
14 | | - githubURL: "https://github.com/neuroanatomy/BrainBox", |
15 | | - issuesURL: "https://github.com/neuroanatomy/BrainBox/issues/new", |
16 | | - searchURL: "https://openneurolab.github.io/metasearch", |
17 | | - docURL: "https://github.com/neuroanatomy/BrainBox", |
18 | | - userSearchURL: 'https://brainbox.pasteur.fr/api/userNameQuery?q=', |
19 | | - fetchLabelSets: async () => { |
20 | | - return (await (await fetch(`https://brainbox.pasteur.fr/api/getLabelsets`)).json()) |
21 | | - }, |
| 12 | + siteName: 'BrainBox', |
| 13 | + baseURL: window.location.protocol + '//' + window.location.host, |
| 14 | + logoURL: brainboxLogo, |
| 15 | + githubURL: 'https://github.com/neuroanatomy/BrainBox', |
| 16 | + issuesURL: 'https://github.com/neuroanatomy/BrainBox/issues/new', |
| 17 | + searchURL: 'https://openneurolab.github.io/metasearch', |
| 18 | + docURL: 'https://github.com/neuroanatomy/BrainBox', |
| 19 | + userSearchURL: '/api/userNameQuery?q=', |
| 20 | + fetchLabelSets: () => ([ |
| 21 | + {'name': 'Axolotl: 80 regions', 'source': 'axolotl_labels.json'}, |
| 22 | + {'name': 'Axolotl: 12 structures', 'source': 'axolotl_structures.json'}, |
| 23 | + {'name': 'Cerebellum: 28 segments', 'source': 'cerebellum.json'}, |
| 24 | + {'name': 'Cerebrum', 'source': 'cerebrum.json'}, |
| 25 | + {'name': 'Corpus Callosum: 5 segments', 'source': 'corpus_callosum.json'}, |
| 26 | + {'name': 'Ferret 50 Regions', 'source': 'ferret50.json'}, |
| 27 | + {'name': 'Foreground', 'source': 'foreground.json'}, |
| 28 | + {'name': '10 regions', 'source': 'freestyle.json'} |
| 29 | + ]), |
22 | 30 | annotationTypes: ['text', 'volume'], |
23 | | - usernameField: 'username', |
| 31 | + usernameField: 'username' |
24 | 32 | }, |
25 | 33 | user: { |
26 | | - username: "dhovart", |
27 | | - }, |
28 | | - }, |
29 | | - }; |
30 | | - }] |
31 | | -} |
| 34 | + username: 'dhovart' |
| 35 | + } |
| 36 | + } |
| 37 | + }) |
| 38 | + ] |
| 39 | +}; |
32 | 40 |
|
33 | 41 | export const parameters = { |
34 | 42 | backgrounds: { |
35 | | - default: "black", |
| 43 | + default: 'black', |
36 | 44 | values: [ |
37 | 45 | { |
38 | | - name: "black", |
39 | | - value: "#222", |
40 | | - }, |
41 | | - ], |
42 | | - }, |
| 46 | + name: 'black', |
| 47 | + value: '#222' |
| 48 | + } |
| 49 | + ] |
| 50 | + } |
43 | 51 | }; |
0 commit comments