Skip to content
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

Search page componet #4

Open
wants to merge 68 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4596685
first commit
dismorfo Apr 13, 2023
3194353
update yarn.lock
dismorfo Apr 13, 2023
7e3c2b3
Created components for footer, begun adding components for header and…
damonc015 Apr 14, 2023
c759be5
added editor config
damonc015 Apr 25, 2023
c4f8bbc
added adapter
damonc015 Jun 26, 2023
c9fff62
static version
damonc015 Aug 15, 2023
ee36e8f
ssg changes
damonc015 Aug 15, 2023
4c33592
static changes
damonc015 Aug 15, 2023
4ef54c2
static path changes
damonc015 Aug 15, 2023
92a51d0
url change
damonc015 Aug 15, 2023
e2709c7
more url changes
damonc015 Sep 12, 2023
f774d1b
pagination and filter stores
damonc015 Sep 19, 2023
dddd663
pagination changes
damonc015 Sep 22, 2023
61405d8
Search page
dismorfo Sep 27, 2023
57f4a24
Sort
damonc015 Oct 10, 2023
c9dca88
Build changes
damonc015 Oct 10, 2023
2ee3dd4
Load spinner changes
damonc015 Oct 11, 2023
1521718
Map page changes
damonc015 Oct 24, 2023
b8a6ad6
Map updates
damonc015 Oct 24, 2023
1e67e1d
Map updates
damonc015 Oct 24, 2023
3ab279a
Mobile Nav Menu & Books/Maps
damonc015 Nov 10, 2023
bdf3caf
netlify toml file
damonc015 Nov 10, 2023
85cbf0c
Reverted map url
damonc015 Nov 12, 2023
5c91638
toml changes
damonc015 Nov 12, 2023
f95caf0
toml changes
damonc015 Nov 12, 2023
b6a5b3a
toml changes
damonc015 Nov 12, 2023
6a54267
toml changes
damonc015 Nov 12, 2023
cd2e8fa
toml changes
damonc015 Nov 12, 2023
e7ff534
toml changes
damonc015 Nov 12, 2023
f219f05
absolute url added
damonc015 Nov 12, 2023
7b3e4e5
redirect changes
damonc015 Nov 14, 2023
d4e497c
updates
dismorfo Dec 12, 2023
366228f
Rearranged files + env changes
damonc015 Jan 12, 2024
8066c04
env replacements
damonc015 Jan 19, 2024
0b24f15
env additions
damonc015 Jan 21, 2024
a6f6c43
meta tag changes
damonc015 Jan 22, 2024
3dd7971
added error handling for failed data fetch
damonc015 Jan 30, 2024
139b2a3
filter dropdown changes
damonc015 Jan 30, 2024
fde643e
Filter dropdown changes
damonc015 Jan 30, 2024
52c25e4
Filter dropdown final changes
damonc015 Jan 30, 2024
9b08ec8
Filter dropdown conditional render
damonc015 Jan 30, 2024
377bcea
tests and env additions
damonc015 Feb 5, 2024
00f6429
Formatting changes
damonc015 Feb 13, 2024
f41a832
linting changes
damonc015 Feb 20, 2024
4a1f95d
linting changes
damonc015 Feb 20, 2024
9f1a00f
linting changes
damonc015 Feb 20, 2024
7e3b03f
linting changes
damonc015 Feb 21, 2024
aa39a0a
a
damonc015 Feb 21, 2024
806f473
a
damonc015 Feb 21, 2024
8a47e78
linting changes
damonc015 Feb 22, 2024
1173ae9
linting changes
damonc015 Feb 22, 2024
8837d50
fetch modularized
damonc015 Feb 27, 2024
84da13a
astro upgrade
damonc015 Feb 27, 2024
3c660d3
astro upgrade
damonc015 Feb 27, 2024
1602e15
readme
damonc015 Feb 27, 2024
032de16
double quotes on astro files
damonc015 Feb 27, 2024
063c046
ignore .eslintcache
dismorfo Feb 28, 2024
4f7844a
delete .eslintcache
dismorfo Feb 28, 2024
edcb807
Set the nodejs version with nvm
dismorfo Feb 28, 2024
ba5fe0d
env example file
dismorfo Feb 28, 2024
3e3df8b
awsupdates
damonc015 Apr 23, 2024
e54c83d
changed location object to history object for aws
damonc015 Jun 11, 2024
af831a0
Popstate and input changes
damonc015 Jul 2, 2024
567aa3a
relevance sort + lint rule changes
damonc015 Jul 16, 2024
2cf5351
footer css changes
damonc015 Sep 11, 2024
8aded4d
duplicated browse page onto home
damonc015 Sep 20, 2024
f4619b8
Home page update
damonc015 Oct 19, 2024
a4d7fa5
history stack, robot txt changes
damonc015 Nov 5, 2024
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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react"]
}
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*]
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
13 changes: 13 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# URLs
PUBLIC_APPURL = 'dif5kvlgv1c7d.cloudfront.net'
PUBLIC_DISCOVERYURL = 'https://discovery1.dlib.nyu.edu/solr/viewer'
PUBLIC_VIEWERURL = 'https://sites.dlib.nyu.edu/viewer'

# Item descriptions
PUBLIC_ROWS = 12
PUBLIC_STARTITEMS = 0
PUBLIC_ALLITEMS = 1000
PUBLIC_COLLECTIONCODE = 'io'
PUBLIC_LANGUAGE = 'en'
PUBLIC_BOOK = 'dlts_book'
PUBLIC_MAP = 'dlts_map'
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist/
/cypress/
139 changes: 139 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
const baseRules = {
// Logic rules
"array-callback-return": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-binary-expression": "error",
"no-constant-condition": "warn",
"no-dupe-args": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "warn",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-irregular-whitespace": ["error", { skipStrings: true }],
"no-loss-of-precision": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
// Suggestion rules
"arrow-body-style": ["error", "always"],
"block-scoped-var": "error",
camelcase: ["error", { properties: "never", ignoreDestructuring: false, ignoreImports: true, ignoreGlobals: false }],
"capitalized-comments": ["error", "always"],
curly: "error",
"dot-notation": "error",
// React rules
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
// Stylistic
"@stylistic/block-spacing": ["error", "always"],
"@stylistic/comma-spacing": ["error", { before: false, after: true }],
"@stylistic/computed-property-spacing": ["error", "never"],
"@stylistic/eol-last": ["error", "always"],
"@stylistic/function-call-spacing": ["error", "never"],
"@stylistic/jsx-closing-bracket-location": [2, "line-aligned"],
"@stylistic/jsx-curly-newline": ["error", "consistent"],
"@stylistic/jsx-curly-spacing": ["error", { when: "never" }],
"@stylistic/jsx-equals-spacing": [2, "never"],
"@stylistic/key-spacing": ["error", { afterColon: true, mode: "strict" }],
"@stylistic/keyword-spacing": ["error", { before: true, after: true }],
"@stylistic/lines-around-comment": ["error", { beforeBlockComment: true }],
"@stylistic/max-statements-per-line": ["error", { max: 2 }],
"@stylistic/multiline-ternary": ["error", "never"],
"@stylistic/newline-per-chained-call": ["error", { ignoreChainWithDepth: 2 }],
"@stylistic/no-extra-semi": "error",
"@stylistic/no-floating-decimal": "error",
"@stylistic/no-mixed-spaces-and-tabs": "error",
"@stylistic/no-multi-spaces": "error",
"@stylistic/no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
"@stylistic/no-trailing-spaces": "error",
"@stylistic/no-whitespace-before-property": "error",
"@stylistic/operator-linebreak": ["error", "after"],
"@stylistic/padded-blocks": ["error", "never"],
"@stylistic/rest-spread-spacing": ["error", "never"],
"@stylistic/semi": ["error", "always"],
"@stylistic/semi-spacing": ["error", { before: false, after: true }],
"@stylistic/semi-style": ["error", "last"],
"@stylistic/space-before-blocks": ["error", "always"],
"@stylistic/space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always"
}
],
"@stylistic/space-in-parens": ["error", "never"],
"@stylistic/space-unary-ops": "error",
"@stylistic/space-infix-ops": "error",
"@stylistic/spaced-comment": ["error", "always"],
"@stylistic/switch-colon-spacing": "error",
"@stylistic/template-curly-spacing": ["error", "never"],
"@stylistic/template-tag-spacing": "error",
"@stylistic/type-generic-spacing": ["error"],
"@stylistic/type-named-tuple-spacing": ["error"],
"@stylistic/wrap-regex": "error"
};
module.exports = {
env: {
node: true,
es2022: true,
browser: true
},
plugins: ["@stylistic", "prettier"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
settings: {
react: { version: "detect" }
},
rules: {
...baseRules,
"prettier/prettier": "error"
},
overrides: [
{
files: ["*.js", "*.jsx"],
parser: "@babel/eslint-parser",
parserOptions: {
requireConfigFile: false
},
extends: ["plugin:react/recommended", "prettier"],
rules: {
...baseRules
}
},
{
files: ["*.astro"],
parser: "astro-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"]
},
extends: ["plugin:astro/recommended", "plugin:astro/jsx-a11y-strict", "prettier"],
rules: {
...baseRules
}
},
{
files: ["*.ts"],
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" }
],
"@typescript-eslint/no-non-null-assertion": "off"
}
},
{
files: ["**/*.astro/*.js", "*.astro/*.js"],
parser: "@typescript-eslint/parser"
}
]
};
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: https://www.buymeacoffee.com/markteekman
20 changes: 20 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "prepare-release"

on:
push:
branches:
- "main"

jobs:
pre-release:
name: "Prepare Release"
runs-on: "ubuntu-latest"

steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Next Release"
32 changes: 25 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
# build output
dist

# dependencies
node_modules/
.snowpack/

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

# environment variables
.env
.env.production
.env.development
.env.staging

# macOS-specific files
.DS_Store
*.scssc
build

node_modules/*
source/drupal/*
design/*
package-lock.json
# vscode settings and dictionaries
.vscode

# webstorm settings and dictionaries
.idea

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

npx lint-staged
npx lint-staged
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Expose Astro dependencies for `pnpm` users
shamefully-hoist = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.14.1
22 changes: 22 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tabWidth": 2,
"useTabs": true,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"printWidth": 120,
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
],
"htmlWhitespaceSensitivity": "strict"
}
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

29 changes: 0 additions & 29 deletions Gemfile.lock

This file was deleted.

Loading