kitchen-simulator 5.0.0-test.28 → 5.0.0-test.30
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/package.json +5 -4
- package/src/index.html.ejs +0 -226
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitchen-simulator",
|
|
3
|
-
"version": "5.0.0-test.
|
|
3
|
+
"version": "5.0.0-test.30",
|
|
4
4
|
"description": "It is a kitchen simulator.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
"styled-components": "^5.2.0",
|
|
106
106
|
"velocity-react": "1.4.3"
|
|
107
107
|
},
|
|
108
|
-
|
|
109
108
|
"devDependencies": {
|
|
110
109
|
"@babel/core": "^7.24.7",
|
|
111
110
|
"@babel/preset-env": "^7.24.7",
|
|
@@ -117,9 +116,7 @@
|
|
|
117
116
|
"gh-pages": "2.0.1",
|
|
118
117
|
"immutable-devtools": "0.1.4",
|
|
119
118
|
"prettier": "^3.5.3",
|
|
120
|
-
"react": "^16.9.0",
|
|
121
119
|
"react-container-dimensions": "1.4.1",
|
|
122
|
-
"react-dom": "16.9.0",
|
|
123
120
|
"rimraf": "2.6.3",
|
|
124
121
|
"sass": "^1.29.0",
|
|
125
122
|
"sass-loader": "^10.0.5",
|
|
@@ -128,5 +125,9 @@
|
|
|
128
125
|
"webpack": "5.92.1",
|
|
129
126
|
"webpack-cli": "5.1.4",
|
|
130
127
|
"webpack-dev-server": "5.0.4"
|
|
128
|
+
},
|
|
129
|
+
"peerDependencies": {
|
|
130
|
+
"react": ">=16.8 || ^17 || ^18",
|
|
131
|
+
"react-dom": ">=16.8 || ^17 || ^18"
|
|
131
132
|
}
|
|
132
133
|
}
|
package/src/index.html.ejs
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
6
|
-
<link rel="stylesheet" type="text/css" href="/assets/fonts/style.css" />
|
|
7
|
-
<link
|
|
8
|
-
rel="icon"
|
|
9
|
-
type="image/jpg"
|
|
10
|
-
href="/assets/img/rta/rta_logo_box_blue_ico.jpg"
|
|
11
|
-
id="favicon_icon_jpg"
|
|
12
|
-
/>
|
|
13
|
-
<link
|
|
14
|
-
rel="icon"
|
|
15
|
-
type="image/svg"
|
|
16
|
-
href="/assets/img/rta/rta_logo_box_blue_ico.svg"
|
|
17
|
-
id="favicon_icon_svg"
|
|
18
|
-
/>
|
|
19
|
-
<link
|
|
20
|
-
rel="shortcut icon"
|
|
21
|
-
type="image/jpg"
|
|
22
|
-
href="/assets/img/rta/rta_logo_box_blue_ico.jpg"
|
|
23
|
-
id="favicon_shortcut_jpg"
|
|
24
|
-
/>
|
|
25
|
-
<link
|
|
26
|
-
rel="shortcut icon"
|
|
27
|
-
type="image/svg"
|
|
28
|
-
href="/assets/img/rta/rta_logo_box_blue_ico.svg"
|
|
29
|
-
id="favicon_shortcut_svg"
|
|
30
|
-
/>
|
|
31
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
32
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
33
|
-
<link
|
|
34
|
-
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap"
|
|
35
|
-
rel="stylesheet"
|
|
36
|
-
/>
|
|
37
|
-
<style>
|
|
38
|
-
* {
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
html,
|
|
43
|
-
body,
|
|
44
|
-
#app {
|
|
45
|
-
width: 100%;
|
|
46
|
-
height: 100%;
|
|
47
|
-
padding: 0;
|
|
48
|
-
margin: 0;
|
|
49
|
-
font-family: 'Milliard Book';
|
|
50
|
-
font-weight: normal;
|
|
51
|
-
position: absolute;
|
|
52
|
-
left: 0;
|
|
53
|
-
top: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
#error {
|
|
57
|
-
position: relative;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
::-webkit-scrollbar {
|
|
61
|
-
width: 2px;
|
|
62
|
-
border-radius: 2px;
|
|
63
|
-
position: absolute;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
::-webkit-scrollbar-track-piece {
|
|
67
|
-
background-color: #fff;
|
|
68
|
-
border-radius: 1px;
|
|
69
|
-
position: absolute;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
::-webkit-scrollbar-thumb:vertical {
|
|
73
|
-
height: 30px;
|
|
74
|
-
background-color: rgb(193, 202, 228);
|
|
75
|
-
}
|
|
76
|
-
::-webkit-scrollbar-thumb {
|
|
77
|
-
background-color: rgb(220, 220, 220);
|
|
78
|
-
border-radius: 5px;
|
|
79
|
-
transition: all 0.3s;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
::-webkit-scrollbar-thumb:hover {
|
|
83
|
-
background-color: rgb(193, 202, 228);
|
|
84
|
-
border-radius: 5px;
|
|
85
|
-
transition: all 0.3s;
|
|
86
|
-
}
|
|
87
|
-
</style>
|
|
88
|
-
<!-- Hotjar Tracking Code for New DIY -->
|
|
89
|
-
<script>
|
|
90
|
-
(function (h, o, t, j, a, r) {
|
|
91
|
-
h.hj =
|
|
92
|
-
h.hj ||
|
|
93
|
-
function () {
|
|
94
|
-
(h.hj.q = h.hj.q || []).push(arguments);
|
|
95
|
-
};
|
|
96
|
-
h._hjSettings = { hjid: 5088152, hjsv: 6 };
|
|
97
|
-
a = o.getElementsByTagName('head')[0];
|
|
98
|
-
r = o.createElement('script');
|
|
99
|
-
r.async = 1;
|
|
100
|
-
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
|
|
101
|
-
a.appendChild(r);
|
|
102
|
-
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
|
|
103
|
-
</script>
|
|
104
|
-
</head>
|
|
105
|
-
|
|
106
|
-
<body>
|
|
107
|
-
<div id="app" style="display: none">
|
|
108
|
-
<div
|
|
109
|
-
style="
|
|
110
|
-
width: 100vw;
|
|
111
|
-
height: 100vh;
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
align-items: center;
|
|
115
|
-
justify-content: center;
|
|
116
|
-
"
|
|
117
|
-
>
|
|
118
|
-
<img
|
|
119
|
-
id="kc_spinner"
|
|
120
|
-
style="height: 60px"
|
|
121
|
-
alt="Loading"
|
|
122
|
-
src="/assets/img/loading/loading.gif"
|
|
123
|
-
/>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div id="error" style="z-index: -1"></div>
|
|
127
|
-
<!-- Start of LiveChat (www.livechat.com) code -->
|
|
128
|
-
<script>
|
|
129
|
-
function injectThertastore() {
|
|
130
|
-
// --- LiveChat SCRIPT ---
|
|
131
|
-
const liveScript = document.createElement('script');
|
|
132
|
-
liveScript.innerHTML = `
|
|
133
|
-
window.__lc = window.__lc || {};
|
|
134
|
-
window.__lc.license = 3185312;
|
|
135
|
-
(function (n, t, c) {
|
|
136
|
-
function i(n) { return e._h ? e._h.apply(null, n) : e._q.push(n); }
|
|
137
|
-
var e = {
|
|
138
|
-
_q: [], _h: null, _v: '2.0',
|
|
139
|
-
on: function () { i(['on', c.call(arguments)]); },
|
|
140
|
-
once: function () { i(['once', c.call(arguments)]); },
|
|
141
|
-
off: function () { i(['off', c.call(arguments)]); },
|
|
142
|
-
get: function () {
|
|
143
|
-
if (!e._h)
|
|
144
|
-
throw new Error("[LiveChatWidget] You can't use getters before load.");
|
|
145
|
-
return i(['get', c.call(arguments)]);
|
|
146
|
-
},
|
|
147
|
-
call: function () { i(['call', c.call(arguments)]); },
|
|
148
|
-
init: function () {
|
|
149
|
-
var n = t.createElement('script');
|
|
150
|
-
n.async = true;
|
|
151
|
-
n.type = 'text/javascript';
|
|
152
|
-
n.src = 'https://cdn.livechatinc.com/tracking.js';
|
|
153
|
-
t.head.appendChild(n);
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
!n.__lc.asyncInit && e.init();
|
|
157
|
-
n.LiveChatWidget = n.LiveChatWidget || e;
|
|
158
|
-
})(window, document, [].slice);
|
|
159
|
-
`;
|
|
160
|
-
document.body.appendChild(liveScript);
|
|
161
|
-
|
|
162
|
-
// --- LiveChat NOSCRIPT ---
|
|
163
|
-
const noscript = document.createElement('noscript');
|
|
164
|
-
noscript.innerHTML = `
|
|
165
|
-
<a href="https://www.livechat.com/chat-with/3185312/" rel="nofollow">
|
|
166
|
-
Chat with us
|
|
167
|
-
</a>, powered by
|
|
168
|
-
<a href="https://www.livechat.com/?welcome" rel="noopener nofollow" target="_blank">
|
|
169
|
-
LiveChat
|
|
170
|
-
</a>
|
|
171
|
-
`;
|
|
172
|
-
document.body.appendChild(noscript);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function injectPrimecabinetry() {
|
|
176
|
-
// --- Richpanel SCRIPT ---
|
|
177
|
-
const richpanelScript = document.createElement('script');
|
|
178
|
-
richpanelScript.innerHTML = `
|
|
179
|
-
window.richpanel||(window.richpanel=[]),window.richpanel.q=[],
|
|
180
|
-
mth=["track","debug","atr"],
|
|
181
|
-
sk=function(e){return function(){
|
|
182
|
-
a=Array.prototype.slice.call(arguments);
|
|
183
|
-
a.unshift(e);
|
|
184
|
-
window.richpanel.q.push(a)
|
|
185
|
-
}};
|
|
186
|
-
for(var i=0;mth.length>i;i++)window.richpanel[mth[i]]=sk(mth[i]);
|
|
187
|
-
window.richpanel.load=function(e){
|
|
188
|
-
var i=document,
|
|
189
|
-
n=i.getElementsByTagName("script")[0],
|
|
190
|
-
r=i.createElement("script");
|
|
191
|
-
r.type="text/javascript";
|
|
192
|
-
r.async=true;
|
|
193
|
-
r.src="https://cdn.richpanel.com/js/richpanel-root.js?appClientId=primecabinetry2965";
|
|
194
|
-
n.parentNode.insertBefore(r,n)
|
|
195
|
-
};
|
|
196
|
-
window.richpanel.ensure_rpuid="";
|
|
197
|
-
richpanel.load("primecabinetry2965");
|
|
198
|
-
`;
|
|
199
|
-
document.body.appendChild(richpanelScript);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// brand → injection function mapping
|
|
203
|
-
const brandInjectors = {
|
|
204
|
-
thertastore: injectThertastore,
|
|
205
|
-
primecabinetry: injectPrimecabinetry
|
|
206
|
-
// future brands go here
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
// extract brand from URL
|
|
210
|
-
const brand = window.location.pathname.split('/')[1];
|
|
211
|
-
|
|
212
|
-
// pick injector
|
|
213
|
-
const injector = brandInjectors[brand];
|
|
214
|
-
|
|
215
|
-
if (injector) {
|
|
216
|
-
injector();
|
|
217
|
-
} else {
|
|
218
|
-
console.warn(
|
|
219
|
-
`[Brand Injection] Unknown brand "${brand}". Defaulting to Thertastore.`
|
|
220
|
-
);
|
|
221
|
-
brandInjectors['thertastore']();
|
|
222
|
-
}
|
|
223
|
-
</script>
|
|
224
|
-
<!-- End of LiveChat code -->
|
|
225
|
-
</body>
|
|
226
|
-
</html>
|