Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Create react application client #25

Open
wants to merge 59 commits into
base: feature/v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d179f9e
add base for cra client
okv Nov 21, 2020
0dd4ef2
add react router to new client
okv Nov 21, 2020
0c132fd
add client to eslint ignore
okv Nov 22, 2020
a644b9a
add base for home and run project components
okv Nov 22, 2020
a554371
porting run project form template from jade
okv Nov 22, 2020
70e36e8
more on run project form
okv Nov 22, 2020
6fbab34
drop redundant props passing to RunForm
okv Nov 22, 2020
2064068
redirect to home when cancel project run
okv Nov 22, 2020
6bc5e10
add bootstrap (3.4.1)
okv Nov 23, 2020
596cbaa
add and include legacy styles using less css
okv Nov 23, 2020
855b5df
replace index.css with old layout styles
okv Nov 23, 2020
810f052
disable run button in a proper way
okv Nov 23, 2020
cbc797f
build legacy styles on run
okv Nov 24, 2020
d85f777
exact routing for project run form
okv Nov 24, 2020
746d7c6
add socket io builds and projects resources
okv Nov 24, 2020
d466c52
load project from server using model
okv Nov 24, 2020
218256a
run project by run button; redirect on last build at home
okv Nov 24, 2020
747351e
add skeleton for builds view
okv Nov 24, 2020
fe75449
fix styles order
okv Nov 25, 2020
61f6b2b
start working on build view
okv Nov 25, 2020
aad5cdc
turn build view into folder
okv Nov 25, 2020
959480a
more on builds view
okv Nov 25, 2020
8fc6db7
fix builds loading at home
okv Nov 26, 2020
70e31e2
fix client hooks and models
okv Nov 26, 2020
46fe6c9
add npm dev command as an alias for the start
okv Nov 27, 2020
f44303f
update build model on change
okv Nov 27, 2020
dece9e2
change components extension from js to jsx
okv Dec 2, 2020
61842e3
extract build view header component
okv Dec 2, 2020
76b3461
start working on build info component
okv Dec 5, 2020
ec115e1
add revision item component
okv Dec 5, 2020
8abcb81
Merge branch 'feature/cra-client' of github.com:node-ci/nci-ansible-u…
okv Dec 15, 2020
8451f74
actualize build index component
okv Dec 15, 2020
5584d35
add reviosion list component to build page
okv Dec 15, 2020
d08cd04
add build params view to build page
okv Dec 15, 2020
2015278
show error on build page
okv Dec 15, 2020
6ef41ee
log to stderr when errored project
okv Dec 15, 2020
c9e4d93
turn models into dir
okv Dec 16, 2020
57d3ef8
add sidebar to build view
okv Dec 16, 2020
09ed9e6
add build progress bar component to build view
okv Dec 17, 2020
9a0bae4
rename and refactor some internal build view components; add model me…
okv Dec 17, 2020
4ff9ae2
start working on terminal view
okv Dec 17, 2020
b94ce4a
add terminal styles
okv Dec 18, 2020
f40b568
scroll top when hide console output
okv Dec 18, 2020
f90d5c3
better terminal preload handling
okv Dec 18, 2020
0ce4017
update builds model only when items provided
okv Dec 18, 2020
86082b2
add scm icon component to build view header
okv Dec 18, 2020
cad0903
quit when no build in build terminal component
okv Dec 19, 2020
7d8fbbc
do not process terminal data for unmounted component
okv Dec 19, 2020
86fe1f8
better build view fetch processing
okv Dec 19, 2020
2eabb55
Merge branch 'feature/v2' into feature/cra-client
okv May 15, 2021
a081bba
fix some vulnerabilities with npm audit fix
okv May 17, 2021
fc70126
update socketio client to 4.1.1
okv May 17, 2021
7cd9539
update react-scripts to 4.0.3
okv May 17, 2021
27f1f99
skip react scripts preflight checks
okv May 17, 2021
653d1fb
skip preflight react script checks while making prod build
okv May 17, 2021
da2ffaf
tmp skip for disabled run button expectations
okv May 20, 2021
e169cf5
add script to build cra client and test cra client app in ci
okv May 20, 2021
bc58717
drop old client and related dependencies
okv May 20, 2021
8a7eb68
dedupe npm dependencies
okv May 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
views/index.js
static/js/app.build.js
node_modules/
cypress/
docker/
client/
client-build/
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
node_modules
static/css/**/*.css
static/fonts
static/js/*.js
static/index.html
views/index.js
node_modules/
dev/data/projects/**/workspace
cypress/videos
cypress/videos/
client-build/

12 changes: 3 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
.npmignore
test
static/js
static/css
app
transforms
views
*.tgz
.npmrc
.nvmrc
dev
cypress
dev/
cypress/
cypress.json
docker/
.eslintignore
.eslintrc
.swcrc
client/
5 changes: 0 additions & 5 deletions .swcrc

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ cache:

script:
- npm run lint
- cd client && npm ci && cd ../
- npm run dev-server-and-test-ui
14 changes: 12 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ const _ = require('underscore');
const fs = require('fs');
const path = require('path');

const staticPath = path.join(__dirname, 'static');
const indexHtml = fs.readFileSync(`${staticPath}/index.html`);
const env = process.env.NODE_ENV;
let indexHtml;

if (env === 'development') {
indexHtml = (
'Run a CRA (Create React App) dev server, take a look at' +
'"client/README.md".'
);
} else {
const staticPath = path.join(__dirname, 'client-build');
indexHtml = fs.readFileSync(`${staticPath}/index.html`);
}

exports.register = (originalApp) => {
const app = _(originalApp).clone();
Expand Down
31 changes: 0 additions & 31 deletions app/.jshintrc

This file was deleted.

8 changes: 0 additions & 8 deletions app/actions/build.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/actions/buildLog.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/actions/project.js

This file was deleted.

32 changes: 0 additions & 32 deletions app/app.js

This file was deleted.

4 changes: 0 additions & 4 deletions app/components/app/index.jade

This file was deleted.

14 changes: 0 additions & 14 deletions app/components/app/index.js

This file was deleted.

Loading