Skip to content

Commit

Permalink
Replace deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 20, 2024
0 parents commit 94103a9
Show file tree
Hide file tree
Showing 1,766 changed files with 335,431 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
}
]
]
}
18 changes: 18 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is based on Wikipedia/MediaWiki's browser support matrix
# Which is defined at https://www.mediawiki.org/wiki/Compatibility#Modern_(Grade_A)

# https//en.wikipedia.org/wiki/Google_Chrome_version_history
chrome 13

ie 11

# https//en.wikipedia.org/wiki/Firefox_version_history
firefox 4.0

safari 5.0

opera 15

ios 6.0

android 4.1
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git/objects/*
solr-update*
dumps
errors
infogami
config
build
**.pyc
**__pycache__
venv/
node_modules
14 changes: 14 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/.*
conf/
config/
docker/
infogami/
node_modules/
scripts/
static/build/
static/js/
static/build/vendor.js
provisioning/
vendor/
tests/screenshots/
venv/
46 changes: 46 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"root": true,
"plugins": [
"eslint-plugin-no-jquery"
],
"extends": [
"plugin:vue/essential",
"plugin:no-jquery/deprecated"
],
"env": {
"browser": true,
"jquery": true
},
"parserOptions": {
"parser": "@babel/eslint-parser",
"sourceType": "module",
"ecmaVersion": 6
},
"globals": {},
"rules": {
"prefer-template": "error",
"eqeqeq": ["error", "always"],
"quotes": ["error", "single"],
"eol-last": ["error", "always"],
"indent": 2,
"no-console": "error",
"no-extra-semi": "error",
"no-mixed-spaces-and-tabs": "error",
"no-redeclare": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-useless-escape": "error",
"space-in-parens": "error",
"vars-on-top": "error",
"prefer-const": "error",
"template-curly-spacing": "error",
"quote-props": ["error", "as-needed"],
"keyword-spacing": ["error", { "before": true, "after": true } ],
"key-spacing": ["error", { "mode": "strict" }],
"vue/no-mutating-props": "off",
"vue/multi-word-component-names": ["error", {
"ignores": ["Bookshelf", "Shelf"]
}]
}
}
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Auto detect text files and perform LF normalization
* text=auto

# Standard to msysgit
*.doc diff=astextplain
*.docx diff=astextplain
*.pdf diff=astextplain
*.rtf diff=astextplain

# MARC binary
*.mrc binary -linguist-detectable
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

# github: internetarchive
custom: ['https://archive.org/donate']
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Bug Report
description: Create a report to help us improve
labels: ["Type: Bug", "Needs: Triage", "Needs: Lead", "Needs: Breakdown"]
body:
- type: markdown
attributes:
value: |
> [!IMPORTANT]
> Before posting, remove sensitive data, such as passwords, secret keys, session cookies, etc.
- type: textarea
attributes:
label: Problem
description: A short description of the issue, why or how often it may be happening, and its predicted impact.
value: |
<!-- Brief description of issue -->
<!-- Evidence, Screenshots, & Relevant URL(s) -->
- type: textarea
attributes:
label: Reproducing the bug
description: Being as specific as possible, what steps result in triggering this bug?
value: |
1. Go to ...
2. Do ...
* Expected behavior:
* Actual behavior:
- type: textarea
attributes:
label: Context
description: Additional information to help with debugging.
value: |
- Browser (Chrome, Safari, Firefox, etc):
- OS (Windows, Mac, etc):
- Logged in (Y/N):
- Environment (prod, dev, local): prod
- type: textarea
attributes:
label: Breakdown
description: |
Detailed instructions for resolving this issue. Please leave these sections blank for maintainers if you are unsure what to enter
value: |
<!-- Overview of the proposed solution / implementation? -->
#### Requirements Checklist
* [ ]
#### Related files
<!-- Files related to this issue; this is super useful for new contributors who might want to help! If you're not sure, leave this blank; a maintainer will add them. -->
*
#### Stakeholders
<!-- @ tag stakeholders of this feature w/ questions or context as necessary -->
*
<hr>
#### Instructions for Contributors
<!-- Please leave the following reminder section as is to help new contributors and add instructions where necessary -->
- Please [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date **before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) to work on this issue and **each time after** pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! 👍
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/design_proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Design Proposal
about: Propose a design change and request feedback & approval
title: ''
labels: "Type: Design Proposal, Theme: Design, Needs: Triage, Needs: Lead, Needs: Designs, Needs: Design Feedback"
assignees: ''
---

<!-- Staff triage instructions:
- Remove "Needs Design Feedback" if there are no designs yet or new designs welcome
- Remove "Needs: Designs" label if this section is complete
-->

## Description, Patron Story
<!--
- What is the design change?
- Why is this design change necessary?
- Who is it for?
- Constraints or considerations?
-->

## Relevant Designs
<!-- What is the design you want feedback on? Link to figma, screen shots, etc. -->

## Feedback Questions
<!-- Provide a list of feedback questions you want answered by the community; e.g. Is the design...
- thoughts/reactions/feelings
- usability, intuitive v. confusing
- usefulness, necessary/useful/effective at achieving the task
- visual design & aesthetics
- consistency (with website & design system)
- discoverability
- accessibility
-->

## Decisions
<!-- This section should be updated once stakeholders and staff have arrived at a decision -->

### Stakeholders
<!-- @ tag stakeholders for feedback -->


59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Feature Request
description: Propose a change or feature to Open Library
labels: ["Type: Feature Request", "Needs: Triage", "Needs: Lead", "Needs: Breakdown"]
body:
- type: markdown
attributes:
value: |
> [!IMPORTANT]
> Before posting, remove sensitive data, such as passwords, secret keys, session cookies, etc.
- type: textarea
attributes:
label: Proposal
description: Provide a brief summary of the proposed feature and any details, designs, or screenshots that may be relevant.
value: |
<!-- Brief overview of the proposal -->
<!-- Designs / screenshots that may help reviewers understand your proposal -->
- type: textarea
attributes:
label: Justification
description: Help us understand, what problem(s) the proposal addresses, what is the predicted impact and how might it be measured, which audiences are served, are there precedents for the feature, and any other context we might consider.
value: |
<!-- Problem: What problem does this proposal address & for what audience(s)? -->
<!-- Impact: What's the predicted impact, how do we measure, & what does success look like? -->
<!-- Research: Are there any precedents or findings from other projects or studies that support this feature? (link or screenshot if possible) -->
- type: textarea
attributes:
label: Breakdown
description: |
Instructions for completing this feature. Please leave this section blank for leads/maintainers if you are unsure what to enter
value: |
#### Requirements Checklist
<!-- What steps, functional pieces, or requirements need to be met to satisfy the proposal? -->
* [ ]
#### Related files
<!-- Files related to the implementation of feature; useful for good first issues -->
*
#### Stakeholders
<!-- @ tag stakeholders of this feature w/ questions or context as necessary -->
*
<hr>
#### Instructions for Contributors
<!-- Please leave the following reminder section as is to help new contributors and add instructions where necessary -->
Please [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date **before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) to work on this issue and **each time after** pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
- type: markdown
attributes:
value: |
Thanks for showing interest in adding new features to Open Library! 👍
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/post_mortem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Post mortem
about: Create a report to document an outage or event
title: ''
labels: "Type: Post-Mortem, Priority: 0, GJ: Triage Exception"
assignees: ''
---

<!-- IMPORTANT: Before posting, be sure to redact or remove sensitive data, such as passwords, secret keys, session cookies, etc. -->

### Summary

- **What is wrong?**
<!-- When was it noted, what is the issue, what is the scope? -->

<!-- Complete these sections once the problem is resolved. Be brief. -->

- **What caused it?**
<!-- What did investigation reveal to be the cause? -->

- **What fixed it?**

- **What was the impact?**

- **What could have gone better?**
<!-- What about our processes could have been improved? -->

- **Followup actions:**
<!-- Note any resulting changes or decisions -->

### Steps to close
<!-- For instructions, please see: https://github.com/internetarchive/openlibrary/wiki/Disaster-History-Log#how-to -->
1. [ ] Assignment: Is someone assigned to this issue? (notetaker, responder)
2. [ ] Labels: Is there an `Affects:` label applied?
3. [ ] Diagnosis: Add a description and scope of the issue
4. [ ] Updates: As events unfold, is notable **provenance** documented in issue comments? (i.e. useful debug commands / steps / learnings / reference links)
5. [ ] "What caused it?" - please answer in summary
6. [ ] "What fixed it?" - please answer in summary
7. [ ] "Followup actions:" actions added to summary
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/question_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Question & Discussion
about: Propose an answerable question
title: ''
labels: "Type: Question, Needs: Triage, Needs: Lead, Needs: Community Discussion"
assignees: ''
---

<!-- IMPORTANT: Before posting, be sure to redact or remove sensitive data, such as passwords, secret keys, session cookies, etc. -->

### Question
<!-- What question needs to be answered to close this issue? This should be one sentence. -->


### Additional context
<!-- Add any other context or details here. -->

### Issue resolution criteria
<!-- When can this issue be closed? -->


### Stakeholders
<!-- @ tag stakeholders of this bug -->
9 changes: 9 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configurations for the `labeler` GitHub action.
# More details can be found here: https://github.com/actions/labeler?tab=readme-ov-file#usage
"Needs: Submitter Input":
- changed-files:
# When the labeler action's `sync-labels` input it true,
# the `Needs: Submitter Input` label will be removed
# unless the update includes a change to any `dev/null/*` file
# (which should never happen).
- any-glob-to-any-file: dev/null/*
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- What issue does this PR close? -->
Closes #

<!-- What does this PR achieve? [feature|hotfix|fix|refactor] -->


### Technical
<!-- What should be noted about the implementation? -->

### Testing
<!-- Steps for reviewer to reproduce/verify what this PR does/fixes. -->

### Screenshot
<!-- If this PR touches UI, please post evidence (screenshots) of it behaving correctly. -->

### Stakeholders
<!-- @ tag the lead (as labeled on the issue) and other stakeholders -->


<!-- Attribution Disclaimer: By proposing this pull request, I affirm to have made a best-effort and exercised my discretion to make sure relevant sections of this code which substantially leverage code suggestions, code generation, or code snippets from sources (e.g. Stack Overflow, GitHub) have been annotated with basic attribution so reviewers & contributors may have confidence and access to the correct context to evaluate and use this code. -->
Loading

0 comments on commit 94103a9

Please sign in to comment.