forked from Mijago/D2ArmorPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mijago#43 Deactivated old API keys and removed them from the repository
- Loading branch information
Showing
13 changed files
with
223 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
D2AP_BUNGIE_API_KEY= | ||
D2AP_BUNGIE_CLIENT_ID= | ||
D2AP_BUNGIE_CLIENT_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,9 @@ testem.log | |
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
|
||
environment.ts | ||
environment.prod.ts | ||
.env | ||
.env_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Angular CLI Server (dev)" type="js.build_tools.npm"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="start" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<envs> | ||
<env name="PRODUCTION" value="0" /> | ||
</envs> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Build (production)" type="js.build_tools.npm"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="build" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<envs> | ||
<env name="PRODUCTION" value="1" /> | ||
</envs> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Create Config (dev)" type="js.build_tools.npm"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="config" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<envs /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Deploy (production)" type="js.build_tools.npm"> | ||
<package-json value="$PROJECT_DIR$/package.json" /> | ||
<command value="run" /> | ||
<scripts> | ||
<script value="deploy" /> | ||
</scripts> | ||
<node-interpreter value="project" /> | ||
<envs> | ||
<env name="PRODUCTION" value="1" /> | ||
</envs> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const writeFile = require("fs").writeFile | ||
|
||
const production = process.env.PRODUCTION === "1" | ||
const version = "2.0.14" | ||
|
||
// Configure Angular `environment.ts` file path | ||
const targetPath = production | ||
? './src/environments/environment.prod.ts' | ||
: './src/environments/environment.ts'; | ||
// Load node modules | ||
|
||
require('dotenv').config({ | ||
path: production | ||
? ".env" | ||
: ".env_dev" | ||
}); | ||
|
||
const data = { | ||
version: version + (production ? "" : "-dev"), | ||
production: production, | ||
apiKey: process.env.D2AP_BUNGIE_API_KEY, | ||
clientId: process.env.D2AP_BUNGIE_CLIENT_ID, | ||
client_secret: process.env.D2AP_BUNGIE_CLIENT_SECRET, | ||
nodeEnv: process.env.NODE_ENV | ||
} | ||
|
||
|
||
// `environment.ts` file structure | ||
const envConfigFile = `export const environment = ${JSON.stringify(data, null, 2)};`; | ||
writeFile(targetPath, envConfigFile, (err: NodeJS.ErrnoException | null) => { | ||
if (err) { | ||
throw console.error(err); | ||
} else { | ||
console.log(`Angular environment.ts file generated correctly at ${targetPath} \n`); | ||
} | ||
}); |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.