-
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.
- Loading branch information
Showing
233 changed files
with
4,519 additions
and
4,590 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
PORT=8080 | ||
GOOGLE_ANALYTICS_MEASUREMENT_ID=G-XXXXXXX | ||
GOOGLE_API_KEY= | ||
GOOGLE_CLIENT_ID= | ||
HANDSONTABLE_LICENSE_KEY=non-commercial-and-evaluation | ||
GOOGLE_CLIENT_ID= |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { homepage } from '../package.json'; | ||
|
||
export enum Directory { | ||
Assets = 'assets', | ||
Build = 'build', | ||
Data = 'data', | ||
Dist = 'dist' | ||
}; | ||
|
||
export const port = parseInt(process.env.PORT || '8080'); | ||
|
||
export const dev = process.env.NODE_ENV === 'development'; | ||
export const debugEgg = process.env.DEBUG_EGG === 'true'; | ||
export const debugEgg = process.env.EGG === 'true'; | ||
|
||
export const publicURL = dev ? 'http://localhost:8080' : `${homepage}/dist`; | ||
export const publicDataURL = dev ? 'http://localhost:20630' : `${homepage}/data`; | ||
export const publicURL = dev ? `http://localhost:${port}` : homepage; | ||
export const publicDataURL = `${publicURL}/${Directory.Data}`; |
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 @@ | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config(); |
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,5 @@ | ||
const loader = { | ||
loader: '@svgr/webpack' | ||
}; | ||
|
||
export default loader; |
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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
import dotenv from 'dotenv'; | ||
import { EnvironmentPlugin } from 'webpack'; | ||
|
||
dotenv.config(); | ||
|
||
const { | ||
PORT, | ||
GOOGLE_ANALYTICS_MEASUREMENT_ID, | ||
GOOGLE_API_KEY, | ||
GOOGLE_CLIENT_ID, | ||
HANDSONTABLE_LICENSE_KEY | ||
GOOGLE_CLIENT_ID | ||
} = process.env; | ||
|
||
const plugin = new EnvironmentPlugin({ | ||
NODE_ENV: 'development', | ||
DEBUG_EGG: 'false', | ||
EGG: 'false', | ||
PORT, | ||
GOOGLE_ANALYTICS_MEASUREMENT_ID, | ||
GOOGLE_API_KEY, | ||
GOOGLE_CLIENT_ID, | ||
HANDSONTABLE_LICENSE_KEY | ||
GOOGLE_CLIENT_ID | ||
}); | ||
|
||
export default plugin; |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import webpack from 'webpack'; | ||
import type webpack from 'webpack'; | ||
import { dev } from '../../config'; | ||
import svgLoader from '../loaders/svg-loader'; | ||
|
||
export const resource: webpack.RuleSetRule = { | ||
test: /\.(gif|jpg|png|svg|webp)$/i, | ||
type: 'asset/resource' | ||
type: 'asset/resource', | ||
generator: { emit: false } | ||
}; | ||
|
||
export const source: webpack.RuleSetRule = { | ||
test: /\.txt$/i, | ||
type: 'asset/source' | ||
}; | ||
|
||
export const svg: webpack.RuleSetRule = { | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
use: [svgLoader] | ||
}; |
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
Oops, something went wrong.