Skip to content

Commit dd689ec

Browse files
committed
TEAMUI Merge
1 parent 0279aa5 commit dd689ec

File tree

17 files changed

+503
-275
lines changed

17 files changed

+503
-275
lines changed

.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#DO NOT DELETE THIS FILE, and follow instructions:
2+
# Required for Slack Oauth features
3+
# Create TWO files, one named ".env" and the second named ".env.development" in this directory, and give them the following variables
4+
# Any environment variables you create MUST also be created here in .env.example
5+
6+
SLACK_CLIENT_SECRET = "ENTER_CLIENT_SECRET_HERE"
7+
SLACK_CLIENT_ID = "ENTER_CLIENT_ID_HERE"
8+
SLACK_REDIRECT_URI = "REDIRECT URL HERE"
9+
10+
# https://www.npmjs.com/package/dotenv
11+
# https://www.npmjs.com/package/quasar-dotenv
12+
# https://v1.quasar.dev/quasar-cli/handling-process-env
13+
# https://v1.quasar.dev/quasar-cli/quasar-conf-js#using-dotenv

.gitignore

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#secret Api keys, Webhook URLs etc
2-
slackApiStuff.js
1+
#
32
.env
3+
.env.development
44
#
55
.quasar
66
.DS_Store
@@ -16,7 +16,7 @@ npm-debug.log*
1616
yarn-debug.log*
1717
yarn-error.log*
1818
/coverage
19-
package-lock.json
19+
# package-lock.json
2020
vetur.config.js
2121

2222
# Editor directories and files
@@ -36,7 +36,4 @@ build/
3636
dist/
3737
node_modules/
3838
aws-exports.js
39-
awsconfiguration.json
40-
41-
#secret Api keys, Webhook URLs etc
42-
slackApiStuff.js
39+
awsconfiguration.json

.vsls.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsls",
3+
"gitignore":"none"
4+
}

README.md

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
* [Tutorial](#how-to-use)
2121
+ [New Features Tutorial 2.0](#overvue-v20-how-to)
2222
+ [New Features Tutorial 3.0](#overvue-v30-how-to)
23-
* [How to Run](#running-a-local-version)
23+
* [Installation](#installation)
24+
+ [General Installation](#installation)
25+
+ [For WSL](#wsl-installation)
26+
+ [For Slack OAuth](#slack-oauth)
2427
* [Contributing](#contributing)
2528
* [Authors](#authors)
2629

@@ -157,7 +160,8 @@ package.json
157160

158161
[↥Back to top](#table-of-contents)
159162

160-
### Running a local version
163+
### Installation
164+
161165
This app was developed using the Quasar framework, so first you will need to install the Quasar cli
162166
```
163167
npm i -g @quasar/cli
@@ -166,18 +170,66 @@ Install dependencies
166170
```
167171
npm i
168172
```
173+
To open Vuejs devtools (devtools should be open before devmode, otherwise, you can justforce reload electron app in dev mode after opening dev tools)
174+
```
175+
./node_modules/.bin/vue-devtools
176+
```
169177
To run electron app in dev mode
170178
```
171179
quasar dev -m electron
172180
```
173-
**For WSL users, the ability to load the application requires a tool/application to run a linux display as WSL does not have any display drivers
174-
since it is based off of just a CLI.
175-
I recommend X410 (https://www.microsoft.com/en-us/p/x410/9nlp712zmn9q), althought it does cost $10, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but require more set up.**
176-
177181
To build a new .dmg / windows .exe
178182
```
179183
quasar build -m electron
180184
```
185+
### WSL Installation
186+
187+
**The ability to load the application and/or devtools requires a tool/application to run a linux display as WSL does not have any display drivers since it is based off of just a CLI.
188+
I recommend X410 (https://x410.dev/), althought it does cost $15, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but requires more set up.**
189+
190+
If you choose to use x410, you will need to set the environment DISPLAY variable on each console:
191+
192+
So, to open either the Vue devtools or OverVue in dev mode, first start your X Server then enter into the terminal:
193+
For WSL 1 :
194+
```
195+
export DISPLAY=:0
196+
```
197+
For WSL 2 :
198+
```
199+
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
200+
export LIBGL_ALWAYS_INDIRECT=1
201+
```
202+
followed by the command for the devtools or devmode. If you want both open, enter commands above followed by starting the devtools:
203+
```
204+
./node_modules/.bin/vue-devtools
205+
```
206+
Then open a new terminal instance, set the DISPLAY value again (re-enter above command for DISPLAY), and start OverVue in dev mode:
207+
```
208+
quasar dev -m electron
209+
```
210+
211+
### Slack OAuth
212+
213+
For the Slack OAuth, you will need to create a Slack app through their website (https://api.slack.com/apps?new_app=1), so that you have your own Client Secret and Client ID. Then create two .env files (one for development and one for production).
214+
215+
1. Create a Slack App from the link above. Copy your Client ID and Client Secret somewhere safe.
216+
2. Create two .env files in the main root of this repository. Name them:
217+
```
218+
.env
219+
.env.development
220+
```
221+
3. Open .env and add these three environment variables. Replace <client secret> and <client id> with the client id and client secret given to you when you created your Slack App.
222+
```
223+
SLACK_CLIENT_SECRET = "<client secret>"
224+
SLACK_CLIENT_ID = "<client id>"
225+
SLACK_REDIRECT_URI = "overvue://slack"
226+
```
227+
4. Next, open .env.development and do the same, just note that the SLACK_REDIRECT_URI will be different here:
228+
```
229+
SLACK_CLIENT_SECRET = "<client secret>"
230+
SLACK_CLIENT_ID = "<client id>"
231+
SLACK_REDIRECT_URI = "overvuedev://test"
232+
```
181233

182234
[↥Back to top](#table-of-contents)
183235

0 commit comments

Comments
 (0)