Skip to content

Commit 953810f

Browse files
jasonvargajelleroordajustkidding96
authored
[6.x] Vue 3 (#11339)
Co-authored-by: Jelle Roorda <info@roordaict.nl> Co-authored-by: Rowdy Klijnsmit <rowdyklijnsmit@gmail.com>
1 parent d1e046d commit 953810f

File tree

262 files changed

+5942
-5366
lines changed

Some content is hidden

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

262 files changed

+5942
-5366
lines changed
File renamed without changes.

jest.config.js renamed to jest.config.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ module.exports = {
7676
// ],
7777

7878
// A map from regular expressions to module names that allow to stub out resources with a single module
79-
// moduleNameMapper: {},
79+
moduleNameMapper: {
80+
"^@vue/test-utils": "<rootDir>/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js"
81+
},
8082

8183
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
8284
// modulePathIgnorePatterns: [],

package-lock.json

Lines changed: 3702 additions & 2413 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "statamic",
3+
"type": "module",
34
"private": true,
45
"scripts": {
56
"dev": "rm -rf resources/dist/build && vite",
@@ -12,13 +13,17 @@
1213
},
1314
"dependencies": {
1415
"@floating-ui/dom": "^1.2.5",
16+
"@floating-ui/vue": "^1.0.6",
17+
"@he-tree/vue": "^2.8.2",
18+
"@hoppscotch/vue-toasted": "^0.1.0",
1519
"@shopify/draggable": "^1.0.0-beta.12",
1620
"@tiptap/core": "^2.0.2",
1721
"@tiptap/extension-blockquote": "^2.0.2",
1822
"@tiptap/extension-bold": "^2.0.2",
1923
"@tiptap/extension-bullet-list": "^2.0.2",
2024
"@tiptap/extension-character-count": "^2.0.2",
2125
"@tiptap/extension-code": "^2.0.2",
26+
"@tiptap/extension-code-block": "^2.4.0",
2227
"@tiptap/extension-code-block-lowlight": "^2.0.2",
2328
"@tiptap/extension-document": "^2.0.2",
2429
"@tiptap/extension-dropcursor": "^2.0.2",
@@ -44,60 +49,62 @@
4449
"@tiptap/extension-typography": "^2.0.2",
4550
"@tiptap/extension-underline": "^2.0.2",
4651
"@tiptap/pm": "^2.0.2",
47-
"@tiptap/vue-2": "^2.0.2",
52+
"@tiptap/vue-3": "^2.4.0",
4853
"alpinejs": "^3.1.1",
49-
"autosize": "~3.0.12",
50-
"axios": "^1.7.4",
54+
"autosize": "~6.0.1",
55+
"axios": "^1.6.0",
5156
"body-scroll-lock": "^4.0.0-beta.0",
52-
"codemirror": "^5.58.2",
57+
"codemirror": "5.65.12",
5358
"cookies-js": "^1.2.2",
54-
"floating-vue": "^1.0.0-beta.19",
59+
"floating-vue": "^5.2.2",
5560
"fuse.js": "^7.0.0",
5661
"highlight.js": "^11.7.0",
57-
"imask": "^6.6.0-alpha.0",
62+
"imask": "^7.6.1",
5863
"laravel-echo": "^1.16.0",
59-
"lowlight": "^2.8.1",
60-
"marked": "^4.0.10",
64+
"lowlight": "^3.1.0",
65+
"marked": "^13.0.0",
6166
"marked-plaintext": "0.0.2",
6267
"moment": "^2.29.4",
63-
"mousetrap": "~1.5.3",
68+
"mousetrap": "~1.6.5",
6469
"nprogress": "^0.2.0",
6570
"pdfobject": "^2.2.7",
66-
"portal-vue": "^1.5.1",
71+
"portal-vue": "^3.0.0",
6772
"pretty": "^2.0.0",
68-
"pusher-js": "^4.4.0",
73+
"pusher-js": "^8.4.0-rc2",
6974
"qs": "^6.9.7",
70-
"read-time-estimate": "0.0.2",
75+
"read-time-estimate": "0.0.3",
7176
"resize-observer-polyfill": "^1.5.1",
7277
"speakingurl": "^14.0.1",
7378
"striptags": "^3.2.0",
7479
"svgo": "^3.0.0",
80+
"tiny-emitter": "^2.1.0",
7581
"underscore": "~1.13.2",
7682
"uniqid": "^5.2.0",
7783
"upload": "^1.3.2",
78-
"v-calendar": "^2.3.0",
84+
"v-calendar": "^3.1.2",
7985
"validator": "^13.7.0",
80-
"vue": "^2.7.14",
81-
"vue-clickaway": "~2.2.2",
82-
"vue-draggable-nested-tree": "^2.3.0-beta.1",
83-
"vue-js-modal": "^2.0.1",
84-
"vue-select": "^3.10.1",
85-
"vue-toasted": "^1.1.27",
86-
"vuex": "^3.1.2"
86+
"vite-svg-loader": "^5.1.0",
87+
"vue": "^3.4.27",
88+
"vue-final-modal": "^4.5.4",
89+
"vue-screen-utils": "^1.0.0-beta.13",
90+
"vue-select": "4.0.0-beta.6",
91+
"vue3-click-away": "^1.2.4",
92+
"vuex": "^4.1.0"
8793
},
8894
"devDependencies": {
8995
"@babel/preset-env": "^7.20.2",
9096
"@rollup/plugin-inject": "^5.0.3",
9197
"@tailwindcss/container-queries": "^0.1.0",
9298
"@tailwindcss/typography": "^0.5.9",
93-
"@vitejs/plugin-vue2": "^2.2.0",
99+
"@vitejs/plugin-vue": "^5.2.1",
100+
"@vue/test-utils": "^2.4.6",
94101
"autoprefixer": "^10.4.0",
95-
"cross-env": "^5.2.1",
102+
"cross-env": "^7.0.3",
96103
"jest": "^29.4.2",
97104
"jest-environment-jsdom": "^29.4.2",
98-
"laravel-vite-plugin": "^0.7.2",
105+
"laravel-vite-plugin": "^1.2.0",
99106
"postcss": "^8.4.31",
100107
"tailwindcss": "^3.3.0",
101-
"vite": "^4.5.5"
108+
"vite": "^6.0"
102109
}
103110
}
File renamed without changes.

resources/css/components/fieldtypes/datetime.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@
3636
@apply flex;
3737
}
3838

39-
/* Remove style from datepicker in popover since the popover has them. */
40-
.popover-content .vc-container {
41-
@apply border-none bg-none;
39+
/* VCalendar dark mode background */
40+
.vc-container, .vc-date-picker-content {
41+
@apply dark:bg-dark-500 dark:border-dark-700;
4242
}
4343

44-
.vc-container.vc-is-dark {
45-
@apply dark:bg-transparent;
44+
/* VCalendar dark mode year/month popover */
45+
.vc-nav-popover-container {
46+
@apply dark:bg-dark-700 dark:border-dark-900;
4647
}
4748

4849
/* Time Field

resources/css/components/modal.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/* ==========================================================================
22
MODALS
33
========================================================================== */
4-
.vm--container {
4+
.vfm {
55
direction: ltr;
66
}
77

8-
.vm--modal {
8+
.vfm__content {
99
@apply rounded-lg dark:bg-dark-600 dark:shadow-dark !important;
10+
@apply bg-white shadow-2xl overflow-clip;
1011

1112
[dir='rtl'] & {
1213
direction: rtl;
1314
}
1415
}
1516

16-
.vm--overlay {
17+
.vfm__overlay {
1718
background: hsla(210, 20%, 10%, .15) !important;
1819
}
1920

resources/css/components/page-tree.css

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@apply dark:mb-1;
55
}
66

7-
.tree-node-inner {
7+
.page-tree-branch {
88
@apply relative text-xs bg-white shadow rounded;
99
@apply dark:bg-dark-600 dark:shadow-dark;
1010

@@ -17,13 +17,6 @@
1717
@apply dark:mt-1;
1818
}
1919

20-
.draggable-placeholder-inner {
21-
border: 1px dashed #0088F8;
22-
background: rgba(0, 136, 249, 0.09);
23-
24-
* { display: none; }
25-
}
26-
2720
.page-move {
2821
@apply w-6 rtl:border-l ltr:border-r rtl:rounded-r ltr:rounded-l dark:text-dark-175 dark:border-dark-900;
2922
cursor: grab;
@@ -44,16 +37,3 @@
4437
@apply flex w-6 rtl:rounded-r ltr:rounded-l items-center rtl:border-l ltr:border-r dark:border-dark-900;
4538
}
4639
}
47-
48-
.page-tree-with-sections {
49-
> .tree-node > .tree-node-children > .tree-node {
50-
@apply mb-8;
51-
}
52-
53-
.section-placeholder-inner {
54-
@apply rounded;
55-
border: 1px dashed #0088F8;
56-
background: rgba(0, 136, 249, 0.09);
57-
min-height: 42px;
58-
}
59-
}

0 commit comments

Comments
 (0)