Skip to content

Commit 0dae11a

Browse files
Merge branch 'master' into asset-validation-error-per-asset-6.x
2 parents 17683b1 + d1bb31c commit 0dae11a

File tree

703 files changed

+13534
-2348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

703 files changed

+13534
-2348
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
tag_name: ${{ steps.changelog.outputs.version }}
3939
release_name: ${{ steps.changelog.outputs.version }}
4040
body: ${{ steps.changelog.outputs.text }}
41-
prerelease: true
41+
prerelease: false
4242

4343
- name: Upload dist zip to release
4444
uses: actions/[email protected]

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
files: |
4040
config
41-
resources/lang
41+
lang
4242
resources/users
4343
resources/views
4444
routes

.storybook/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { StorybookConfig } from '@storybook/vue3-vite';
2+
import { resolve } from 'path';
23

34
const config: StorybookConfig = {
45
stories: [
@@ -16,6 +17,15 @@ const config: StorybookConfig = {
1617
docgen: 'vue-component-meta'
1718
}
1819
},
20+
async viteFinal(config) {
21+
if (config.resolve) {
22+
config.resolve.alias = {
23+
...config.resolve.alias,
24+
'@api': resolve(process.cwd(), 'resources/js/api.js'),
25+
};
26+
}
27+
return config;
28+
},
1929
};
2030

2131
export default config;

.storybook/manager-head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<link rel="icon" type="image/x-icon" href="favicon.ico">
2+
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
3+
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
4+
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
5+
16
<link rel="preconnect" href="https://fonts.googleapis.com">
27
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
38
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500&display=swap" rel="stylesheet">
9+
10+
<link rel="stylesheet" href="manager-head.css">

.storybook/manager.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ const theme = create({
66
base: 'light',
77
brandTitle: 'Statamic UI Components',
88
brandUrl: 'https://statamic.dev',
9-
brandImage: '/logo.png',
9+
brandImage: '/logo.svg',
1010
fontBase: '"Lexend", sans-serif',
11-
fontCode: '"Source Code Pro", monospace'
11+
fontCode: '"Source Code Pro", monospace',
12+
13+
appBorderColor: 'hsl(287deg 80% 90%)',
14+
textColor: '#181a1b',
1215
});
1316

1417
addons.setConfig({

.storybook/preview-head.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
<link rel="icon" type="image/x-icon" href="favicon.ico">
2+
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
3+
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
4+
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
5+
16
<link rel="preconnect" href="https://use.typekit.net" crossorigin>
27
<link rel="preconnect" href="https://p.typekit.net" crossorigin>
3-
<link rel="stylesheet" href="https://use.typekit.net/wyy0pka.css"/>
8+
<link rel="stylesheet" href="https://use.typekit.net/wyy0pka.css">
49

510
<link rel="preconnect" href="https://fonts.googleapis.com">
611
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

.storybook/preview.ts

Lines changed: 62 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
import type { Preview } from '@storybook/vue3-vite';
2-
import { setup } from '@storybook/vue3';
3-
import { create as createTheme } from 'storybook/theming';
4-
import { router } from '@inertiajs/vue3';
5-
import { action } from 'storybook/actions';
1+
import type {Preview} from '@storybook/vue3-vite';
2+
import {setup} from '@storybook/vue3';
3+
import {create as createTheme} from 'storybook/theming';
4+
import {router} from '@inertiajs/vue3';
5+
import {action} from 'storybook/actions';
66
import './storybook.css';
77
import './theme.css';
8-
import { translate } from '@/translations/translator';
8+
import {translate} from '@/translations/translator';
99
import registerUiComponents from '@/bootstrap/ui';
1010
import DateFormatter from '@/components/DateFormatter';
1111
import cleanCodeSnippet from './clean-code-snippet';
12+
import PortalVue from 'portal-vue';
13+
import FullscreenHeader from '@/components/publish/FullscreenHeader.vue';
14+
import Portal from '@/components/portals/Portal.vue';
15+
import PortalTargets from '@/components/portals/PortalTargets.vue';
16+
import {keys, portals, slug, stacks} from '@api';
1217

1318
// Intercept Inertia navigation and log to Actions tab.
1419
router.on('before', (event) => {
@@ -18,8 +23,50 @@ router.on('before', (event) => {
1823

1924
setup(async (app) => {
2025
window.__ = translate;
26+
27+
window.Statamic = {
28+
$config: {
29+
get(key) {
30+
const config = {
31+
linkToDocs: true,
32+
paginationSize: 50,
33+
paginationSizeOptions: [10, 25, 50, 100, 500],
34+
sites: [{
35+
handle: 'default',
36+
lang: 'en',
37+
}],
38+
selectedSite: 'default',
39+
};
40+
41+
return config[key] ?? null;
42+
}
43+
},
44+
$commandPalette: {
45+
add(command) {
46+
//
47+
}
48+
},
49+
$progress: {
50+
loading(name, loading) {
51+
//
52+
}
53+
}
54+
};
55+
2156
app.config.globalProperties.__ = translate;
2257
app.config.globalProperties.$date = new DateFormatter;
58+
app.config.globalProperties.cp_url = (url) => url;
59+
app.config.globalProperties.$portals = portals;
60+
app.config.globalProperties.$stacks = stacks;
61+
app.config.globalProperties.$slug = slug;
62+
app.config.globalProperties.$keys = keys;
63+
64+
app.use(PortalVue, { portalName: 'v-portal' });
65+
66+
app.component('portal', Portal);
67+
app.component('PortalTargets', PortalTargets);
68+
app.component('publish-field-fullscreen-header', FullscreenHeader);
69+
2370
await registerUiComponents(app);
2471
});
2572

@@ -37,6 +84,7 @@ const preview: Preview = {
3784
base: 'light',
3885
fontBase: '"Lexend", sans-serif',
3986
fontCode: '"Source Code Pro", monospace',
87+
textColor: '#181a1b',
4088
}),
4189
source: {
4290
transform: (code: string) => cleanCodeSnippet(code),
@@ -50,11 +98,11 @@ const preview: Preview = {
5098
options: {
5199
storySort: {
52100
order: [
53-
// 'Getting Started',
54-
// 'Installation',
55-
'*',
56-
'Components'
101+
'Overview',
102+
'Components',
103+
'*'
57104
],
105+
method: 'alphabetical',
58106
},
59107
},
60108
},
@@ -87,7 +135,10 @@ const preview: Preview = {
87135
}
88136
}
89137

90-
return story();
138+
return {
139+
components: { PortalTargets },
140+
template: '<div><story /><PortalTargets /></div>',
141+
};
91142
},
92143
],
93144
};
12 KB
Loading
633 Bytes
Loading
1.13 KB
Loading

0 commit comments

Comments
 (0)