Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaa72ca
commit f5dcaa2
Showing
155 changed files
with
3,875 additions
and
2,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
require: ['@babel/register', './test/setup'], | ||
extension: ['ts'], | ||
require: ['./test/setup'], | ||
exit: true, | ||
file: './test/mocha-setup', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
const { defineConfig } = require('cypress'); | ||
require('dotenv').config({ path: './.env.test' }); | ||
|
||
module.exports = defineConfig({ | ||
port: 4000, | ||
env: { | ||
subdomain: 'https://integration-test.local.lunch.pink:3000/', | ||
subdomain: 'http://integration-test.local.lunch.pink:3000/', | ||
superuserEmail: process.env.SUPERUSER_EMAIL, | ||
superuserPassword: process.env.SUPERUSER_PASSWORD, | ||
}, | ||
e2e: { | ||
baseUrl: 'https://local.lunch.pink:3000/', | ||
baseUrl: 'http://local.lunch.pink:3000/', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { Action } from 'redux'; | ||
import WebSocket from 'ws'; | ||
import { Team, User as UserModel } from './src/models'; | ||
|
||
declare global { | ||
interface Window { App: any; } | ||
namespace Express { | ||
export interface Request { | ||
broadcast: (teamId: number, data: Action) => void; | ||
subdomain?: string; | ||
team?: Team; | ||
user?: UserModel; | ||
wss?: Server | ||
} | ||
} | ||
} | ||
|
||
interface ExtWebSocket extends WebSocket { | ||
teamId?: number; | ||
} | ||
|
||
type Dispose = () => void | ||
type InsertCssItem = () => Dispose | ||
type GetCSSItem = () => string | ||
type GetContent = () => string | ||
|
||
interface Style { | ||
[key: string]: InsertCssItem | GetCSSItem | GetContent | string | ||
_insertCss: InsertCssItem | ||
_getCss: GetCSSItem | ||
_getContent: GetContent | ||
} | ||
|
||
declare module '*.scss' { | ||
const style: Style | ||
export default style | ||
} | ||
|
||
declare module '*.css' { | ||
const style: Style | ||
export default style | ||
} | ||
|
||
declare module 'isomorphic-style-loader/useStyles' { | ||
function useStyles(...styles: Style[]): void | ||
export default useStyles | ||
} | ||
|
||
declare module 'isomorphic-style-loader/StyleContext' { | ||
import { Context } from 'react' | ||
|
||
type RemoveGlobalCss = () => void | ||
type InsertCSS = (...styles: Style[]) => RemoveGlobalCss | void | ||
interface StyleContextValue { | ||
insertCss: InsertCSS | ||
} | ||
|
||
const StyleContext: Context<StyleContextValue> | ||
|
||
export { StyleContext as default, InsertCSS } | ||
} | ||
|
||
declare module 'express-serve-static-core' { | ||
interface Express { | ||
hot: __WebpackModuleApi.Hot; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.