Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sehilyi committed Apr 30, 2024
0 parents commit 996a25b
Show file tree
Hide file tree
Showing 16 changed files with 2,881 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = exports = {
parser: "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
],
"plugins": [
"react",
"@typescript-eslint"
],
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
"rules": {
"indent": ["error", "tab"],
"quote-props": ["error", "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"react/no-unescaped-entities": 0 // allow
}
}
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: deploy

Check failure on line 1 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / deploy-s3

.github/workflows/deploy.yml#L1

This run was manually canceled.

Check failure on line 1 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / deploy-s3

.github/workflows/deploy.yml#L1

This run was manually canceled.

on:
push:
branches: [main]

jobs:
deploy-s3:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: build
run: |
yarn
yarn build
- uses: jakejarvis/[email protected]
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: sehilyi.com
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'build'
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

*.profraw
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files.exclude": {
"node_modules/**/*": true,
"config/**/*": true
},
"search.exclude": {
"node_modules/**/*": true,
"config/**/*": true
},
"editor.tabSize": 2,
"editor.detectIndentation": false,
"files.trimTrailingWhitespace": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Gosling

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# multimodal-vis-authoring

## Development

```sh
yarn install
yarn start
```

7 changes: 7 additions & 0 deletions images.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff'
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="/src/favicon.ico">
<title>Multimodal Visualization Authoring</title>
<meta property="og:type" content="website">
<meta property="og:title" content="Sehi L'Yi">
<meta property="og:description" content="An interactive website for exploring the survey results of multimodal viusualization authoring tools">
<meta
property="og:image"
content="https://github.com/gosling-lang/gosling.js/blob/main/logo/logo-1x.png?raw=true"
>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
fontFamily: {
'sans': ['Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif']
}
}
}
</script>
<link
href="https://fonts.googleapis.com/css?family=Inter:400,700"
rel="stylesheet">
</head>

<body style="background: #FAFAFA; color: #000">
<script type="module" src="/src/index.tsx"></script>
<div id="root"></div>
</body>

</html>
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "survey-multi-authoring-tech",
"version": "1.0.0",
"private": true,
"dependencies": {
"gh-pages": "^2.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.11.0"
},
"scripts": {
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "vitest",
"format": "npx eslint --fix --ext .js --ext .ts --ext .tsx src/",
"predeploy": "yarn build",
"deploy": "touch build/.nojekyll; gh-pages -d build -t --git git"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"@vitejs/plugin-react-refresh": "^1.3.6",
"babel-eslint": "^10.1.0",
"eslint": "^8.19.0",
"eslint-plugin-react": "^7.30.1",
"typescript": "^3.7.5",
"vite": "^4.3.6",
"vitest": "^0.31.0"
}
}
11 changes: 11 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';

function App() {
return (
<div>
<h1>App</h1>
</div>
);
}

export default App;
Binary file added src/favicon.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(<App />);
35 changes: 35 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "build/dist",
"module": "esnext",
"target": "es6",
"lib": [
"es6",
"dom"
],
"sourceMap": true,
"allowJs": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "src",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"importHelpers": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": false
},
"exclude": [
"node_modules",
"build",
"scripts",
"acceptance-tests",
"webpack",
"jest",
"src/setupTests.ts"
]
}
17 changes: 17 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-config-prettier"
],
"no-unused-variable": false,
"noUnusedLocals": false,
"defaultSeverity": "warning",
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"coverage/lcov-report/*.js"
]
}
}
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite';
import reactRefresh from '@vitejs/plugin-react-refresh';

export default defineConfig({
build: { target: 'esnext', outDir: 'build' },
plugins: [reactRefresh()],
});
Loading

0 comments on commit 996a25b

Please sign in to comment.