Skip to content

Commit

Permalink
finished changing all icons
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfang97 committed Oct 13, 2023
1 parent 1eaa1e1 commit 5716273
Show file tree
Hide file tree
Showing 19 changed files with 165 additions and 51 deletions.
2 changes: 2 additions & 0 deletions frontend/components/Admin/Registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,5 @@ const fetcher = (url, token, dispatch) =>
error.fullUrl = url;
dispatch(addError(error));
});

// const replaceURL = (regi)
40 changes: 38 additions & 2 deletions frontend/components/Viewing/PageJSON/IconsMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,25 @@ import {
faEdit,
faVirusSlash,
faTable,
faDirections
faDirections,
faShapes,
faPeopleArrows,
faCompass,
faUser,
faPlusSquare,
faExchangeAlt,
faArchive,
faUserSlash,
faLanguage,
faBuilding,
faFile,
faStreetView,
faMapSigns,
faGlobe,
faCut,
faMapPin,
faSort,
faChild
} from '@fortawesome/free-solid-svg-icons';

const IconsMap = {
Expand Down Expand Up @@ -61,7 +79,25 @@ const IconsMap = {
faEdit,
faVirusSlash,
faTable,
faDirections
faDirections,
faShapes,
faPeopleArrows,
faCompass,
faUser,
faPlusSquare,
faExchangeAlt,
faArchive,
faUserSlash,
faLanguage,
faBuilding,
faFile,
faStreetView,
faMapSigns,
faGlobe,
faCut,
faMapPin,
faSort,
faChild
};

export default IconsMap;
8 changes: 4 additions & 4 deletions frontend/components/Viewing/PageJSON/Types/Component3.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
]
},
{
"icon": "faVials",
"icon": "faThLarge",
"title": "Features",
"rootPredicate": "sbol:hasFeature",
"sections": [
Expand All @@ -93,7 +93,7 @@
]
},
{
"icon": "faVials",
"icon": "faHandshake",
"title": "Interactions",
"rootPredicate": "sbol:hasInteraction",
"sections": [
Expand Down Expand Up @@ -135,7 +135,7 @@
{
"title": "Interfaces",
"rootPredicate": "sbol:hasInterface",
"icon": "faVials",
"icon": "faStickyNote",
"sections": [
{
"title": "Interface",
Expand All @@ -155,7 +155,7 @@
{
"title": "Models",
"rootPredicate": "sbol:hasModel",
"icon": "faVials",
"icon": "faBuilding",
"sections": [
{
"title": "Model",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"title": "In Child Of",
"rootPredicate": "sbol:inChildOf",
"infoLink": "https://sbols.org/v3#inChildOf",
"icon": "faVials",
"icon": "faChild",
"sections": [
{
"title": "Extra Work",
Expand All @@ -35,7 +35,7 @@
"title": "Refers To",
"rootPredicate": "sbol:refersTo",
"infoLink": "https://sbols.org/v3#refersTo",
"icon": "faVials",
"icon": "faUserTag",
"sections": [
{
"title": "Reference",
Expand Down
76 changes: 76 additions & 0 deletions frontend/components/Viewing/PageJSON/Types/Constraint3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"type": "http://sbols.org/v3#Constraint",
"prefixes": [
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>",
"PREFIX dcterms: <http://purl.org/dc/terms/>",
"PREFIX dc: <http://purl.org/dc/elements/1.1/>",
"PREFIX sbh: <http://wiki.synbiohub.org/wiki/Terms/synbiohub#>",
"PREFIX prov: <http://www.w3.org/ns/prov#>",
"PREFIX sbol: <http://sbols.org/v3#>",
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>",
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",
"PREFIX purl: <http://purl.obolibrary.org/obo/>"
],
"metadata": [
{
"title": "Subject",
"rootPredicate": "sbol:subject",
"icon": "faUser",
"sections": [
{
"title": "Subject",
"predicates": [
"sbol:displayId"
],
"link": "$<subjectLink>"
},
{
"title": "subjectLink",
"predicates":[],
"hide": true
}
]
},
{
"title": "Restriction",
"rootPredicate": "sbol:restriction",
"icon": "faUserSlash",
"sections": [
{
"title": "Restriction",
"stripAfter": "#",
"link": "$<restrictionLink>",
"predicates": [
]
},
{
"title": "restrictionLink",
"predicates": [],
"hide": true
}
]
},
{
"title": "Object",
"rootPredicate": "sbol:object",
"icon": "faArchive",
"sections": [
{
"title": "Object",
"predicates": ["sbol:displayId"],
"link": "$<objectLink>"
},
{
"title": "objectLink",
"predicates":[],
"hide": true
}
]
}
],
"tables": [
],
"pages": [
"Other Properties"
]
}
12 changes: 6 additions & 6 deletions frontend/components/Viewing/PageJSON/Types/Feature3.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"title": "Orientation",
"rootPredicate": "sbol:orientation",
"infoLink": "https://sbols.org/v3#orientation",
"icon": "faVials",
"icon": "faCompass",
"sections": [
{
"title": "Extra Work",
Expand All @@ -58,7 +58,7 @@
{
"title": "SubComponents",
"rootPredicate": "sbol:SubComponent",
"icon": "faUserPlus",
"icon": "faPuzzlePiece",
"sections": [
{
"title": "Role Integrations",
Expand All @@ -78,7 +78,7 @@
{
"title": "Component References",
"rootPredicate": "sbol:ComponentReference",
"icon": "faVials",
"icon": "faUserTag",
"sections": [
{
"title": "Sequence",
Expand All @@ -97,7 +97,7 @@
{
"title": "Local SubComponents",
"rootPredicate": "sbol:LocalSubComponents",
"icon": "faVials",
"icon": "faStreetView",
"sections": [
{
"title": "Types",
Expand All @@ -117,7 +117,7 @@
{
"title": "Externally Defined",
"rootPredicate": "sbol:ExternallyDefined",
"icon": "faVials",
"icon": "faPeopleArrows",
"sections": [
{
"title": "Types",
Expand Down Expand Up @@ -150,7 +150,7 @@
{
"title": "Sequence Features",
"rootPredicate": "sbol:SequenceFeature",
"icon": "faVials",
"icon": "faDna",
"sections": [
{
"title": "Sequence Feature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"metadata": [
{
"title": "Built",
"icon": "faVials",
"icon": "faShapes",
"rootPredicate": "sbol:built",
"sections": [
{
Expand Down
8 changes: 4 additions & 4 deletions frontend/components/Viewing/PageJSON/Types/Interaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"title": "Types",
"rootPredicate": "sbol:type",
"icon": "faVials",
"icon": "faPalette",
"sections": [
{
"title": "Extra Work",
Expand All @@ -37,7 +37,7 @@
{
"title": "Participations",
"rootPredicate": "sbol:participation",
"icon": "faVials",
"icon": "faPeopleArrows",
"sections": [
{
"title": "Participation",
Expand Down Expand Up @@ -80,8 +80,8 @@
},
{
"title": "Measures",
"rootPredicate": "sbol:participation",
"icon": "faVials",
"rootPredicate": "sbol:measure",
"icon": "faRuler",
"sections": [

]
Expand Down
16 changes: 8 additions & 8 deletions frontend/components/Viewing/PageJSON/Types/Location.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"title": "Orientation",
"rootPredicate": "sbol:orientation",
"icon": "faVials",
"icon": "faCompass",
"sections": [
{
"title": "Extra Work",
Expand All @@ -41,7 +41,7 @@
{
"title": "Range",
"rootPredicate": "sbol:range",
"icon": "faVials",
"icon": "faGlobe",
"sections": [
{
"title": "Start",
Expand All @@ -68,7 +68,7 @@
{
"title": "Cut",
"rootPredicate": "sbol:Cut",
"icon": "faVials",
"icon": "faCut",
"sections": [
{
"title": "At",
Expand All @@ -90,14 +90,16 @@
{
"title": "Generic Location",
"rootPredicate": "sbol:GenericLocation",
"icon": "faVials",
"icon": "faMapMarkerAlt",
"sections": [
{
"title": "Extra Work",
"stripAfter": "#",
"predicates": []
},
{
}
]
},
{
"title": "Sequences",
"rootPredicate": "sbol:sequence",
"icon": "faDna",
Expand All @@ -114,8 +116,6 @@
}
]
}
]
}
],
"pages": [
"Details",
Expand Down
10 changes: 5 additions & 5 deletions frontend/components/Viewing/PageJSON/Types/Location3.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"title": "Orientation",
"rootPredicate": "sbol:orientation",
"icon": "faVials",
"icon": "faCompass",
"sections": [
{
"title": "Extra Work",
Expand All @@ -33,7 +33,7 @@
{
"title": "Order",
"rootPredicate": "sbol:order",
"icon": "faVials",
"icon": "faSort",
"sections": [
{
"title": "Extra Work",
Expand Down Expand Up @@ -65,7 +65,7 @@
{
"title": "Range",
"rootPredicate": "sbol:range",
"icon": "faVials",
"icon": "faGlobe",
"text": "$<Start>, $<End>",
"link": "$<rangeLink>",
"sections": [
Expand Down Expand Up @@ -93,7 +93,7 @@
{
"title": "Cut",
"rootPredicate": "sbol:Cut",
"icon": "faVials",
"icon": "faCut",
"sections": [
{
"title": "At",
Expand All @@ -113,7 +113,7 @@
{
"title": "Entire Sequence",
"rootPredicate": "sbol:EntireSequence",
"icon": "faVials",
"icon": "faMapMarkerAlt",
"sections": [
{
"title": "Extra Work",
Expand Down
Loading

0 comments on commit 5716273

Please sign in to comment.