Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Jun 29, 2023
1 parent 8317ed7 commit 6d68767
Show file tree
Hide file tree
Showing 19 changed files with 3,293 additions and 4,819 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-to-npm-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run types
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/run-tests.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pages:
script:
- mkdir .public
- cp -r * .public
- mv .public public
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
- public
only:
- production
- production
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cypress.json

This file was deleted.

56 changes: 0 additions & 56 deletions cypress/integration/find.js

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/support/index.js

This file was deleted.

21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Find!</title>
<title>Find('?!')</title>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width">
<meta name="description" content="Find exactly what you're looking for.">
<meta name="description" content="">

<link rel="apple-touch-icon" sizes="180x180" href="./public/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./public/favicons/favicon-32x32.png">
Expand All @@ -17,15 +17,22 @@

<!-- define the open search so find is easily "discoverable" as a search engine
`title` property should match `ShortName` key of the xml -->
<link rel="search" type="application/opensearchdescription+xml" href="./opensearch.xml" title="Find" />
<link rel="search" type="application/opensearchdescription+xml" href="./public/opensearch.xml" title="Find" />

<!-- read scripts first as it is more important that styles in our case -->
<script src="./main.js"></script>
<script async defer src="./find-elements.js"></script>
<link href="./styles.css" rel="stylesheet" type="text/css" />
<!-- the main Find! script. Loads and parse user query from URL, then redirects if any -->
<script type="module">
import Find from "./src/index.js"
// initialize the app (to get the user hash/search param as input to find)
Find.init();
</script>

<!-- if this loads, means user did not request a Find! search in URL, load style then UI js -->
<link href="./src/styles/index.css" rel="stylesheet" type="text/css" />
<script type="module" async defer src="./src/ui/find-elements.js"></script>
</head>

<body>
<!-- we send a cloudflare cookie beacon to number of page load for/and warn user to add an advert-blocker -->
<i4k-find-app class="App" cf-beacon="9852254f653c405f9aca2a672ec3ad6e"></i4k-find-app>
</body>
</html>
Loading

0 comments on commit 6d68767

Please sign in to comment.