-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Frontent build system is ready * Set up linter for frontend part * move code to /src * update db * upd test * remove db * ignore .db
- Loading branch information
Showing
27 changed files
with
3,001 additions
and
217 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules/ | ||
public/dist/ |
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 |
---|---|---|
|
@@ -64,4 +64,8 @@ typings/ | |
.idea/ | ||
|
||
# Database files | ||
db/ | ||
.db/ | ||
|
||
# Cache of babel and others | ||
.cache/ | ||
.eslintcache |
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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
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,16 @@ | ||
plugins: | ||
postcss-smart-import: {} | ||
postcss-custom-properties: {} | ||
postcss-apply: {} | ||
postcss-custom-media: {} | ||
postcss-media-minmax: {} | ||
postcss-custom-selectors: {} | ||
postcss-nested-ancestors: {} | ||
postcss-nesting: {} | ||
postcss-nested: {} | ||
postcss-color-mod-function: {} | ||
postcss-color-hex-alpha: {} | ||
postcss-font-family-system-ui: {} | ||
cssnano: {} | ||
autoprefixer: | ||
browsers: ['last 2 versions', '> 1%'] |
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 @@ | ||
// No inspection for unused var `css` because it's used for css bundle | ||
// eslint-disable-next-line no-unused-vars | ||
import css from '../styles/main.pcss'; | ||
|
||
module.exports = class Docs { | ||
/** | ||
* @constructor | ||
*/ | ||
constructor() { | ||
console.log('CodeX Docs initialized'); | ||
} | ||
}; |
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,7 @@ | ||
body { | ||
font-family: system-ui, Helvetica, Arial, Verdana; | ||
} | ||
|
||
a { | ||
color: #00B7FF; | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 Datastore = require('nedb'); | ||
|
||
const db = new Datastore({filename: './.db/pages.db', autoload: true}); | ||
|
||
module.exports = db; |
File renamed without changes.
File renamed without changes.
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,60 @@ | ||
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
|
||
/** | ||
* Options for the Babel | ||
*/ | ||
const babelLoader = { | ||
loader: 'babel-loader', | ||
options: { | ||
cacheDirectory: '.cache/babel-loader', | ||
presets: [ | ||
'env' | ||
], | ||
plugins: [ | ||
/** | ||
* Dont need to use «.default» after «export default Class Ui {}» | ||
* @see {@link https://github.com/59naga/babel-plugin-add-module-exports} | ||
*/ | ||
// 'add-module-exports', | ||
] | ||
} | ||
}; | ||
|
||
module.exports = (env) => { | ||
return { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.p?css$/, | ||
use: ExtractTextPlugin.extract([ | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
importLoaders: 1 | ||
} | ||
}, | ||
{ | ||
loader: 'postcss-loader', | ||
options: { | ||
config: { | ||
path: './src/frontend/' | ||
} | ||
} | ||
} | ||
]) | ||
}, { | ||
test: /\.js$/, | ||
use: [ | ||
babelLoader | ||
] | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new ExtractTextPlugin('bundle.css') | ||
], | ||
optimization: { | ||
minimize: true | ||
} | ||
}; | ||
}; |
Oops, something went wrong.