Introduce the skeleton compare view
Adds the tsx file and updates the webpack config so that this new tsx file is properly compiled.
This commit is contained in:
@@ -4,7 +4,8 @@ import * as webpack from 'webpack';
|
||||
export const config: webpack.Configuration = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
resultsView: './src/view/results.tsx'
|
||||
resultsView: './src/view/results.tsx',
|
||||
compareView: './src/compare/view/compare.tsx',
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '..', 'out'),
|
||||
|
||||
13
extensions/ql-vscode/src/compare/view/.eslintrc.js
Normal file
13
extensions/ql-vscode/src/compare/view/.eslintrc.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true
|
||||
},
|
||||
extends: [
|
||||
"plugin:react/recommended"
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect'
|
||||
}
|
||||
}
|
||||
}
|
||||
17
extensions/ql-vscode/src/compare/view/compare.tsx
Normal file
17
extensions/ql-vscode/src/compare/view/compare.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as React from 'react';
|
||||
import * as Rdom from 'react-dom';
|
||||
|
||||
interface Props {
|
||||
/**/
|
||||
}
|
||||
|
||||
export function App(props: Props): JSX.Element {
|
||||
return (
|
||||
<div>Compare View!</div>
|
||||
);
|
||||
}
|
||||
|
||||
Rdom.render(
|
||||
<App />,
|
||||
document.getElementById('root')
|
||||
);
|
||||
8
extensions/ql-vscode/src/compare/view/compareView.css
Normal file
8
extensions/ql-vscode/src/compare/view/compareView.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.octicon {
|
||||
fill: var(--vscode-editor-foreground);
|
||||
margin-top: .25em;
|
||||
}
|
||||
|
||||
.octicon-light {
|
||||
opacity: 0.6;
|
||||
}
|
||||
23
extensions/ql-vscode/src/compare/view/tsconfig.json
Normal file
23
extensions/ql-vscode/src/compare/view/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"target": "es6",
|
||||
"outDir": "out",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "react",
|
||||
"sourceMap": true,
|
||||
"rootDir": "..",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"experimentalDecorators": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user