@olenbetong/appframe-vite 2.2.16 → 2.2.17
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/lib/devServer.js +21 -19
- package/package.json +3 -3
package/lib/devServer.js
CHANGED
|
@@ -65,7 +65,7 @@ export function createHtmlTransformer() {
|
|
|
65
65
|
let userSession = await getUserSession();
|
|
66
66
|
return html
|
|
67
67
|
.replace("<!-- {Appframe} -->", `<script src="/lib/@olenbetong/appframe-core/2.1.0/dist/iife/af.common.js"></script>
|
|
68
|
-
<script src="/lib/@olenbetong/appframe-data/0.5.
|
|
68
|
+
<script src="/lib/@olenbetong/appframe-data/0.5.1/dist/iife/af.data.js"></script>
|
|
69
69
|
<script>
|
|
70
70
|
af = globalThis.af ?? {};
|
|
71
71
|
af.userSession = ${JSON.stringify(userSession)};
|
|
@@ -81,36 +81,38 @@ var SkipToConfig = {
|
|
|
81
81
|
colorTheme: 'default',
|
|
82
82
|
displayOption: "popup",
|
|
83
83
|
positionLeft: "0",
|
|
84
|
-
buttonLabel: l("Skip to Content")
|
|
85
|
-
buttonTooltipAccesskey: l('Accesskey is "$key"')
|
|
86
|
-
menuLabel: l('Landmarks and Headings')
|
|
87
|
-
landmarkGroupLabel: l('Landmarks')
|
|
88
|
-
headingGroupLabel: l('Headings')
|
|
89
|
-
mofnGroupLabel: l('$m of $n')
|
|
90
|
-
headingLevelLabel: l('Heading level')
|
|
91
|
-
mainLabel: l('main')
|
|
92
|
-
searchLabel: l('search')
|
|
93
|
-
navLabel: l('navigation')
|
|
94
|
-
asideLabel: l('aside')
|
|
95
|
-
footerLabel: l('footer')
|
|
96
|
-
headerLabel: l('header')
|
|
97
|
-
formLabel: l('form')
|
|
98
|
-
msgNoLandmarksFound: l('No landmarks to skip to')
|
|
99
|
-
msgNoHeadingsFound: l('No main headings to skip to')
|
|
84
|
+
buttonLabel: l("Skip to Content"),
|
|
85
|
+
buttonTooltipAccesskey: l('Accesskey is "$key"'),
|
|
86
|
+
menuLabel: l('Landmarks and Headings'),
|
|
87
|
+
landmarkGroupLabel: l('Landmarks'),
|
|
88
|
+
headingGroupLabel: l('Headings'),
|
|
89
|
+
mofnGroupLabel: l('$m of $n'),
|
|
90
|
+
headingLevelLabel: l('Heading level'),
|
|
91
|
+
mainLabel: l('main'),
|
|
92
|
+
searchLabel: l('search'),
|
|
93
|
+
navLabel: l('navigation'),
|
|
94
|
+
asideLabel: l('aside'),
|
|
95
|
+
footerLabel: l('footer'),
|
|
96
|
+
headerLabel: l('header'),
|
|
97
|
+
formLabel: l('form'),
|
|
98
|
+
msgNoLandmarksFound: l('No landmarks to skip to'),
|
|
99
|
+
msgNoHeadingsFound: l('No main headings to skip to')
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
</script>
|
|
104
104
|
<script src="/lib/paypal-skipto/downloads/js/skipto.min.js" async></script>`)
|
|
105
105
|
.replace(`<!-- {Theme} -->`, isPartner
|
|
106
|
-
? `
|
|
106
|
+
? `
|
|
107
|
+
<link rel="stylesheet" href="/file/site/style/ob.application.min.css" />
|
|
107
108
|
<link rel="stylesheet" href="/file/site/style/ob.theme.base.less" />
|
|
108
109
|
<link rel="stylesheet" href="/file/site/style/ob.theme.betongost.less" />
|
|
109
110
|
<link rel="stylesheet" href="/file/site/style/ob.theme.olenbetong.less" />
|
|
110
111
|
<link rel="stylesheet" href="/file/site/style/ob.theme.ribe.less" />
|
|
111
112
|
<link rel="stylesheet" href="/file/site/style/ob.theme.sjb.less" />
|
|
112
113
|
`
|
|
113
|
-
: `
|
|
114
|
+
: `
|
|
115
|
+
<link rel="stylesheet" href="/file/site/style/ob.theme.base.less" />
|
|
114
116
|
<link rel="stylesheet" href="/file/site/style/ob.theme.betongost.less" />
|
|
115
117
|
<link rel="stylesheet" href="/file/site/style/ob.theme.forsand.less" />
|
|
116
118
|
<link rel="stylesheet" href="/file/site/style/ob.theme.olenbetong.less" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/appframe-vite",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
4
4
|
"description": "Tools to use and deploy Vite applications to Appframe",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "Bjørnar Vister Hansen <bvh@olenbetong.no>",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@olenbetong/appframe-data": "^0.5.
|
|
22
|
+
"@olenbetong/appframe-data": "^0.5.1",
|
|
23
23
|
"dotenv": "^16.0.1",
|
|
24
24
|
"rollup-plugin-visualizer": "^5.8.0",
|
|
25
25
|
"vite-plugin-externals": "^0.5.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"open": "^8.4.0",
|
|
40
40
|
"tcp-port-used": "^1.0.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a286b20d9e7e758b9049928d060e5d0c891cbc57"
|
|
43
43
|
}
|