model-manager 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/administration/insert.js +179 -0
- package/administration/insert_one.js +33 -0
- package/administration/test_data.js +46 -0
- package/administration.html +76 -0
- package/app-update.yml +0 -0
- package/assets/css/admin.css +79 -0
- package/assets/css/basic.css +474 -0
- package/assets/css/checkout.css +517 -0
- package/assets/css/dialog.css +158 -0
- package/assets/css/dialog_checkout.css +156 -0
- package/assets/css/info.css +10 -0
- package/assets/logo.png +0 -0
- package/assets/partnerart.png +0 -0
- package/assets/spinner.gif +0 -0
- package/assets/three/GLTFLoader.js +4448 -0
- package/assets/three/ModelLoader.js +58 -0
- package/assets/three/OrbitControls.js +1252 -0
- package/assets/three/three.js +36819 -0
- package/assets/three/three.module.js +50708 -0
- package/assets/white/add_white_24dp.svg +1 -0
- package/assets/white/admin/person_add_FILL0_wght400_GRAD0_opsz48.svg +1 -0
- package/assets/white/admin/person_remove_FILL0_wght400_GRAD0_opsz48.svg +1 -0
- package/assets/white/admin.svg +1 -0
- package/assets/white/arrow_forward.svg +1 -0
- package/assets/white/brush_white_24dp.svg +1 -0
- package/assets/white/close_white_24dp.svg +1 -0
- package/assets/white/code_white_24dp.svg +1 -0
- package/assets/white/dashboard_white_24dp.svg +1 -0
- package/assets/white/done_white_24dp.svg +1 -0
- package/assets/white/emoji_people_white_24dp.svg +1 -0
- package/assets/white/filter_list_white_24dp.svg +1 -0
- package/assets/white/info_white_24dp.svg +1 -0
- package/assets/white/minimize_white_24dp.svg +1 -0
- package/assets/white/receipt_white_24dp.svg +1 -0
- package/assets/white/rocket_launch_white_24dp.svg +1 -0
- package/assets/white/search_black_24dp.svg +1 -0
- package/assets/white/search_white_24dp.svg +1 -0
- package/assets/white/settings_white_24dp.svg +1 -0
- package/assets/white/shopping_cart_white_24dp.svg +1 -0
- package/assets/white/store_white_24dp.svg +1 -0
- package/assets/white/timeline_white_24dp.svg +1 -0
- package/assets/white/view_in_ar_white_24dp.svg +1 -0
- package/checkout.html +131 -0
- package/checkout_admin.html +140 -0
- package/icon.png +0 -0
- package/imgs/armchair.png +0 -0
- package/imgs/arrow_tnt.png +0 -0
- package/imgs/bed_wnm.png +0 -0
- package/imgs/big_bed.png +0 -0
- package/imgs/birdscythe.png +0 -0
- package/imgs/blue_tnt.png +0 -0
- package/imgs/bull.png +0 -0
- package/imgs/carpet.png +0 -0
- package/imgs/chest.png +0 -0
- package/imgs/coin_stash.png +0 -0
- package/imgs/creeper_tnt.png +0 -0
- package/imgs/garbage_can.png +0 -0
- package/imgs/generator.png +0 -0
- package/imgs/golden_sword.png +0 -0
- package/imgs/highbed.png +0 -0
- package/imgs/jetpack1.png +0 -0
- package/imgs/jetpack2.png +0 -0
- package/imgs/jetpack3.png +0 -0
- package/imgs/jetpack4.png +0 -0
- package/imgs/jetpack5.png +0 -0
- package/imgs/jetpack6.png +0 -0
- package/imgs/karmincross.png +0 -0
- package/imgs/light_tnt.png +0 -0
- package/imgs/lucky_block.png +0 -0
- package/imgs/lucky_block_2.png +0 -0
- package/imgs/mega_tnt.png +0 -0
- package/imgs/modern_lamp.png +0 -0
- package/imgs/multiply_tnt.png +0 -0
- package/imgs/nuke.png +0 -0
- package/imgs/oak_tree.png +0 -0
- package/imgs/oak_tree_2.png +0 -0
- package/imgs/old_globe.png +0 -0
- package/imgs/scificannon_1.png +0 -0
- package/imgs/scificannon_10.png +0 -0
- package/imgs/scificannon_11.png +0 -0
- package/imgs/scificannon_12.png +0 -0
- package/imgs/scificannon_13.png +0 -0
- package/imgs/scificannon_14.png +0 -0
- package/imgs/scificannon_2.png +0 -0
- package/imgs/scificannon_3.png +0 -0
- package/imgs/scificannon_4.png +0 -0
- package/imgs/scificannon_5.png +0 -0
- package/imgs/scificannon_6.png +0 -0
- package/imgs/scificannon_7.png +0 -0
- package/imgs/scificannon_8.png +0 -0
- package/imgs/scificannon_9.png +0 -0
- package/imgs/simple_chair.png +0 -0
- package/imgs/small_car.png +0 -0
- package/imgs/small_modern_lamp.png +0 -0
- package/imgs/small_wardrobe.png +0 -0
- package/imgs/small_wooden_table.png +0 -0
- package/imgs/spike_sword.png +0 -0
- package/imgs/stone_holder.png +0 -0
- package/imgs/stone_sword.png +0 -0
- package/imgs/street_lamp.png +0 -0
- package/imgs/sword_1.png +0 -0
- package/imgs/sword_with_hole.png +0 -0
- package/imgs/testing.png +0 -0
- package/imgs/timer_tnt.png +0 -0
- package/imgs/tiny_tnt.png +0 -0
- package/imgs/tnt_cannon.png +0 -0
- package/imgs/wing_tnt.png +0 -0
- package/imgs/wooden_stool.png +0 -0
- package/imgs/wooden_wardrobe.png +0 -0
- package/index.html +178 -0
- package/index_admin.html +188 -0
- package/js/db/push_model.js +30 -0
- package/js/dialoges.js +23 -0
- package/js/item_functionality.js +7 -0
- package/js/load_cart.js +76 -0
- package/js/load_items.js +480 -0
- package/js/update.js +35 -0
- package/login.html +289 -0
- package/main.js +277 -0
- package/models/armchair.gltf +1 -0
- package/models/arrow_tnt.gltf +1 -0
- package/models/bedwnm.gltf +1 -0
- package/models/big_bed.gltf +1 -0
- package/models/birdscythe.gltf +1 -0
- package/models/blue_tnt.gltf +1 -0
- package/models/bull.gltf +1 -0
- package/models/carpet.gltf +1 -0
- package/models/chest.gltf +1 -0
- package/models/coin_stash.gltf +1 -0
- package/models/creeper_tnt.gltf +1 -0
- package/models/garbage_can.gltf +1 -0
- package/models/generator.gltf +1 -0
- package/models/golden_sword.gltf +1 -0
- package/models/highbed.gltf +1 -0
- package/models/jetpack1.gltf +1 -0
- package/models/jetpack2.gltf +1 -0
- package/models/jetpack3.gltf +1 -0
- package/models/jetpack4.gltf +1 -0
- package/models/jetpack5.gltf +1 -0
- package/models/jetpack6.gltf +1 -0
- package/models/karmincross.gltf +1 -0
- package/models/light_tnt.gltf +1 -0
- package/models/lucky_block.gltf +1 -0
- package/models/lucky_block_2.gltf +1 -0
- package/models/mega_tnt.gltf +1 -0
- package/models/modern_lamp.gltf +1 -0
- package/models/multiply_tnt.gltf +1 -0
- package/models/nuke.gltf +1 -0
- package/models/oak_tree.gltf +1 -0
- package/models/oak_tree_2.gltf +1 -0
- package/models/old globe.gltf +1 -0
- package/models/scificannon_1.gltf +1 -0
- package/models/scificannon_10.gltf +1 -0
- package/models/scificannon_11.gltf +1 -0
- package/models/scificannon_12.gltf +1 -0
- package/models/scificannon_13.gltf +1 -0
- package/models/scificannon_14.gltf +1 -0
- package/models/scificannon_2.gltf +1 -0
- package/models/scificannon_3.gltf +1 -0
- package/models/scificannon_4.gltf +1 -0
- package/models/scificannon_5.gltf +1 -0
- package/models/scificannon_6.gltf +1 -0
- package/models/scificannon_7.gltf +1 -0
- package/models/scificannon_8.gltf +1 -0
- package/models/scificannon_9.gltf +1 -0
- package/models/simple_chair.gltf +1 -0
- package/models/small_car.gltf +1 -0
- package/models/small_modern_lamp.gltf +1 -0
- package/models/small_wardrobe.gltf +1 -0
- package/models/small_wooden_table.gltf +1 -0
- package/models/spike_sword.gltf +1 -0
- package/models/stone_holder.gltf +1 -0
- package/models/stone_sword.gltf +1 -0
- package/models/street_lamp.gltf +1 -0
- package/models/sword_1.gltf +1 -0
- package/models/sword_with_hole.gltf +1 -0
- package/models/timer_tnt.gltf +1 -0
- package/models/tiny_tnt.gltf +1 -0
- package/models/tnt_cannon.gltf +1 -0
- package/models/wing_tnt.gltf +1 -0
- package/models/wooden_stool.gltf +1 -0
- package/models/wooden_wardrobe.gltf +1 -0
- package/package.json +47 -0
- package/preload.js +26 -0
- package/update.html +48 -0
package/package.json
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
{
|
2
|
+
"name": "model-manager",
|
3
|
+
"version": "0.0.5",
|
4
|
+
"main": "main.js",
|
5
|
+
"license": null,
|
6
|
+
"scripts": {
|
7
|
+
"start": "electron .",
|
8
|
+
"publish": "electron-builder --win --publish always"
|
9
|
+
},
|
10
|
+
"repository": {
|
11
|
+
"type": "git",
|
12
|
+
"url": "https://github.com/Mine-North/Mine-North-Model-Tool"
|
13
|
+
},
|
14
|
+
"keywords": [],
|
15
|
+
"author": "Tristan H.",
|
16
|
+
"description": "A Tool for managing all model assets of Mine-North.",
|
17
|
+
"dependencies": {
|
18
|
+
"electron-json-storage": "^4.5.0",
|
19
|
+
"electron-storage": "^1.0.7",
|
20
|
+
"electron-store": "^8.0.1",
|
21
|
+
"electron-updater": "^5.0.5",
|
22
|
+
"mongodb": "^4.5.0",
|
23
|
+
"swup": "^2.0.14",
|
24
|
+
"three": "^0.139.2",
|
25
|
+
"uaup-js": "latest"
|
26
|
+
},
|
27
|
+
"devDependencies": {
|
28
|
+
"electron": "^19.0.8",
|
29
|
+
"electron-builder": "^23.1.0",
|
30
|
+
"electron-reload": "^2.0.0-alpha.1"
|
31
|
+
},
|
32
|
+
"build": {
|
33
|
+
"appId": "model-manager",
|
34
|
+
"productName": "ModelManager",
|
35
|
+
"win": {
|
36
|
+
"publish": [
|
37
|
+
{
|
38
|
+
"provider": "github",
|
39
|
+
"private": true,
|
40
|
+
"owner": " Mine-North",
|
41
|
+
"repo": "Mine-North-Model-Tool",
|
42
|
+
"token": "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"
|
43
|
+
}
|
44
|
+
]
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
package/preload.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
const {
|
3
|
+
contextBridge,
|
4
|
+
ipcRenderer
|
5
|
+
} = require("electron");
|
6
|
+
|
7
|
+
// Expose protected methods that allow the renderer process to use
|
8
|
+
// the ipcRenderer without exposing the entire object
|
9
|
+
contextBridge.exposeInMainWorld(
|
10
|
+
"api", {
|
11
|
+
send: (channel, data) => {
|
12
|
+
// whitelist channels
|
13
|
+
let validChannels = ["toMain", "database_request", "firebase_request", "login_request", "change_window", "storage_request", "cart_request"];
|
14
|
+
if (validChannels.includes(channel)) {
|
15
|
+
ipcRenderer.send(channel, data);
|
16
|
+
}
|
17
|
+
},
|
18
|
+
receive: (channel, func) => {
|
19
|
+
let validChannels = ["fromMain", "item_channel", "item_channel2", "data_usage", "renderer", "login_response", "storage_answer", "cart_answer", "start_app", "order_response"];
|
20
|
+
if (validChannels.includes(channel)) {
|
21
|
+
// Deliberately strip event as it includes `sender`
|
22
|
+
ipcRenderer.on(channel, (event, ...args) => func(...args));
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
)
|
package/update.html
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
5
|
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap" rel="stylesheet">
|
6
|
+
<!--Stylesheet-->
|
7
|
+
<style media="screen">
|
8
|
+
body {
|
9
|
+
background: #1a1a1a;
|
10
|
+
color: whitesmoke;
|
11
|
+
}
|
12
|
+
#control {
|
13
|
+
-webkit-app-region: drag;
|
14
|
+
width: 100%;
|
15
|
+
height: 100vh;
|
16
|
+
z-index: 99;
|
17
|
+
top: 0;
|
18
|
+
left: 0;
|
19
|
+
position: absolute;
|
20
|
+
background: transparent;
|
21
|
+
}
|
22
|
+
#download {
|
23
|
+
position: absolute;
|
24
|
+
bottom: 15px;
|
25
|
+
width: 80%;
|
26
|
+
left: 10%;
|
27
|
+
height: 25px;
|
28
|
+
}
|
29
|
+
#download-label {
|
30
|
+
position: absolute;
|
31
|
+
top: 10vh;
|
32
|
+
width: 97%;
|
33
|
+
text-align: center;
|
34
|
+
font-size: 48px;
|
35
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
36
|
+
font-weight: 300;
|
37
|
+
}
|
38
|
+
</style>
|
39
|
+
</head>
|
40
|
+
<body>
|
41
|
+
|
42
|
+
<div id="control"></div>
|
43
|
+
<label for="download" id="download-label"></label>
|
44
|
+
<progress id="download" max="100" value="20"></progress>
|
45
|
+
<script src="./js/update.js"></script>
|
46
|
+
<!-- start_app -> channel to send data -->
|
47
|
+
</body>
|
48
|
+
</html>
|