Skip to content

Commit 878ef8a

Browse files
committed
save laptop
1 parent 8ab216e commit 878ef8a

File tree

10 files changed

+158
-159
lines changed

10 files changed

+158
-159
lines changed

build/icons/512x512.png

21.1 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

config.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

config.json

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
{
2+
"app_info":
3+
{
4+
"author":
5+
{
6+
"name": "Leonardo Pollini",
7+
"email": "[email protected]"
8+
},
9+
"version": "0.0.23",
10+
"autoupdate": false,
11+
"electron_package": "package.json",
12+
"app_name": "Webpage Accessor",
13+
"app_executable": "webpage_accessor"
14+
},
15+
16+
"log":
17+
{
18+
"log_level": "WARNING",
19+
"log_file": "log.log",
20+
"actions":
21+
{
22+
"theese are just some examples": "I cannot use comments in json :(",
23+
"send_mail": {},
24+
"end_session": {}
25+
}
26+
},
27+
28+
"configuration":
29+
{
30+
"touchscreen_config":
31+
{
32+
"enabled": false,
33+
"remap_to_pointeraction": true,
34+
"disable_physical_keyboard": false,
35+
"disable_virtual_keyboard": false,
36+
"actions":
37+
{
38+
"enlarged_doubleclick":
39+
{
40+
"enabled": true,
41+
"doubleclick_sqr_radius": 1600,
42+
"doubleclick_max_delay": 500,
43+
"actions":
44+
{
45+
"lel": {"enabled": true, "extension": "touch-utils"}
46+
}
47+
},
48+
"keyboard_config":
49+
{
50+
"enabled": false,
51+
"whitelist": false,
52+
"blacklist": [],
53+
"extension": "keyboard-config"
54+
},
55+
"mouse_config": {},
56+
"splashscreen":
57+
{
58+
"enabled": false,
59+
"extension": "splashscreen",
60+
"splash_timeout": 5,
61+
"splash_url":
62+
{
63+
"pathname": "google.com",
64+
"protocol": "https"
65+
}
66+
}
67+
}
68+
},
69+
"other_actions":
70+
{
71+
"enabled": true,
72+
"actions":
73+
{
74+
"webpage_filter":
75+
{
76+
"enabled": true,
77+
"hosts_whitelist": [],
78+
"hosts_blacklist": [],
79+
"webpages_whitelist": [],
80+
"webpages_blacklist": [],
81+
"allow_navigation": true,
82+
"extension": "webpage-filter"
83+
},
84+
"toolbar":
85+
{
86+
"enabled": true,
87+
"hidden": false,
88+
"toolbar_width": 50,
89+
"toolbar_html": "toolbar.html",
90+
"extension": "toolbar",
91+
"allow_target_blank": true,
92+
"default_url":
93+
{
94+
"pathname": "pms.parchotels.dev",
95+
"protocol": "https"
96+
}
97+
},
98+
"electron-api":
99+
{
100+
"enabled": true,
101+
"extension": "electronAPI"
102+
},
103+
"window-utils":
104+
{
105+
"enable_shortcuts": true,
106+
"hide_toolbar": true,
107+
"start_with_dev_tools": true,
108+
"extension": "window-events"
109+
},
110+
"startup_actions": {},
111+
"keys-checker":
112+
{
113+
"enabled": true,
114+
"extension": "keys-checker",
115+
"custom_id": false,
116+
"structure_id": [1,2,3,4]
117+
},
118+
"autostart":
119+
{
120+
"desktop_filename": "webpage_accessor.desktop",
121+
"extension": "autostart"
122+
},
123+
"autoupdate":
124+
{
125+
"enabled": true,
126+
"extension": "autoupdate",
127+
"auto_download": false,
128+
"ask_update_on_start": false,
129+
"update_mode":
130+
{
131+
"mode": "long_press",
132+
"duration": 5
133+
}
134+
}
135+
}
136+
}
137+
},
138+
139+
"default_data":
140+
{
141+
"fullscreen": false,
142+
"autostart": false,
143+
"autorestart": false,
144+
"autoreload": false,
145+
"allow_navigation": true,
146+
"webpages":
147+
[
148+
]
149+
}
150+
}

config_files/browser_with_tabs.json

Lines changed: 0 additions & 150 deletions
This file was deleted.

forge.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ module.exports = {
1010
{
1111
name: '@electron-forge/maker-squirrel',
1212
config: {
13-
setupIcon: '/path/to/icon.ico'
13+
setupIcon: '/assets/icons/icon.ico'
1414
}
1515
},
1616
{
1717
name: '@electron-forge/maker-zip',
1818
platforms: ['darwin'],
1919
config: {
20-
icon: './images/icon.png'
20+
icon: './assets/icons/icon.png'
2121
},
2222
},
2323
{
2424
name: '@electron-forge/maker-deb',
2525
config: {
2626
options: {
27-
icon: './images/icon.png'
27+
icon: './assets/icons/icon.png'
2828
}},
2929
},
3030
{
3131
name: '@electron-forge/maker-rpm',
3232
config: {
33-
icon: './images/icon.png'
33+
icon: './assets/icons/icon.png'
3434
},
3535
},
3636
],

main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ async function createMainWindow()
3333

3434
const {height, width} = screen.getPrimaryDisplay().workAreaSize;
3535
app.displaySize = {height: height, width: width}
36+
console.log('######## ICON FILE>', fs.existsSync( path.join(__dirname, 'assets/icons/icon.png'),));
3637
const mainWindow = new BaseWindow({
3738
tabbingIdentifier: "myTabs",
3839
title: "Electron",
3940
// width: width / 2,
4041
// height: height / 2,
4142
fullscreenable: true,
4243
autoHideMenuBar: true,
43-
icon: path.join(__dirname, 'images/icon.png'),
44+
icon: path.join(__dirname, 'assets/icons/icon.png'),
4445
});
4546
TabsManager.setup(mainWindow);
4647

oconfig.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)