Skip to content

Commit

Permalink
Timestamply redesign (#151)
Browse files Browse the repository at this point in the history
* clear repo

* more cleanup + add icons

* ops

* remove localstorage

* more repo reorg

* implement theming

* finish layout skeleton

* adjust layout to work with both themes

* finish non-responsive menu

* finish responsive menu + a11y improvements

* finish page markup

* finish verify page markup + responsive adjustments

* add theme to localstorage

* add dynamic next anchoring time

* finish search by hashes styling

* basic hash view + fix font weights

* fixes from review - background

* finish tooltip

* general fixes + make proofs work + hash view

* remove unused icon + fix latest hashes positioning + fix footer

* responsivity fixes

* fix build and small fix to download proof hash view behavior

* fix workflow

* clear warning

* implement i18n + remove styles.css import

* add no js version

* translation small fix

* add spinner

* create more general tooltip component

* update packages + set CI false

* fixes from review

* implement 404 page

* add favicon

* implement hash view

* implement error handling

* fix error msg translation + make checked hashes default

* persist timestamp and verify list

* add toast + persist list + clear list button

* fix error word break

* improve css generalism

* add debounce to download and verify buttons

* feat: add timeago, polling, last-digests and design tweaks

* fix verify invalid error with debounce

* change waiting to awaiting and use translation strings on icons tooltips

* fix wording + remove debounce

* remove proof verification by now

* fix: download proof format to match dcrtime_checker

* feat: allow hashes.json on verify

* feat: use id to recognize hashes file

* update dcrtimejs
  • Loading branch information
tiagoalvesdulce committed Feb 28, 2023
1 parent 86db5ad commit 54ab26f
Show file tree
Hide file tree
Showing 291 changed files with 5,969 additions and 5,451 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nodejs.yml
Expand Up @@ -17,13 +17,11 @@ jobs:

- name: yarn
run: yarn --network-concurrency 1
- name: lint:css
run: yarn lint:css
- name: lint:js
run: yarn lint:js
- name: test
run: yarn test
env:
CI: true
- name: build
run: yarn build
run: CI=false yarn build
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -24,3 +24,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Local Netlify folder
.netlify
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

51 changes: 0 additions & 51 deletions .prettierrc.js

This file was deleted.

43 changes: 0 additions & 43 deletions .stylelintrc

This file was deleted.

2 changes: 1 addition & 1 deletion jsconfig.json
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*":["src/*"]
"src/*":["src/*"]
}
}
}
36 changes: 7 additions & 29 deletions package.json
Expand Up @@ -3,49 +3,33 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"crypto-js": "^3.3.0",
"crypto-js": "^4.1.1",
"dcrtimejs": "https://github.com/tiagoalvesdulce/dcrtimejs",
"i18next": "^22.1.4",
"js-file-download": "^0.4.12",
"pi-ui": "https://github.com/decred/pi-ui",
"query-string": "^6.14.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-dropzone": "^10.2.2",
"react-router-dom": "^5.2.0",
"react-scripts": "^3.4.4"
"react-i18next": "^12.1.1",
"react-router-dom": "^5.2.0"
},
"scripts": {
"start": "REACT_APP_NETWORK=testnet HTTPS=true react-scripts start",
"build": "react-scripts build",
"build-testnet": "REACT_APP_NETWORK=testnet react-scripts build",
"test": "react-scripts test",
"test": "react-scripts test --passWithNoTests",
"eject": "react-scripts eject",
"lint:css": "stylelint --fix 'src/**/*.css'",
"lint:js": "eslint --fix --ext=.js,.jsx src"
},
"eslintConfig": {
"extends": "react-app"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx}": [
"prettier --write",
"yarn lint:css",
"yarn lint:js",
"git add"
]
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"react-scripts": "^3.4.4",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.15.0",
Expand All @@ -55,12 +39,6 @@
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^1.7.0",
"husky": "^3.1.0",
"lint-staged": "^9.5.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"stylelint": "^13.10.0",
"stylelint-config-recommended": "^3.0.0",
"typescript": "^3.9.9"
"react-error-overlay": "6.0.9"
}
}
1 change: 1 addition & 0 deletions public/_redirects
@@ -0,0 +1 @@
/* /index.html 200
3 changes: 0 additions & 3 deletions public/assets/clippy.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/assets/logo.svg

This file was deleted.

Binary file removed public/assets/source-sans-pro-v9-latin-regular.woff
Binary file not shown.
Binary file added public/favicon-small.ico
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/fonts/inter/Inter-Black.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Black.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-BlackItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-BlackItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Bold.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Bold.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-BoldItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraBold.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraBold.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraBoldItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraLight.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraLight.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraLightItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Italic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Italic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Light.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Light.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-LightItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-LightItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Medium.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Medium.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-MediumItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Regular.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Regular.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-SemiBold.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-SemiBold.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-SemiBoldItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-Thin.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-Thin.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-ThinItalic.woff
Binary file not shown.
Binary file added public/fonts/inter/Inter-ThinItalic.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-italic.var.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter-roman.var.woff2
Binary file not shown.
Binary file added public/fonts/inter/Inter.var.woff2
Binary file not shown.
Binary file added public/icon-192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-discord.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-github.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-matrix.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-medium.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-reddit.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-telegram.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-twitter.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/icon-frontpage-youtube.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 54ab26f

Please sign in to comment.