Skip to content

Commit 7eaf47b

Browse files
authored
feat: update to oruga v0.13 (#210)
1 parent 3851fe7 commit 7eaf47b

File tree

5 files changed

+55
-55
lines changed

5 files changed

+55
-55
lines changed

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747
"update": "ncu -u"
4848
},
4949
"peerDependencies": {
50-
"@oruga-ui/oruga-next": "^0.12.0"
50+
"@oruga-ui/oruga-next": "^0.13.0-pre.2"
5151
},
5252
"dependencies": {
5353
"bootstrap": "^5.3.8"
5454
},
5555
"devDependencies": {
5656
"@eslint/compat": "^2.0.2",
5757
"@eslint/js": "^10.0.1",
58-
"@oruga-ui/examples": "^0.12.6",
59-
"@oruga-ui/oruga-next": "^0.12.6",
58+
"@oruga-ui/examples": "^0.13.0-pre.2",
59+
"@oruga-ui/oruga-next": "^0.13.0-pre.2",
6060
"@tsconfig/node24": "^24.0.4",
6161
"@types/node": "^25.3.3",
6262
"@vitejs/plugin-vue": "^6.0.4",

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Oruga from "@oruga-ui/oruga-next";
77
import Examples from "@oruga-ui/examples";
88

99
// add examples styles
10-
import "@oruga-ui/examples/dist/examples.css";
10+
import "@oruga-ui/examples/index.css";
1111

1212
// add theme config
1313
import { bootstrapConfig } from "./plugins/theme";
@@ -18,6 +18,7 @@ import "./assets/scss/theme-build.scss";
1818
createApp(App)
1919
.use(router)
2020
.use(Oruga, {
21+
globalComponents: true,
2122
iconPack: "fas",
2223
iconComponent: "vue-fontawesome",
2324
customIconPacks: {

src/plugins/theme.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import type { OrugaOptions } from "@oruga-ui/oruga-next";
2+
import type { OrugaConfig } from "@oruga-ui/oruga-next";
33

4-
const bootstrapConfig: OrugaOptions = {
4+
const bootstrapConfig: OrugaConfig = {
55
autocomplete: {
66
override: true,
77
rootClass: "autocomplete",
@@ -510,15 +510,14 @@ const bootstrapConfig: OrugaOptions = {
510510
thClass: "table-th",
511511
thLabelClass: "column-label",
512512
thSortableClass: "sortable",
513-
thCurrentSortClass: "current-sort",
513+
thSortedClass: "current-sort",
514514
thSortIconClass: "sort-icon",
515-
thUnselectableClass: "unselectable",
516515
thDetailedClass: "chevron",
517516
thStickyClass: "sticky",
518517
thCheckboxClass: "checkbox",
519518
thPositionClass: "text-",
520519
tdClass: "table-td",
521-
tdDetailedChevronClass: "chevron",
520+
tdDetailClass: "chevron",
522521
tdStickyClass: "sticky",
523522
tdCheckboxClass: "checkbox",
524523
tdPositionClass: "text-",

src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const routes: Array<RouteRecordRaw> = [
1616
component: Home,
1717
},
1818
...components.map((component) => ({
19-
path: "/components/" + component.toLocaleLowerCase(),
19+
path: "/components/" + component.toLocaleLowerCase() + ".html",
2020
name: component,
2121
props: { component },
2222
component: Component,

0 commit comments

Comments
 (0)