Skip to content

Commit

Permalink
Revert "New Feature"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcodarko authored Jan 25, 2024
1 parent 89c0513 commit cbfabf8
Show file tree
Hide file tree
Showing 102 changed files with 45,959 additions and 29,450 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/deploy-dev.yml

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ boto3

# Biolink Model Toolkit, used in /api/metakg endpoint
bmt-lite-v3.1.0==2.2.2

networkx==3.1.0
2 changes: 1 addition & 1 deletion src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get(self):
(r"/oauth", "handlers.oauth.GitHubLoginHandler"),
(r"/logout/?", "handlers.api.LogoutHandler"),
(r"/sitemap.xml()", "tornado.web.StaticFileHandler", {"path": "../web-app/dist/sitemap.xml"}),
(r"/((?:img|assets)/.*)", "tornado.web.StaticFileHandler", {"path": "../web-app/dist/"}),
(r"/((?:img|css|js|fonts)/.*)", "tornado.web.StaticFileHandler", {"path": "../web-app/dist/"}),
],
{
"default_handler_class": WebAppHandler,
Expand Down
24 changes: 0 additions & 24 deletions web-app/.eslintrc.cjs

This file was deleted.

27 changes: 11 additions & 16 deletions web-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
# Logs
logs
*.log
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
8 changes: 0 additions & 8 deletions web-app/.prettierrc.json

This file was deleted.

55 changes: 11 additions & 44 deletions web-app/README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,24 @@
# SmartAPI web app
# web-app

Developed with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
## Project setup
```
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
### Compiles and hot-reloads for development
```

### Compile and Minify for Production

```sh
npm run build
npm run serve
```

### Run Unit Tests with [Vitest](https://vitest.dev/)

```sh
npm run test:unit
### Compiles and minifies for production
```

### Run End-to-End Tests with [Cypress](https://www.cypress.io/)

```sh
npm run test:e2e:dev
```

This runs the end-to-end tests against the Vite development server.
It is much faster than the production build.

But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):

```sh
npm run build
npm run test:e2e
```

### Lint with [ESLint](https://eslint.org/)

```sh
### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions web-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
8 changes: 0 additions & 8 deletions web-app/cypress.config.js

This file was deleted.

8 changes: 0 additions & 8 deletions web-app/cypress/e2e/example.cy.js

This file was deleted.

8 changes: 0 additions & 8 deletions web-app/cypress/e2e/jsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions web-app/cypress/fixtures/example.json

This file was deleted.

25 changes: 0 additions & 25 deletions web-app/cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions web-app/cypress/support/e2e.js

This file was deleted.

6 changes: 6 additions & 0 deletions web-app/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest',
transform: {
'^.+\\.vue$': 'vue-jest'
}
}
Loading

0 comments on commit cbfabf8

Please sign in to comment.