Skip to content

Commit

Permalink
use blankLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jun 13, 2019
1 parent 7c98ad9 commit 57faf68
Show file tree
Hide file tree
Showing 30 changed files with 8 additions and 13 deletions.
Binary file modified AccountCenter/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified AccountSettings/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DashboardAnalysis/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DashboardMonitor/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DashboardWorkplace/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified EditorFlow/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified EditorKoni/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified EditorMind/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Exception403/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Exception404/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Exception500/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FormAdvancedForm/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FormBasicForm/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FormStepForm/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListBasicList/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListCardList/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListSearch/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListSearchApplications/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListSearchArticles/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListSearchProjects/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ListTableList/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ProfileAdvanced/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ProfileBasic/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ResultFail/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ResultSuccess/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified UserLogin/snapshot.png
Binary file modified UserRegister/snapshot.png
Binary file modified UserRegisterResult/snapshot.png
12 changes: 3 additions & 9 deletions _scripts/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable eslint-comments/no-unlimited-disable */
const { spawn } = require('child_process');
const { kill } = require('cross-port-killer');
const puppeteer = require('puppeteer');
const { join, dirname } = require('path');
const fs = require('fs');
Expand All @@ -14,22 +13,19 @@ env.BROWSER = 'none';
env.TEST = true;
env.COMPRESS = 'none';
env.PROGRESS = 'none';
// flag to prevent multiple test
env.BLOCK_PAGES_LAYOUT = 'blankLayout';

let browser;

const startServer = async path => {
let once = false;
return new Promise(resolve => {
env.PAGES_PATH = path + '/src';
const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['start'], {
console.log(path);
const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['run', 'start'], {
env,
});

startServer.on('exit', () => {
kill(process.env.PORT || 8000);
});

console.log('Starting development server');
startServer.stdout.on('data', data => {
console.log(data.toString());
Expand Down Expand Up @@ -115,8 +111,6 @@ const getAllFile = async () => {

getAllFile().then(async dirList => {
const registry = await getNpmRegistry();

kill(process.env.PORT || 8000);
const page = await openBrowser();
const loopGetImage = async index => {
try {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"dev": "cross-env PAGES_PATH='DashboardMonitor/src' umi dev",
"dev": "cross-env PAGES_PATH='AccountCenter/src' umi dev",
"start": "umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged",
Expand Down Expand Up @@ -29,8 +29,6 @@
"dependencies": {
"@types/react-dom": "^16.8.4",
"cross-env": "^5.2.0",
"execa": "^1.0.0",
"getnpmregistry": "^1.0.1",
"numeral": "^2.0.6",
"react-dom": "^16.8.6"
},
Expand All @@ -42,6 +40,9 @@
"@types/numeral": "^0.0.25",
"babel-eslint": "^10.0.1",
"check-prettier": "^1.0.3",
"cross-port-killer": "^1.1.1",
"execa": "^1.0.0",
"getnpmregistry": "^1.0.1",
"glob": "^7.1.3",
"husky": "^2.2.0",
"lint-staged": "^8.1.0",
Expand All @@ -59,7 +60,7 @@
"tslint-react": "^3.6.0",
"typescript": "^3.5.1",
"umi": "^2.6.17",
"umi-plugin-block-dev": "^2.0.2",
"umi-plugin-block-dev": "^2.1.11",
"umi-plugin-react": "^1.7.6",
"umi-request": "^1.0.0"
},
Expand Down

0 comments on commit 57faf68

Please sign in to comment.