Reorganize the folder structure entirely

This commit is contained in:
Robbie Antenesse 2019-09-08 13:44:01 -06:00
parent 4923bf3e83
commit 0934fea892
33 changed files with 53 additions and 51 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
node_modules/
public/
.cache/
dist/
**/*.log
config.json

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -9,7 +9,7 @@
<meta name="description" content="An attempt at a viable alternative to Goodreads">
<meta name="keywords" content="books, tracking, lists, bookshelves, bookshelf, rating, reviews, reading">
<link rel="stylesheet" href="index.scss">
<link rel="stylesheet" href="styles/index.scss">
<script src="index.js"></script>
</head>

42
app/styles/index.scss Normal file
View File

@ -0,0 +1,42 @@
//! Picnic CSS http://www.picnicss.com/
// Imports the base variable styles
@import './picnic-customizations/theme/theme';
@import '../../node_modules/picnic/src/vendor/compass-breakpoint/stylesheets/breakpoint';
// Normalize.css (external library)
@import '../../node_modules/picnic/src/plugins/normalize/plugin';
// Generic styles for things like <body>, <a> and others
// It also overwrites normalize.css a bit
@import '../../node_modules/picnic/src/plugins/generic/plugin';
@import '../../node_modules/picnic/src/plugins/fontello/plugin';
// Simple elements
@import '../../node_modules/picnic/src/plugins/label/plugin';
@import '../../node_modules/picnic/src/plugins/button/plugin';
// Forms
@import '../../node_modules/picnic/src/plugins/input/plugin';
@import '../../node_modules/picnic/src/plugins/select/plugin';
@import '../../node_modules/picnic/src/plugins/radio/plugin';
@import '../../node_modules/picnic/src/plugins/checkbox/plugin';
// Components
@import '../../node_modules/picnic/src/plugins/table/plugin';
@import '../../node_modules/picnic/src/plugins/grid/plugin';
// Extra
@import '../../node_modules/picnic/src/plugins/nav/plugin';
@import '../../node_modules/picnic/src/plugins/stack/plugin';
@import '../../node_modules/picnic/src/plugins/card/plugin';
@import '../../node_modules/picnic/src/plugins/modal/plugin';
// @import '../../node_modules/picnic/src/plugins/dropimage/plugin';
// @import '../../node_modules/picnic/src/plugins/tabs/plugin';
// @import '../../node_modules/picnic/src/plugins/tooltip/plugin';
// Custom global styling
@import './picnic-customizations/custom';

View File

@ -24,8 +24,8 @@ export const viewManager = (state, emit) => {
<header>
<nav>
<div class="brand">
<a href="./">
<h1>Unnamed Book Tracker</h1>
<a href="/">
<span class="title">Unnamed Book Tracker</span>
</a>
</div>
@ -40,8 +40,8 @@ export const viewManager = (state, emit) => {
emit('pushState', '/search?for=' + encodeURIComponent(e.target.value.trim()));
}}>
</label>
<a href="https://gitlab.com/Alamantus/book-tracker" class="pseudo button">Repo</a>
<a href="https://gitter.im/book-tracker/general" class="pseudo button">Chat</a>
<a href="/login" class="pseudo button">Log In</a>
<a href="/logout" class="pseudo button">Log Out</a>
</div>
</nav>
</header>

View File

@ -1,42 +0,0 @@
//! Picnic CSS http://www.picnicss.com/
// Imports the base variable styles
@import './styles/picnic-customizations/theme/theme';
@import './node_modules/picnic/src/vendor/compass-breakpoint/stylesheets/breakpoint';
// Normalize.css (external library)
@import './node_modules/picnic/src/plugins/normalize/plugin';
// Generic styles for things like <body>, <a> and others
// It also overwrites normalize.css a bit
@import './node_modules/picnic/src/plugins/generic/plugin';
@import './node_modules/picnic/src/plugins/fontello/plugin';
// Simple elements
@import './node_modules/picnic/src/plugins/label/plugin';
@import './node_modules/picnic/src/plugins/button/plugin';
// Forms
@import './node_modules/picnic/src/plugins/input/plugin';
@import './node_modules/picnic/src/plugins/select/plugin';
@import './node_modules/picnic/src/plugins/radio/plugin';
@import './node_modules/picnic/src/plugins/checkbox/plugin';
// Components
@import './node_modules/picnic/src/plugins/table/plugin';
@import './node_modules/picnic/src/plugins/grid/plugin';
// Extra
@import './node_modules/picnic/src/plugins/nav/plugin';
@import './node_modules/picnic/src/plugins/stack/plugin';
@import './node_modules/picnic/src/plugins/card/plugin';
@import './node_modules/picnic/src/plugins/modal/plugin';
// @import './node_modules/picnic/src/plugins/dropimage/plugin';
// @import './node_modules/picnic/src/plugins/tabs/plugin';
// @import './node_modules/picnic/src/plugins/tooltip/plugin';
// Custom global styling
@import './styles/picnic-customizations/custom';

View File

@ -9,9 +9,9 @@
"scripts": {
"dev": "npm run watch-js",
"start": "npm run build && npm run serve",
"watch-js": "parcel watch src/index.html --no-hmr",
"serve": "node server.js",
"build": "parcel build src/index.html --no-source-maps",
"watch-js": "parcel watch app/index.html --out-dir public --no-hmr --no-cache",
"serve": "node server/index.js",
"build": "parcel build app/index.html --out-dir public --no-source-maps",
"clear": "npm run clear-dist && npm run clear-cache",
"clear-dist": "rimraf dist/{*,.*}",
"clear-cache": "rimraf .cache/{*,.*}"

View File

@ -5,7 +5,7 @@ require('make-promises-safe'); // installs an 'unhandledRejection' handler
const path = require('path');
let siteConfig;
try {
siteConfig = require('./config.json');
siteConfig = require('./config.json.js');
} catch (ex) {
console.error('Please copy `config.example.json` to `config.json` and fill it with your server\'s data.');
process.exit(1);