-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from CyferShepard/unstable
Merge Unstable to Main 1.0.8 -> 1.0.9
- Loading branch information
Showing
158 changed files
with
16,292 additions
and
9,502 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,8 @@ | ||
node_modules | ||
npm-debug.log | ||
Dockerfile | ||
.dockerignore | ||
.git | ||
.gitignore | ||
.vscode | ||
.github |
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,20 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, | ||
settings: { react: { version: '18.2' } }, | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
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
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
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,10 @@ | ||
POSTGRES_USER = # your postgres username | ||
POSTGRES_PASSWORD = # your postgres password | ||
|
||
POSTGRES_IP = # your postgres IP | ||
POSTGRES_PORT = # your postgres port | ||
|
||
JWT_SECRET = # ultra secret word | ||
|
||
VITE_GEOLITE_ACCOUNT_ID = # optional, your GeoLite account ID to show geolocation info for client IPs | ||
VITE_GEOLITE_LICENSE_KEY = # optional, your GeoLite account license key to show geolocation info for client IPs |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const axios = require("axios"); | ||
const https = require('https'); | ||
|
||
const agent = new https.Agent({ | ||
rejectUnauthorized: (process.env.REJECT_SELF_SIGNED_CERTIFICATES || 'true').toLowerCase() ==='true' | ||
}); | ||
|
||
|
||
const axios_instance = axios.create({ | ||
httpsAgent: agent | ||
}); | ||
|
||
module.exports = | ||
{ | ||
axios:axios_instance | ||
}; | ||
|
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,43 @@ | ||
const db = require("../db"); | ||
|
||
class Config{ | ||
|
||
async getConfig() { | ||
try { | ||
const { rows: config } = await db.query( | ||
'SELECT * FROM app_config where "ID"=1' | ||
); | ||
|
||
if ( | ||
config.length === 0 || | ||
config[0].JF_HOST === null || | ||
config[0].JF_API_KEY === null | ||
) { | ||
return { error: "Config Details Not Found" }; | ||
} | ||
|
||
|
||
return ({ | ||
JF_HOST:config[0].JF_HOST , | ||
JF_API_KEY:config[0].JF_API_KEY , | ||
APP_USER:config[0].APP_USER , | ||
APP_PASSWORD:config[0].APP_PASSWORD , | ||
REQUIRE_LOGIN:config[0].REQUIRE_LOGIN , | ||
settings:config[0].settings , | ||
api_keys:config[0].api_keys , | ||
}); | ||
|
||
} catch (error) { | ||
return { error: "Config Details Not Found" }; | ||
} | ||
} | ||
|
||
async getPreferedAdmin() { | ||
const config=await this.getConfig(); | ||
return config.settings?.preferred_admin?.userid; | ||
} | ||
|
||
} | ||
|
||
|
||
module.exports = Config; |
Oops, something went wrong.