Skip to content

Commit e6c48a4

Browse files
kevinmprinceWilliam Price
authored andcommitted
Release 1.0.0
0 parents  commit e6c48a4

32 files changed

Lines changed: 2736 additions & 0 deletions

.compilerc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"env": {
3+
"development": {
4+
"application/javascript": {
5+
"presets": [
6+
[
7+
"env",
8+
{
9+
"targets": {
10+
"electron": 1.7
11+
}
12+
}
13+
]
14+
],
15+
"plugins": [
16+
"transform-async-to-generator"
17+
],
18+
"sourceMaps": "inline"
19+
}
20+
},
21+
"production": {
22+
"application/javascript": {
23+
"presets": [
24+
[
25+
"env",
26+
{
27+
"targets": {
28+
"electron": 1.7
29+
}
30+
}
31+
]
32+
],
33+
"plugins": [
34+
"transform-async-to-generator"
35+
],
36+
"sourceMaps": "none"
37+
}
38+
}
39+
}
40+
}

.eslintrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "eslint-config-airbnb",
3+
"rules": {
4+
"import/extensions": 0,
5+
"import/no-extraneous-dependencies": 0,
6+
"import/no-unresolved": [2, { "ignore": ["electron"] }],
7+
"linebreak-style": 0
8+
}
9+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
out
3+
build
4+
.gradle
5+
npm-debug.log
6+
copyright/**

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cache=build/npmcache
2+
globalconfig=~/.npmrc

CONTRIBUTORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Authors ordered by first contribution.
2+
3+
Kevin M Prince <https://github.com/KevinMPrince>
4+
Daniel Rutledge <https://github.com/DanielJRutledge>
5+
Luigi Suardi
6+
Deepesh Jain

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# pros-application-browser
2+
3+
This project produces an electron application that provides a flashplayer plugin.
4+
A config file is used to restrict navigation to specific start pages as well as setup of the flashplayer plugin.
5+
6+
## Quick start
7+
8+
Clone and run this repo
9+
10+
```sh
11+
npm install
12+
npm start
13+
```
14+
15+
Then follow the on-screen instructions on how to configure the application environments.
16+
17+
## config.json
18+
19+
Below is a sample configuration for the application
20+
21+
```javascript {
22+
"flash":
23+
{
24+
"path":"C:\\Windows\\System32\\Macromed\\Flash\\pepflashplayer64_28_0_0_137.dll"
25+
},
26+
27+
"environments":
28+
[
29+
{
30+
"id": "test",
31+
"url": "https://www.google.it",
32+
"label": "Test"
33+
}, {
34+
"id": "sandbox",
35+
"url": "https://us.yahoo.com/",
36+
"label": "Sandbox"
37+
}, {
38+
"id": "production",
39+
"url": "https://www.facebook.com",
40+
"label": "Production"
41+
}
42+
]
43+
}
44+
```
45+
46+
* flash - path - The path to the installed flashplayer - version - <i>(optional)</i> version number of the flashplayer
47+
* environments - An array of environments that will be available on the launch page - id - unique id for the environment - url - fully qualified path to a website - label - The name of the link when shown in the UI
48+
* develop - <i>(optional)</i> boolean value used to turn on development mode
49+
* locale - <i>(optional)</i> forced override for the locale value. System locale will be used if not specified.
50+
51+
## How to Build
52+
53+
To build the installer, run the make command.
54+
55+
```sh
56+
npm install
57+
npm run make
58+
```
59+
60+
Once complete the setup file will be in the `\out` folder.
61+
62+
## Contributors
63+
64+
[List of Contributors](CONTRIBUTORS)
65+
66+
## License
67+
68+
[GNU General Public License v3.0](LICENSE)

assets/app-icon/win/icon.png.icns

19.6 KB
Binary file not shown.

assets/app-icon/win/icon.png.ico

76 KB
Binary file not shown.

assets/css/style.css

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* This file is part of PROS Application Browser, a flash enabled
3+
* browser restricted to preconfigured servers.
4+
* Copyright (C) 2018 PROS, Inc.
5+
*
6+
* PROS Application Browser is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* PROS Application Browser is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with PROS Application Browser. If not, see http://www.gnu.org/licenses/
18+
* You can contact PROS, Inc. with any questions at http://www.pros.com
19+
*/
20+
21+
div.aboutWrapper {
22+
float:left;
23+
width:100%;
24+
height:100%;
25+
font-size:14px;
26+
font-family: "Open Sans";
27+
}
28+
29+
div.aboutWrapper div.aboutContent {
30+
top:0;
31+
bottom:60px;
32+
}
33+
34+
div.aboutWrapper div.aboutSection {
35+
position:absolute;
36+
width:100%;
37+
left:0;
38+
right:0;
39+
}
40+
41+
div.aboutWrapper div.aboutScroll {
42+
overflow-y:auto;
43+
}
44+
45+
div.aboutWrapper img.aboutProsImg {
46+
position:absolute;
47+
left:28px;
48+
top:27px;
49+
}
50+
51+
div.aboutWrapper div.aboutProduct {
52+
position:absolute;
53+
top:20px;
54+
left:29px;
55+
font-size:32px;
56+
}
57+
58+
div.aboutWrapper div.aboutVersion {
59+
position:absolute;
60+
top:60px;
61+
left:31px;
62+
color:#999999;
63+
font-size:13px;
64+
}
65+
66+
div.aboutWrapper div.aboutBuildInfo {
67+
display:none;
68+
position:absolute;
69+
top:10px;
70+
left:30px;
71+
text-align:left;
72+
}
73+
74+
div.aboutWrapper div.aboutCopyright {
75+
position:absolute;
76+
top:100px;
77+
left:30px;
78+
right:30px;
79+
text-align:left;
80+
}
81+
82+
div.aboutWrapper span.aboutToggle {
83+
color:#00A9E0;
84+
text-decoration:none;
85+
cursor:default;
86+
}
87+
88+
div.aboutWrapper span.aboutToggle:hover {
89+
text-decoration:underline;
90+
}
91+
92+
div.aboutWrapper div.aboutLicense {
93+
display:none;
94+
margin:8px 0px -14px 0px;
95+
padding:8px 14px;
96+
border:1px solid #a4a4a4;
97+
background:#eeeeee;
98+
border-radius:6px;
99+
}
100+
101+
div.aboutWrapper div.aboutFooter {
102+
bottom:0;
103+
}
104+
105+
div.aboutWrapper div.aboutActions {
106+
float:left;
107+
}
108+
109+
div.aboutWrapper div.aboutButtons {
110+
margin-right:30px;
111+
}
112+
113+
iframe {
114+
width:100%;
115+
height:300px;
116+
}

0 commit comments

Comments
 (0)