Skip to content

Commit c8ad87c

Browse files
committed
now storing api keys and any other security risks in secretStuff directory, must add files inside of secretStuff onto .gitignore
1 parent 9a1759b commit c8ad87c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ build/
3232
dist/
3333
node_modules/
3434
aws-exports.js
35-
awsconfiguration.json
35+
awsconfiguration.json
36+
37+
#secret Api keys, Webhook URLs etc
38+
slackApiStuff.js

src/components/file_system_interface/SaveProjectComponent.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import fs from 'fs-extra'
1616
const { remote } = require('electron')
1717
const Mousetrap = require('mousetrap')
1818
19+
import slackApiStuff from '../../../secretStuff/slackApiStuff.js'
20+
const slackWebhookURL = slackApiStuff.slackWebhookURL
21+
1922
export default {
2023
name: 'SaveProjetComponent',
2124
methods: {
@@ -124,7 +127,7 @@ export default {
124127
},
125128
response => {
126129
if (response === 1) {
127-
fetch('https://hooks.slack.com/services/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', {
130+
fetch(slackWebhookURL, {
128131
method: 'POST',
129132
body: JSON.stringify({ 'text': 'A team member saved an OverVue project file!' }),
130133
headers: { 'Content-Type': 'application/json' }

0 commit comments

Comments
 (0)