Skip to content

Commit 2c7ee65

Browse files
committed
created empty nuxt project and moved assets there
1 parent f968309 commit 2c7ee65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+14247
-2810
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ insert_final_newline = true
1111
[Makefile]
1212
indent_style = tab
1313

14-
[*.{js,yml,scss,json,eslintrc,stylelintrc}]
14+
[*.{js,yml,scss,json,eslintrc,stylelintrc,vue}]
1515
indent_size = 2
1616

1717
[*.md]

.gitignore

+82-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,84 @@
11
.DS_Store
2-
.tmp
3-
.sass-cache
42
.idea
5-
npm-debug.log
6-
yarn-error.log
7-
node_modules
8-
web-frontend/_build
3+
4+
# Created by .ignore support plugin (hsz.mobi)
5+
### Node template
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional eslint cache
51+
.eslintcache
52+
53+
# Optional REPL history
54+
.node_repl_history
55+
56+
# Output of 'npm pack'
57+
*.tgz
58+
59+
# Yarn Integrity file
60+
.yarn-integrity
61+
62+
# dotenv environment variables file
63+
.env
64+
65+
# parcel-bundler cache (https://parceljs.org/)
66+
.cache
67+
68+
# next.js build output
69+
.next
70+
71+
# nuxt.js build output
72+
.nuxt
73+
74+
# Nuxt generate
75+
dist
76+
77+
# vuepress build output
78+
.vuepress/dist
79+
80+
# Serverless directories
81+
.serverless
82+
83+
# Service worker
84+
sw.*

.gitlab-ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ before_script:
44
- apt-get update && apt-get -y install make curl gnupg2
55

66
stages:
7-
- lint
8-
- build
7+
- web-frontend-lint
8+
- web-frontend-test
99

10-
eslint:
11-
stage: lint
10+
web-frontend-eslint:
11+
stage: web-frontend-lint
1212
script:
1313
- make install-web-frontend-dependencies
14-
- (cd web-frontend && yarn eslint)
14+
- (cd web-frontend && yarn run eslint)
1515

16-
stylelint:
17-
stage: lint
16+
web-frontend-stylelint:
17+
stage: web-frontend-lint
1818
script:
1919
- make install-web-frontend-dependencies
20-
- (cd web-frontend && yarn stylelint)
20+
- (cd web-frontend && yarn run stylelint)
21+
22+
web-frontend-test:
23+
stage: web-frontend-test
24+
script:
25+
- make install-web-frontend-dependencies
26+
- (cd web-frontend && yarn run test)

README.md

+24-6
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,32 @@
33
To first start Baserow make sure you have installed docker and docker-compose. After that execute the following commands.
44

55
```
6-
docker network create baserow_default
7-
docker-compose up -d
6+
$ docker network create baserow_default
7+
$ docker-compose up -d
88
```
99

10-
For now it's only possible to work on the frontend SCSS components. In order to do so you can execute the commands below and then visit http://localhost:8080 in your browser.
10+
In order to start developing for the web frontend you need to execute the following commands.
1111

1212
```
13-
docker exec -it baserow bash
14-
cd /baserow/web-frontend
15-
yarn dev
13+
# install web frontend dependencies
14+
$ docker exec -it baserow bash
15+
$ cd /baserow/web-frontend
16+
$ yarn install
17+
$ yarn run dev
18+
19+
# build for production and launch server
20+
$ yarn run build
21+
$ yarn start
22+
23+
# generate static project
24+
$ yarn run generate
25+
26+
# lint
27+
$ yarn run eslint
28+
$ yarn run stylelint
29+
30+
# test
31+
$ yarn run test
1632
```
33+
34+
When the development server starts you can visit http://localhost:3000.

docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ services:
77
volumes:
88
- .:/baserow
99
ports:
10+
- 3000:3000
1011
- 8080:8080
1112

1213
networks:
1314
default:
1415
external:
15-
name: baserow_default
16+
name: baserow_default

old-web-frontend/package.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "baserow-web-frontend",
3+
"title": "Baserow web frontend",
4+
"description": "",
5+
"url": "URL",
6+
"author": "Bram Wiepjes (Cloud 3)",
7+
"copyright": "2019",
8+
"version": "1.0.0",
9+
"main": "",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://gitlab.com/bramw/baserow"
13+
},
14+
"scripts": {
15+
"build": "webpack -p --progress --config webpack/webpack.prod.js",
16+
"dev": "webpack-dev-server -d --progress --color --open --config webpack/webpack.dev.js"
17+
},
18+
"devDependencies": {
19+
"@babel/core": "^7.2.2",
20+
"@babel/preset-env": "^7.2.2",
21+
"autoprefixer": "^8.6.2",
22+
"babel-eslint": "^8.2.3",
23+
"babel-loader": "^8.0.5",
24+
"clean-webpack-plugin": "^0.1.19",
25+
"copy-webpack-plugin": "^4.5.1",
26+
"css-loader": "^0.28.11",
27+
"eslint": "^4.19.1",
28+
"eslint-config-airbnb-base": "^12.1.0",
29+
"eslint-loader": "^2.0.0",
30+
"eslint-plugin-import": "^2.12.0",
31+
"extract-text-webpack-plugin": "^4.0.0-beta.0",
32+
"file-loader": "^1.1.11",
33+
"html-webpack-plugin": "^3.2.0",
34+
"node-sass": "^4.9.0",
35+
"postcss-loader": "^2.1.5",
36+
"prettier-eslint": "^8.8.1",
37+
"raw-loader": "^0.5.1",
38+
"sass-loader": "^7.0.3",
39+
"style-loader": "^0.21.0",
40+
"stylelint": "^9.2.1",
41+
"stylelint-config-standard": "^18.2.0",
42+
"uglifyjs-webpack-plugin": "^1.2.5",
43+
"url-loader": "^1.0.1",
44+
"webpack": "^4.12.0",
45+
"webpack-cli": "^3.0.3",
46+
"webpack-dev-server": "^3.1.4",
47+
"webpack-merge": "^4.1.2"
48+
},
49+
"keywords": [
50+
"webpack",
51+
"babel",
52+
"es6",
53+
"eslint"
54+
],
55+
"dependencies": {
56+
"@fortawesome/fontawesome-free": "^5.7.2",
57+
"normalize.css": "^8.0.1"
58+
}
59+
}

web-frontend/public/grid.html old-web-frontend/public/grid.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" type="image/png" href="assets/img/favicon_16.png" sizes="16x16" />
6-
<link rel="icon" type="image/png" href="assets/img/favicon_32.png" sizes="32x32" />
7-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="48x48" />
8-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="192x192" />
5+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_16.png" sizes="16x16" />
6+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_32.png" sizes="32x32" />
7+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="48x48" />
8+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="192x192" />
99
<title>Baserow</title>
1010
</head>
1111
<body>
@@ -98,7 +98,7 @@
9898
<div class="sidebar-content-wrapper">
9999
<nav class="sidebar-content">
100100
<div class="sidebar-title">
101-
<img src="assets/img/logo.svg" alt="" />
101+
<img src="../../web-frontend/static/img/logo.svg" alt="" />
102102
</div>
103103
<div class="sidebar-group-title">Group name 1</div>
104104
<ul class="tree">

web-frontend/public/index.html old-web-frontend/public/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" type="image/png" href="assets/img/favicon_16.png" sizes="16x16" />
6-
<link rel="icon" type="image/png" href="assets/img/favicon_32.png" sizes="32x32" />
7-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="48x48" />
8-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="192x192" />
5+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_16.png" sizes="16x16" />
6+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_32.png" sizes="32x32" />
7+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="48x48" />
8+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="192x192" />
99
<title>Baserow</title>
1010
</head>
1111
<body>

web-frontend/public/login.html old-web-frontend/public/login.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" type="image/png" href="assets/img/favicon_16.png" sizes="16x16" />
6-
<link rel="icon" type="image/png" href="assets/img/favicon_32.png" sizes="32x32" />
7-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="48x48" />
8-
<link rel="icon" type="image/png" href="assets/img/favicon_48.png" sizes="192x192" />
5+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_16.png" sizes="16x16" />
6+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_32.png" sizes="32x32" />
7+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="48x48" />
8+
<link rel="icon" type="image/png" href="../../web-frontend/static/img/favicon_48.png" sizes="192x192" />
99
<title>Login</title>
1010
</head>
1111
<body class="page-login">
@@ -15,7 +15,7 @@
1515
<!-- login page -->
1616
<div class="box login-page login-page-login">
1717
<h1 class="box-title">
18-
<img src="assets/img/logo.svg" alt="" />
18+
<img src="../../web-frontend/static/img/logo.svg" alt="" />
1919
</h1>
2020
<div class="alert alert-error alert-has-icon">
2121
<div class="alert-icon">

old-web-frontend/src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '../../web-frontend/assets/scss/default.scss';
File renamed without changes.

web-frontend/webpack/webpack.common.js old-web-frontend/webpack/webpack.common.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ const modules = {
2828
options: {
2929
presets: ['@babel/preset-env'],
3030
},
31-
},
32-
{
33-
loader: 'eslint-loader',
34-
},
31+
}
3532
],
3633
},
3734
{
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)