Repository navigation
Add root TypeScript exports while preserving explicit stylesheet imports #28
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1eeb777
Initial plan
Copilot 5afe4ff
feat: export root TypeScript constants
Copilot e9ee7aa
export color palette
bklaing2 e606ce9
update color palette to contrast more
bklaing2 160380f
Rename postcss.config.cjs to postcss.config.js
bklaing2 ccdf20d
Update README with new version and import examples
bklaing2 fa741ca
Rename postcss.config.js to postcss.config.cjs
bklaing2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| export declare const OTHER: { | ||
| readonly Other: "gray"; | ||
| readonly Missing: "#555"; | ||
| readonly Unknown: "#555"; | ||
| }; | ||
| export declare const OTHER_DOMAIN: string[]; | ||
| export declare const OTHER_RANGE: ("gray" | "#555")[]; | ||
| export declare const RESOURCE_TYPE: { | ||
| Audiovisual: string; | ||
| Award: string; | ||
| Book: string; | ||
| "Book Chapter": string; | ||
| Collection: string; | ||
| "Computational Notebook": string; | ||
| "Conference Paper": string; | ||
| "Conference Proceeding": string; | ||
| "Data Paper": string; | ||
| Dataset: string; | ||
| Dissertation: string; | ||
| Event: string; | ||
| Image: string; | ||
| Instrument: string; | ||
| "Interactive Resource": string; | ||
| Journal: string; | ||
| "Journal Article": string; | ||
| Model: string; | ||
| "Output Management Plan": string; | ||
| "Peer Review": string; | ||
| "Physical Object": string; | ||
| Preprint: string; | ||
| Project: string; | ||
| Report: string; | ||
| Service: string; | ||
| Software: string; | ||
| Sound: string; | ||
| Standard: string; | ||
| "Study Registration": string; | ||
| Text: string; | ||
| Workflow: string; | ||
| Other: string; | ||
| Missing: "#555"; | ||
| Unknown: "#555"; | ||
| }; | ||
| export declare const RESOURCE_TYPE_DOMAIN: string[]; | ||
| export declare const RESOURCE_TYPE_RANGE: string[]; | ||
| export declare const LICENSE_RANGE: string[]; | ||
| export declare const IDENTIFIER_DOMAIN: string[]; | ||
| export declare const IDENTIFIER_RANGE: string[]; | ||
| export declare const CONTRIBUTOR_DOMAIN: string[]; | ||
| export declare const CONTRIBUTOR_RANGE: string[]; | ||
| export declare const AFFILIATION_DOMAIN: string[]; | ||
| export declare const AFFILIATION_RANGE: string[]; | ||
| export declare const FIELD_OF_SCIENCE_DOMAIN: string[]; | ||
| export declare const FIELD_OF_SCIENCE_RANGE: string[]; | ||
| export declare const REGISTRATION_AGENCY_DOMAIN: string[]; | ||
| export declare const REGISTRATION_AGENCY_RANGE: string[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,219 @@ | ||
| export const OTHER = { | ||
| Other: "gray", | ||
| Missing: "#555", | ||
| Unknown: "#555", | ||
| }; | ||
| export const OTHER_DOMAIN = Object.keys(OTHER); | ||
| export const OTHER_RANGE = Object.values(OTHER); | ||
| export const RESOURCE_TYPE = { | ||
| ...OTHER, | ||
| Audiovisual: "#A6C4FF", | ||
| Award: "#D5AC2B", | ||
| Book: "#6D702B", | ||
| "Book Chapter": "#FFDBA0", | ||
| Collection: "#007A5B", | ||
| "Computational Notebook": "#FFAEAE", | ||
| "Conference Paper": "#8E5BAE", | ||
| "Conference Proceeding": "#AC90BA", | ||
| "Data Paper": "#7C4E47", | ||
| Dataset: "#00B1E2", | ||
| Dissertation: "#B79D99", | ||
| Event: "#E377C2", | ||
| Image: "#FFCCF0", | ||
| Instrument: "#2C3A44", | ||
| "Interactive Resource": "#65716A", | ||
| Journal: "#B1CBB3", | ||
| "Journal Article": "#B5C11F", | ||
| Model: "#6AFFC7", | ||
| "Output Management Plan": "#00B0B9", | ||
| "Peer Review": "#4190DE", | ||
| "Physical Object": "#0B5E8E", | ||
| Preprint: "#89F4F6", | ||
| Project: "#B19BFE", | ||
| Report: "#83A8B9", | ||
| Service: "#D0ECFF", | ||
| Software: "#E25003", | ||
| Sound: "#FE8256", | ||
| Standard: "#EBA45D", | ||
| "Study Registration": "#6DBB5E", | ||
| Text: "#FFE2D7", | ||
| Workflow: "#9F3F34", | ||
| Other: "#C07E62", | ||
| }; | ||
| export const RESOURCE_TYPE_DOMAIN = Object.keys(RESOURCE_TYPE); | ||
| export const RESOURCE_TYPE_RANGE = Object.values(RESOURCE_TYPE); | ||
| // Source: https://r-charts.com/color-palettes/#discrete | ||
| // paletteer_d("ggthemes::Tableau_20") | ||
| export const LICENSE_RANGE = [ | ||
| '#4E79A7', | ||
| '#A0CBE8', | ||
| '#F28E2B', | ||
| '#FFBE7D', | ||
| '#59A14F', | ||
| '#8CD17D', | ||
| '#B6992D', | ||
| '#F1CE63', | ||
| '#499894', | ||
| '#86BCB6', | ||
| '#E15759', | ||
| '#FF9D9A', | ||
| '#79706E', | ||
| '#BAB0AC', | ||
| '#D37295', | ||
| '#FABFD2', | ||
| '#B07AA1', | ||
| '#D4A6C8', | ||
| '#9D7660', | ||
| '#D7B5A6', | ||
| ]; | ||
| export const IDENTIFIER_DOMAIN = [ | ||
| 'DOI', | ||
| ...OTHER_DOMAIN | ||
| ]; | ||
| // Source: https://r-charts.com/color-palettes/#discrete | ||
| // paletteer_d("ggthemes::Classic_Green_Orange_6") | ||
| export const IDENTIFIER_RANGE = [ | ||
| '#7B66D2FF', | ||
| // '#DC5FBDFF', | ||
| // '#94917BFF', | ||
| // '#995688FF', | ||
| // '#D098EEFF', | ||
| // '#D7D5C5FF', | ||
| ...OTHER_RANGE | ||
| ]; | ||
| // ORCID: #2CA02C | ||
| export const CONTRIBUTOR_DOMAIN = [ | ||
| 'Creator', | ||
| 'Data Curator', | ||
| 'Project Leader' | ||
| ]; | ||
| export const CONTRIBUTOR_RANGE = [ | ||
| 'red', | ||
| 'green', | ||
| 'blue' | ||
| ]; | ||
| export const AFFILIATION_DOMAIN = [ | ||
| 'Affiliation 1', | ||
| 'Affiliation 2', | ||
| 'Affiliation 3' | ||
| ]; | ||
| export const AFFILIATION_RANGE = [ | ||
| 'red', | ||
| 'green', | ||
| 'blue' | ||
| ]; | ||
| export const FIELD_OF_SCIENCE_DOMAIN = [ | ||
| 'No Field of Science', | ||
| 'Natural sciences', | ||
| 'Mathematics', | ||
| 'Computer and information sciences', | ||
| 'Physical sciences', | ||
| 'Chemical sciences', | ||
| 'Earth and related environmental sciences', | ||
| 'Biological sciences', | ||
| 'Other natural sciences', | ||
| 'Engineering and technology', | ||
| 'Civil engineering', | ||
| 'Electrical engineering, electronic engineering, information engineering', | ||
| 'Mechanical engineering', | ||
| 'Chemical engineering', | ||
| 'Materials engineering', | ||
| 'Medical engineering', | ||
| 'Environmental engineering', | ||
| 'Environmental biotechnology', | ||
| 'Industrial biotechnology', | ||
| 'Nano-technology', | ||
| 'Other engineering and technologies', | ||
| 'Medical and health sciences', | ||
| 'Basic medicine', | ||
| 'Clinical medicine', | ||
| 'Health sciences', | ||
| 'Medical biotechnology', | ||
| 'Other medical sciences', | ||
| 'Agricultural sciences', | ||
| 'Agriculture, forestry, and fisheries', | ||
| 'Animal and dairy science', | ||
| 'Veterinary science', | ||
| 'Agricultural biotechnology', | ||
| 'Other agricultural sciences', | ||
| 'Social sciences', | ||
| 'Psychology', | ||
| 'Economics and business', | ||
| 'Educational sciences', | ||
| 'Sociology', | ||
| 'Law', | ||
| 'Political science', | ||
| 'Social and economic geography', | ||
| 'Media and communications', | ||
| 'Other social sciences', | ||
| 'Humanities', | ||
| 'History and archaeology', | ||
| 'Languages and literature', | ||
| 'Philosophy, ethics and religion', | ||
| 'Arts (arts, history of arts, performing arts, music)', | ||
| 'Other humanities' | ||
| ]; | ||
| export const FIELD_OF_SCIENCE_RANGE = [ | ||
| '#d9d9d9', | ||
| '#ffffb3', | ||
| '#ccebc5', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#8dd3c7', | ||
| '#80b1d3', | ||
| '#b3de69', | ||
| '#fdb462', | ||
| '#fccde5', | ||
| '#ccebc5', | ||
| '#ccebc5', | ||
| '#ffed6f' | ||
| ]; | ||
| export const REGISTRATION_AGENCY_DOMAIN = [ | ||
| 'No Registration Agency', | ||
| 'Airiti', | ||
| 'CNKI', | ||
| 'Crossref', | ||
| 'DataCite', | ||
| 'ISTIC', | ||
| 'JaLC', | ||
| 'KISTI', | ||
| 'mEDRA', | ||
| 'OP' | ||
| ]; | ||
| export const REGISTRATION_AGENCY_RANGE = [ | ||
| '#d9d9d9', | ||
| '#ffffb3', | ||
| '#ccebc5', | ||
| '#E81A31', | ||
| '#159DEA', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#8dd3c7', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#80b1d3', | ||
| '#8dd3c7', | ||
| '#80b1d3', | ||
| '#b3de69', | ||
| '#fdb462', | ||
| '#fccde5', | ||
| '#ccebc5', | ||
| '#ccebc5', | ||
| '#ffed6f' | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { RESOURCE_TYPE, RESOURCE_TYPE_DOMAIN, RESOURCE_TYPE_RANGE, LICENSE_RANGE, IDENTIFIER_DOMAIN, IDENTIFIER_RANGE, CONTRIBUTOR_DOMAIN, CONTRIBUTOR_RANGE, AFFILIATION_DOMAIN, AFFILIATION_RANGE, FIELD_OF_SCIENCE_DOMAIN, FIELD_OF_SCIENCE_RANGE, REGISTRATION_AGENCY_DOMAIN, REGISTRATION_AGENCY_RANGE, OTHER, OTHER_DOMAIN, OTHER_RANGE, } from "./colorPalettes"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.