- Notifications
You must be signed in to change notification settings - Fork1k
refactor: Move package.json and other front-end collateral into 'site'#128
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
3ead332
a8600ff
b3a225a
f215808
e62914c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -12,6 +12,5 @@ yarn-error.log | ||
# Front-end ignore | ||
.next/ | ||
coverage/ | ||
out/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from "react" | ||
export interface ErrorSummaryProps { | ||
error: Error | undefined | ||
} | ||
export const ErrorSummary: React.FC<ErrorSummaryProps> = ({ error }) => { | ||
// TODO: More interesting error page | ||
if (typeof error === "undefined") { | ||
return <div>{"Unknown error"}</div> | ||
} | ||
return <div>{error.toString()}</div> | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
module.exports = { | ||
projects: [ | ||
{ | ||
globals: { | ||
"ts-jest": { | ||
tsconfig: "tsconfig.test.json", | ||
}, | ||
}, | ||
coverageReporters: ["text", "lcov"], | ||
displayName: "test", | ||
preset: "ts-jest", | ||
roots: ["<rootDir>"], | ||
setupFilesAfterEnv: ["<rootDir>/_jest/setupTests.ts"], | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest", | ||
}, | ||
testEnvironment: "jsdom", | ||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", | ||
testPathIgnorePatterns: ["/node_modules/", "/__tests__/fakes"], | ||
moduleDirectories: ["node_modules", "<rootDir>"], | ||
}, | ||
{ | ||
displayName: "lint", | ||
runner: "jest-runner-eslint", | ||
testMatch: ["<rootDir>/**/*.js", "<rootDir>/**/*.ts", "<rootDir>/**/*.tsx"], | ||
testPathIgnorePatterns: ["/.next/", "/out/", "/_jest/", "jest.config.js", "jest-runner.*.js", "next.config.js"], | ||
}, | ||
], | ||
collectCoverageFrom: [ | ||
"<rootDir>/**/*.js", | ||
"<rootDir>/**/*.ts", | ||
"<rootDir>/**/*.tsx", | ||
"!<rootDir>/**/*.stories.tsx", | ||
"!<rootDir>/.next/**/*.*", | ||
"!<rootDir>/api.ts", | ||
"!<rootDir>/dev.ts", | ||
"!<rootDir>/next-env.d.ts", | ||
"!<rootDir>/next.config.js", | ||
"!<rootDir>/out/**/*.*", | ||
], | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -78,8 +78,8 @@ const ProjectPage: React.FC = () => { | ||
<div className={styles.root}> | ||
<Navbar user={me} onSignOut={signOut} /> | ||
<Header | ||
title={firstOrItem(project, "")} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. There were a couple places where the type-checks became stricter! I figured it was easier to leave them on in the stricter mode, and fix them, then to figure out how to turn them off There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yup, agreed! | ||
description={firstOrItem(organization, "")} | ||
subTitle={`${workspaces.length} workspaces`} | ||
action={{ | ||
text: "Create Workspace", | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"jsx": "react", | ||
"downlevelIteration": true, | ||
"strict": true, | ||
"strictNullChecks": true, | ||
"esModuleInterop": true | ||
} | ||
} |
Uh oh!
There was an error while loading.Please reload this page.