Skip to content

Vue3 migrate #214

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 252 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
f24d6eb
cleanup
femans Feb 23, 2022
3c0564e
cleanup
femans Feb 23, 2022
28be351
single select filter module
femans Feb 23, 2022
f920218
improved abstraction of filters
femans Feb 23, 2022
de8c4db
cleanup
femans Feb 23, 2022
7919957
cleanup
femans Feb 23, 2022
f2accb3
better appearance of items select box and add multiple select option
femans Feb 24, 2022
64a556a
single select filter module
femans Feb 23, 2022
8f8579c
improved abstraction of filters
femans Feb 23, 2022
283d207
cleanup
femans Feb 23, 2022
17791a4
cleanup
femans Feb 23, 2022
bf0ab3e
Merge branch 'improved-filters' of github.com:ipfs-search/dweb-search…
femans Feb 24, 2022
f16ec84
some more abstraction and cleanup
femans Feb 28, 2022
02b50b2
refactor of query store. BREAKING: queryParam 'last_seen' now is call…
femans Feb 28, 2022
e47beee
wip
femans Mar 1, 2022
4fee26e
added functionality for multiple select
femans Mar 1, 2022
72ac3a5
BREAKING: change url queries to slugs rather than values
femans Mar 2, 2022
70cb5ac
added type as a proper filterdefinition
femans Mar 2, 2022
3bbdeae
fixed bug that suddenly started throwing errors, inexplicably only fo…
femans Mar 2, 2022
31f6618
cleanup
femans Mar 2, 2022
321c85f
type based extension filter works
femans Mar 2, 2022
8632982
complete re-refactor
femans Mar 7, 2022
a7e09c4
all code of re-refactor working properly and cleaned up
femans Mar 8, 2022
b22e6b2
post merge npm run
femans Mar 8, 2022
5e93349
fixed bug, added test
femans Mar 10, 2022
389b849
fixed the 'any filetype' bug, fixed the tests
femans Mar 11, 2022
3d0c374
fix minor bug
femans Mar 11, 2022
a0a191d
remove file extensions filter for now
femans Mar 11, 2022
2f3bc56
add language filter and fix setting of filter values of route params …
femans Mar 16, 2022
05eb334
fix code climate
femans Mar 16, 2022
eb6c6b9
Merge branch 'master' into improved-filters
femans Apr 13, 2022
284252d
Work In progress, refactoring fully the filters
femans Apr 19, 2022
37eb651
unit tests passing
femans Apr 20, 2022
c97d4ab
remove some bugs with tests
femans Apr 20, 2022
9388e20
simplified definitions (fallback for slug to use label)
femans Apr 20, 2022
6251ec3
fix bug with api query
femans Apr 20, 2022
a7e63d4
got the first component test working
femans Apr 22, 2022
36bf476
fixed several bugs using tdd and some code improvements
femans Apr 26, 2022
14a4e5d
turning classes into generator functions
femans Apr 29, 2022
7ec4747
wip improving test suite and fixing tests
femans Apr 30, 2022
5074fbc
wip; solving code errors
femans May 5, 2022
2a2b7b1
wip
femans May 12, 2022
b2694c1
clean up filter generator code
femans May 13, 2022
d2be6bf
clean up and get it to work, wip
femans May 14, 2022
0696140
typefilter is working, fixed bug and test
femans May 16, 2022
72a40fc
all unit tests working
femans May 18, 2022
1a36ef4
label change
femans May 18, 2022
4268b1e
added "Other" type to options
femans May 18, 2022
9b190a7
work in progress debugging the api calls
femans May 18, 2022
63abd33
Revert "added "Other" type to options"
femans May 18, 2022
a903899
Merge branch 'master' into improved-filters
femans May 18, 2022
63e11cb
got the different types to work again
femans May 18, 2022
3c55fd7
got the different types to work again
femans May 18, 2022
b65ef4e
got the different types to work again
femans May 18, 2022
13132ec
cleanup
femans May 18, 2022
61fb552
fixed bug of sending language filter to every file type api call
femans May 18, 2022
98071fc
refactored searchResults module
femans May 19, 2022
310ab31
rake in metadata through metadata-api for every hit
femans May 19, 2022
0981b52
codeclimate
femans May 19, 2022
b3d144d
Merge branch 'master' into improved-filters
femans May 19, 2022
0576d4c
fixed a bug, and added/updated some docstrings
femans May 19, 2022
e4026b2
remove some unnecessary whitelines in .eslintrc
femans May 19, 2022
885e8f4
removed obsolete error catch, which was resolved by https://github.co…
femans May 19, 2022
5c8adc0
fixed nsfw lookup
femans May 19, 2022
b2737a0
rename module generators for clarity
femans May 20, 2022
bcebaf5
fixed the appearance of the typefilter - again
femans May 20, 2022
7eaf8c8
fix unit tests
femans May 22, 2022
75c2215
fix line length
femans May 22, 2022
d9db6ba
added "Other" type to options
femans May 18, 2022
80c5975
fix minor bug
femans May 22, 2022
475c0eb
display the extra data
femans May 26, 2022
2e7f51a
prettier output for the metadata
femans May 26, 2022
830a3cf
fix indents
femans May 26, 2022
19d5269
display the extra data
femans May 26, 2022
484dacd
added "Other" type to options
femans May 18, 2022
549ba9b
list header "Other files" in stead of "files"
femans May 30, 2022
0b94f32
Merge branch 'other-type-search' of github.com:ipfs-search/dweb-searc…
femans May 30, 2022
0acb7b9
Other
femans May 30, 2022
b879061
Merge branch 'other-type-search' into additional-metadata
femans May 30, 2022
60ef9b5
Merge branch 'additional-metadata' of github.com:ipfs-search/dweb-sea…
femans May 30, 2022
aee584d
more explicit the origin of the metadata
femans May 30, 2022
48f938f
fix eslint indentation
femans May 30, 2022
03aa1e4
fix the wrongly fixed merge conflict
femans May 30, 2022
4405980
Merge branch 'other-type-search' into additional-metadata
femans May 30, 2022
27bc24e
fixed the merge finally properly
femans May 30, 2022
8b67a1b
Merge branch 'other-type-search' into additional-metadata
femans May 30, 2022
31c466b
remove obsolete method
femans May 30, 2022
a14db93
extra metadata in nested dropdown
femans May 30, 2022
8522df9
fix eslint
femans May 30, 2022
7c60007
fix eslint
femans May 30, 2022
1e75138
display the extra data
femans May 26, 2022
1bb8098
prettier output for the metadata
femans May 26, 2022
ecdf1e6
fix indents
femans May 26, 2022
e2e2d3a
more explicit the origin of the metadata
femans May 30, 2022
58f2461
fix eslint indentation
femans May 30, 2022
641e4a7
remove obsolete method
femans May 30, 2022
19e6444
extra metadata in nested dropdown
femans May 30, 2022
ea249c8
fix eslint
femans May 30, 2022
0337035
fix eslint
femans May 30, 2022
dd3e458
Merge branch 'additional-metadata' of github.com:ipfs-search/dweb-sea…
femans May 31, 2022
d091c31
Merge branch 'master' into vue3-upgrade
femans Jun 1, 2022
06f6302
update dependencies for migrating to Vite
femans Jun 1, 2022
a9eafb1
Vite migration: move index.html and add vite.config.js (from previous…
femans Jun 2, 2022
5b9258d
add .vue extension to auto-resolve extensions in vite.config.json
femans Jun 2, 2022
4cedca7
remove webpack lazy loading hints and remove webpack speed measurement
femans Jun 2, 2022
5ee66fc
updated eslint to support es13, and fixed some dependencies
femans Jun 2, 2022
ec3cb92
update npm scripts
femans Jun 2, 2022
453c76f
fixed syntax error: cannot use import outside a module. Introduced Ty…
femans Jun 5, 2022
e55d524
set testEnvironment to jsdom for jest
femans Jun 5, 2022
ab7602e
added airbnb package to eslint; added jsconfig.json file to help IDE …
femans Jun 5, 2022
f61abb6
removed type:module from package.json and ran `npm run lint:fix`
femans Jun 5, 2022
9e2b253
all tests working
femans Jun 5, 2022
47231a0
cleanup, rename files
femans Jun 5, 2022
b945123
fix vuetify components recognition
femans Jun 5, 2022
c6983c9
fix env variables for Vite
femans Jun 5, 2022
246590d
fix static assets references
femans Jun 5, 2022
0a49dc7
delete jest.config, add vitest.config to use vuetify
femans Jun 5, 2022
7c28913
fix another occurence of "require"
femans Jun 5, 2022
7a84e47
components.d.ts
femans Jun 5, 2022
cdc2161
fixed scss `~` shortcuts
femans Jun 6, 2022
212cdba
fix video css import
femans Jun 6, 2022
c639c14
fix favicon links
femans Jun 6, 2022
bfa8c71
fixed the unit tester
femans Jun 6, 2022
4e06dcd
updating components.d.ts for vuetify
femans Jun 6, 2022
c38e061
trying to fix codeclimate
femans Jun 6, 2022
cb0dbd7
resolve eslint errors and add all .vue extensions
femans Jun 6, 2022
0e05f5d
ran install
femans Jun 6, 2022
fa8fbc1
fix eslint script
femans Jun 6, 2022
dd6053c
fixed eslint errors
femans Jun 6, 2022
dc15341
codeclimate different eslint version, see if this works
femans Jun 6, 2022
aff9114
spec ecmaversion 13
femans Jun 6, 2022
4ebb846
spec ecmaversion 11
femans Jun 6, 2022
9289b7d
some more small fixes
femans Jun 6, 2022
77c4910
shake up dependencies for upgrading to vue3
femans Jun 6, 2022
f3a196b
stranger things happening
femans Jun 7, 2022
093df70
going bumpy
femans Jun 8, 2022
b6cfc98
remove faulty line from vite.config.js
femans Jun 8, 2022
cda0ed2
eslint typescript fix and some build errors
femans Jun 8, 2022
b47124b
run eslint --fix
femans Jun 8, 2022
3d21f63
trying to fix eslint settings
femans Jun 8, 2022
86f9032
fixing eslint settings, again
femans Jun 8, 2022
784fdf5
fix alias __dirname replacement
femans Jun 8, 2022
f272a38
cleanup old vuetify artefacts
femans Jun 8, 2022
beeaf42
fix vuex
femans Jun 8, 2022
b9c09c9
add vuetify to main.js
femans Jun 8, 2022
b4e99cc
fix main.js
femans Jun 8, 2022
09605c5
remove vuecomposition file
femans Jun 8, 2022
8a5d892
replace Vue.set() with vue3 code
femans Jun 8, 2022
03fc3fe
bump vue router code
femans Jun 8, 2022
52d519c
upgrade timeago
femans Jun 8, 2022
25b8109
fix pretyBytes filter
femans Jun 8, 2022
61e5dc3
remove productionTip config
femans Jun 8, 2022
7c9caf2
vuetify vite plugin
femans Jun 8, 2022
4a60920
fix breakpoint api changes for vuetify
femans Jun 9, 2022
bd48ef4
fix "TypeError: url.parse is not a function"
femans Jun 9, 2022
a46b3bc
vuetify: replace v-subheader by v-list-subheader
femans Jun 10, 2022
ec30aad
fix the prettybytes again
femans Jun 10, 2022
2ba7fb2
correct timeago plugin. Fix some rebasing errors
femans Jun 10, 2022
01fbd50
fix a bunch of vuetify things
femans Jun 10, 2022
1bf7a89
fix import
femans Jun 10, 2022
aa35543
fix selectedIndex coerce default to number 0 when undefined
femans Jun 10, 2022
6deb09c
import vuetify styles
femans Jun 13, 2022
f6ae7df
fixed document viewer
femans Jun 15, 2022
6559cb4
fix fetch function to work as reactive proxy objext
femans Jun 15, 2022
58346e4
fix document viewer colors
femans Jun 15, 2022
27daf48
fixed mediaheader
femans Jun 15, 2022
edb53be
move component files
femans Jun 15, 2022
1481fc2
made rounded corners and the magnifier reappear
femans Jun 15, 2022
ad35e80
aligned the searchbar parts
femans Jun 15, 2022
054ae5d
aligned the searchbar parts better, colors of placeholder and caret f…
femans Jun 16, 2022
c380c8e
fixed color theme. Fixed homeview. Improved homeview card code reuse
femans Jun 16, 2022
c4660cd
fix top links
femans Jun 16, 2022
7b56f50
fixing settings menu for vuetify3
femans Jun 17, 2022
be6f7b6
fix settings menu layout
femans Jun 17, 2022
7236bf3
refactor all detail pages for usage with composition api
femans Jun 19, 2022
74a4e69
fixing document list card
femans Jun 19, 2022
7bd5c1f
refactored filelistmixin into composable
femans Jun 19, 2022
372dc26
Fixes #204 : no more metadata requests for directories
femans Jun 21, 2022
ef62754
fixed videolist and made generic headers
femans Jun 22, 2022
80d5f76
fixed audiolist
femans Jun 22, 2022
f09796a
added picsum to the audio and video list for fun. With funky effects
femans Jun 22, 2022
206aed4
refactoring imagelist
femans Jun 24, 2022
a44bbd5
fix image detail view
femans Jun 27, 2022
8074a84
organize directories, fixes #173. And fix router props page number
femans Jun 27, 2022
4806176
fixed imagedetail and carousel
femans Jun 27, 2022
bb2441e
fixing routing; adds hrefs to the list views
femans Jun 27, 2022
3f5e9d9
fixing routing; adds hrefs to the list views
femans Jun 27, 2022
6265f15
fix select filters
femans Jun 28, 2022
0560566
refactored navigation bar to use setup script
femans Jun 28, 2022
8238b4e
fix some bugs
femans Jun 28, 2022
d08c50a
fixed routing/search
femans Jun 28, 2022
0eeb2ab
put spinner on image detail page
femans Jun 28, 2022
b6bedd6
refactored detail pages
femans Jun 28, 2022
ce12184
fix and refactor audio player
femans Jun 29, 2022
5d8090b
refactor audioplayer to use composition api in setup script
femans Jul 1, 2022
0636899
bump vuetify to v3beta5
femans Jul 1, 2022
1026f63
fixing the footer
femans Jul 1, 2022
4572adb
fixed directory detail page and add iframe loader
femans Jul 2, 2022
c129952
make logo routerlinks
femans Jul 2, 2022
82a62ec
fix metadata time issue
femans Jul 2, 2022
a6e8a13
moved iframe styling to style section
femans Jul 3, 2022
f3b3190
generic header component and various small style fixes
femans Jul 3, 2022
b4f4bd6
added hyperlink component
femans Jul 4, 2022
28216b2
fix layout audiolist and fix slicing on any-type page
femans Jul 4, 2022
7076eb0
fix background color for dropdown menus. For now (until darkmode is f…
femans Jul 4, 2022
bd92990
fix list headers
femans Jul 4, 2022
40c377f
fix videolist margins
femans Jul 4, 2022
2e779e9
fixed style hack for searchbar
femans Jul 4, 2022
d920d5c
removed non-existent tags
femans Jul 4, 2022
873e074
fix image list
femans Jul 4, 2022
4557f38
Merge branch 'master' into vue3-migrate-bumpy
femans Jul 4, 2022
4c678f6
Merge branch 'master' into vue3-migrate-bumpy
femans Jul 4, 2022
849e319
remove merge artifact
femans Jul 4, 2022
e8c8669
replaced material design icons with treeshakeable svg version; reduce…
femans Jul 5, 2022
6f5eaca
some renaming
femans Jul 5, 2022
2bbc0af
fix types menu style
femans Jul 5, 2022
7de2589
fix directory references
femans Jul 5, 2022
23bbfe0
patch up detail header
femans Jul 5, 2022
2aa4d71
fix button caption to top
femans Jul 6, 2022
215f0f4
fixed audio detail page and refactored the audioPlayer
femans Jul 6, 2022
bdf7397
audio player mostly functional, except for close function. And styling
femans Jul 13, 2022
0620613
fixed styling for audio player
femans Jul 19, 2022
d12a9d3
add marquee effect to audio player
femans Jul 20, 2022
981b47d
move file
femans Jul 20, 2022
77904de
fix search page
femans Jul 20, 2022
5a17e21
fix audio controls and error messaging
femans Jul 20, 2022
11222aa
got the unit tests to work
femans Jul 20, 2022
fe20724
added prettier
femans Jul 20, 2022
cc9534b
Fix README.md. Pre-commit hooks option for prettier
femans Jul 21, 2022
6f3193d
setup codeclimate
femans Jul 21, 2022
d694919
refactor/fix code to suit eslint needs
femans Jul 21, 2022
7f77214
dealt with duplication issue of codeclimate
femans Jul 21, 2022
810939f
fixed production-build related errors
femans Jul 22, 2022
65cc575
change ecmascript version to "allowed" value
femans Jul 22, 2022
47fd733
downgrade eslint for codeclimate
femans Jul 22, 2022
526cb5d
downgrade eslint even further to try to fix codeclimate
femans Jul 22, 2022
9abe368
refactoring fetchDoggy for codeclimate improvement and filelist compo…
femans Jul 23, 2022
3ff92cb
try different settings in eslintrc
femans Jul 23, 2022
742c8f8
try different settings in eslintrc
femans Jul 23, 2022
aa732c3
refactored the code to reduce codeclimate complexity; no more codecli…
femans Jul 25, 2022
f0ef738
fix html title
femans Jul 25, 2022
c61e4f1
fix changing placeholders for audio and video
femans Jul 25, 2022
5632018
refactor picsum for readability
femans Jul 26, 2022
92cd22c
hide dark mode switch
femans Jul 26, 2022
6bc72cc
Merge remote-tracking branch 'origin/master' into vue3-migrate-bumpy
femans Jul 26, 2022
1c5af67
fixed and improved the marquee component
femans Jul 27, 2022
44e52e1
fix codeclimate
femans Jul 28, 2022
1fa3ed7
test and fix picsum module
femans Jul 28, 2022
45f5fbe
converted picsum to TS and fixed TS support
femans Jul 28, 2022
e937ab4
refactored marquee into typescript
femans Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
exclude_patterns:
- "node_modules/"
- "coverage/"
- "codeclimate-*/"
- ".husky/"
- ".idea/"
- ".vscode/"
- "dist/"
- "public/"
plugins:
eslint:
enabled: true
channel: "eslint-7"
enabled: false
channel: "eslint-8"
config:
extensions:
- .es6
- .js
- .jsx
- .ts
- .tsx
- .cjs
- .mjs
- .vue
checks:
identical-code:
config:
threshold: 50
similar-code:
config:
threshold: 75
56 changes: 0 additions & 56 deletions .eslintrc.js

This file was deleted.

42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"root": true,
"env": {
"node": false,
"browser": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:vue/strongly-recommended",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": ["vue", "html", "@typescript-eslint"],
"settings": {
"import/resolver": {
"alias": {
"map": [["@", "./src"]],
"extensions": [".vue", ".ts", ".js", ".tsx", ".jsx", ".json"]
}
}
},
"overrides": [
{
"files": [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
"env": {
"jest": true
}
}
],
"ignorePatterns": ["components.d.ts", "coverage/", "tests/vitest-setup.ts"]
}
15 changes: 7 additions & 8 deletions .fleek.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"build": {
"image": "node:16",
"command": "npm ci && npm run build",
"publicDir": "dist",
"baseDir": ".",
"environment": {
}
}
"build": {
"image": "node:16",
"command": "npm ci && npm run build",
"publicDir": "dist",
"baseDir": ".",
"environment": {}
}
}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

# test coverage reports
coverage

# local codeclimate build
codeclimate-*

# cache
.eslintcache
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
25 changes: 25 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.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*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# test coverage reports
coverage
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
58 changes: 37 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# dweb-search-frontend

[![Pipeline Status](https://gitlab.com/ipfs-search.com/dweb-search-frontend/badges/master/pipeline.svg)](https://gitlab.com/ipfs-search.com/dweb-search-frontend/-/commits/master)
[![Maintainability](https://api.codeclimate.com/v1/badges/1373bd46347115e764d2/maintainability)](https://codeclimate.com/github/ipfs-search/dweb-search-frontend/maintainability)
[![Backers on Open Collective](https://opencollective.com/ipfs-search/backers/badge.svg)](#backers)
Expand All @@ -7,40 +8,55 @@
New frontend repository for [ipfs-search.com](https://ipfs-search.com). Master is automatically deployed through [Fleek](https://fleek.co/).

## Dependencies
* [NodeJS 16 Gallium (LTS)](https://nodejs.org/)
* [VueJS](https://vuejs.org/)
* [VuetifyJS](https://vuetifyjs.com/)

- [NodeJS 16 Gallium (LTS)](https://nodejs.org/)
- [Vue 3](https://vuejs.org/)
- [VuetifyJS 3 (beta)](https://next.vuetifyjs.com/)

## Project setup

```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```
## Scripts:

### Compiles and minifies for production
```
npm run build
```
`npm run serve` Compiles and hot-reloads for development

### Lints and fixes files
```
npm run lint
```
`npm run build` Compiles and minifies for production

`npm run preview` Serves the latest build locally

`npm run test` Run all tests and watch code

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
`npm run test:once` Run all tests only once

`npm run test:coverage` Run all tests once and create coverage report under './coverage'

`npm run lint` Run code through linter to check

`npm run lint:fix` Run code through linter and fix (if automatically possible)

`npm run prettier:check` Test if code is formatted according to prettier spec

`npm run prettier:write` Format code according to prettier spec

`npm run prepare-githooks` Setup githook to automatically run prettier pre-commit. If you like this.

### So many scripts... which one do I need?

Developers: you will likely want to run `npm run serve` in one terminal and `npm run test` in another. You can use `npm run prepare-githooks` to autoformat the code. Alternatively you can run `npm run prettier:write` before pushing.

Ops will want to use `npm run build`, `npm run test` or `npm run test:coverage`, `npm run prettier:check`

## NSFW api
This build uses an API to check nsfw content.

This build uses an API to check nsfw content.

The default API endpoint to is: https://api.ipfs-search.com/nsfw/
. This can be overridden by injecting `process.env.NSFW_API`
. This can be overridden by injecting environment variable `VITE_NSFW_API`

The API call should be: `<process.env.NSFW_API><CID>`, so e.g.
The API call should be: `<VITE_NSFW_API><CID>`, so e.g.

`https://api.ipfs-search.com/nsfw/QmSZzv7ux1LGwpehVcCMQ9ec945X6qE4qyjKDhCVwY25iw`
https://api.ipfs-search.com/v1/nsfw/classify/
https://api.ipfs-search.com/v1/nsfw/classify/
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions global.d.ts~
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'vue' {
import { CompatVue } from '@vue/runtime-dom'
const Vue: CompatVue
export default Vue
export * from '@vue/runtime-dom'
const { configureCompat } = Vue
export { configureCompat }
}
31 changes: 31 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width,initial-scale=1.0,viewport-fit=cover"
/>
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg" />
<link rel="icon" type="image/png" href="/assets/images/favicon.png" />
<title>ipfs-search.com</title>
<link rel="stylesheet" href="/assets/styles/fonts.css" />
<link
rel="search"
type="application/opensearchdescription+xml"
href="/opensearch.xml"
title="ipfs-search.com"
/>
</head>
<body>
<noscript>
<strong
>We're sorry but IPFS-search doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
Loading