Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
62e47b5
0.0.4
calummacuisdean Feb 21, 2020
da011e4
encoded secret file
calummacuisdean Feb 21, 2020
c6e429d
fixed map layer
calummacuisdean Feb 24, 2020
a900b36
settings
calummacuisdean Feb 24, 2020
36d8923
error fix
calummacuisdean Mar 6, 2020
4b992b3
travis update
calummacuisdean Mar 24, 2020
fbf7b1e
bugfix
calummacuisdean Mar 24, 2020
77324a1
update test
tonicblue Apr 6, 2020
8ab878c
update test
tonicblue Apr 6, 2020
cf09259
update test
tonicblue Apr 6, 2020
578d695
update test
tonicblue Apr 6, 2020
26d12e3
update test
tonicblue Apr 6, 2020
2c19c82
Removing build from gitignore
tonicblue Apr 7, 2020
cd0a982
Adding current data to task metadata for typeahead component
tonicblue Apr 7, 2020
914b0e6
bugfix
calummacuisdean Jul 16, 2020
664a340
Merge branch 'development' of https://github.com/scvodigital/common i…
calummacuisdean Jul 16, 2020
88cfebb
deploy
calummacuisdean Jul 16, 2020
cf6f6fd
update
calummacuisdean Jul 16, 2020
6523492
deploy?
calummacuisdean Jul 16, 2020
f35b786
new bar options
calummacuisdean Jul 24, 2020
ed42b94
Adding settings file to turn off deno
tonicblue Sep 15, 2020
1eced4c
Merge branch 'development' of https://github.com/scvodigital/common i…
tonicblue Sep 15, 2020
dbde175
Added FormBackup component
tonicblue Sep 15, 2020
9ac9539
Fixed FormBackup bug
tonicblue Sep 15, 2020
8b32874
Fixed FormBackup bug
tonicblue Sep 15, 2020
ec379ca
Fixed FormBackup bug
tonicblue Sep 15, 2020
630368d
Improved FormBackup
tonicblue Sep 15, 2020
b4daff3
Improved FormBackup
tonicblue Sep 15, 2020
c03ebdf
Improved FormBackup
tonicblue Sep 15, 2020
2328c6f
Added restore stuff to FormBackup
tonicblue Sep 15, 2020
d68d7e6
Improved FormBackup
tonicblue Sep 15, 2020
58a0445
Fixing restore link generation
tonicblue Sep 15, 2020
6377978
improving form restore
tonicblue Sep 30, 2020
454dc0e
improving form restore
tonicblue Sep 30, 2020
d3a9b8d
improving form restore
tonicblue Sep 30, 2020
c3500c8
updated address
calummacuisdean Oct 6, 2020
9a3e5cf
Merge branch 'development' of https://github.com/scvodigital/common i…
calummacuisdean Oct 6, 2020
636e9e9
wee fix
calummacuisdean Oct 6, 2020
2c50276
updated menu items
calummacuisdean Oct 20, 2020
d1252d9
updated link bar
calummacuisdean Oct 27, 2020
8b93148
updated link bar
calummacuisdean Oct 27, 2020
437ce65
Fixing deploy script for local deployments
tonicblue Nov 4, 2020
56b9f4b
Merge branch 'development' of https://github.com/scvodigital/common i…
tonicblue Nov 4, 2020
87c94f8
update domain
calummacuisdean Dec 18, 2020
ad27984
Merge branch 'development' of https://github.com/scvodigital/common i…
calummacuisdean Dec 18, 2020
602a972
Added another method of redrawing a form for form backup recoverey
tonicblue Jan 25, 2021
c25b011
Merge branch 'development' of https://github.com/scvodigital/common i…
tonicblue Jan 25, 2021
9546bc1
Fixing form recovery issue
tonicblue Jan 25, 2021
f0e1bea
updated url
calummacuisdean Apr 6, 2021
64d72e5
Merge branch 'development' of https://github.com/scvodigital/common i…
calummacuisdean Apr 6, 2021
6aaac69
Adding recovery link feature to FormBackup
tonicblue Apr 16, 2021
7567553
Merge branch 'development' of https://github.com/scvodigital/common i…
tonicblue Apr 16, 2021
6a67f80
Fixing bug in FormBackup
tonicblue Apr 16, 2021
55c5b3b
More form backup fixes
tonicblue Apr 16, 2021
e3c1994
margins
calummacuisdean May 26, 2021
d184a9c
Merge branch 'development' of https://github.com/scvodigital/common i…
calummacuisdean May 26, 2021
7e4ddd2
url fix
calummacuisdean Aug 9, 2021
f326b25
link bar fixes
calummacuisdean Jan 31, 2022
24543e0
Fixing location search sort
tonicblue Mar 28, 2022
bf4bcc2
removing auto sort on location
tonicblue Mar 28, 2022
0f4aa09
border radius changes
calummacuisdean Jun 29, 2022
d424ded
links
calummacuisdean Aug 22, 2022
b15b1d3
revert
calummacuisdean Aug 24, 2022
ebe5daa
new item
calummacuisdean Aug 25, 2022
28ffc4c
new link
calummacuisdean Nov 2, 2022
a43ecbd
link
calummacuisdean Dec 14, 2022
5ace275
new links
calummacuisdean Jan 18, 2023
eb0ff68
updated links
calummacuisdean Mar 14, 2023
3904d2b
updated links
calummacuisdean May 16, 2023
15d0a38
updated links
calummacuisdean May 16, 2023
2b1709c
tidy up
calummacuisdean Jul 13, 2023
ddb131e
fixes
calummacuisdean Jul 18, 2023
f0a8583
update class
calummacuisdean Jun 19, 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
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,4 @@ typings/
.next

# secrets
secret.json

# build
build
secret.json
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": false
}
Binary file modified build/component-manager.js
Binary file not shown.
Binary file modified build/component-manager.js.map
Binary file not shown.
Binary file added build/components/form-backup.d.ts
Binary file not shown.
Binary file modified build/components/typeahead.d.ts
Binary file not shown.
21 changes: 12 additions & 9 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,26 @@ elif [ $LOCAL = $REMOTE ]; then
sed -i.bak '/before_install:/,/install:/{//p;d;}' .travis.yml
rm .travis.yml.bak
echo -e "${PINK}STEP 2 of 7: Encrypting secret.json${NC}"
travis encrypt-file secret.json --add --force
travis encrypt-file secret.json --add --force --pro
echo -e "${PINK}STEP 3 of 7: Committing encrypted secret and updated Travis config to Git${NC}"
git add secret.json.enc .travis.yml
git commit -m "Updated secret.json"
echo -e "${PINK}STEP 4 of 7: Bumping package version number and generating Git tag${NC}"
npm version patch
echo -e "${PINK}STEP 5 of 7: Pushing all previous changes to 'development' branch${NC}"
git push
echo -e "${PINK}STEP 6 of 7: Bringing 'production' branch up-to-date with 'development'${NC}"
git checkout production
git pull
git pull origin development
git push
echo -e "${PINK}STEP 7 of 7: Navigating back to 'development'${NC}"
git checkout development
# echo -e "${PINK}STEP 6 of 7: Bringing 'production' branch up-to-date with 'development'${NC}"
echo -e "${PINK}STEP 6 of 7: ???"
# git checkout production
# git pull
# git pull origin development
# git push
# echo -e "${PINK}STEP 7 of 7: Navigating back to 'development'${NC}"
# git checkout development
echo -e "${PINK}STEP 7 of 7: Running deployment script"
npm run publish
echo -e "${PINK}FINISHED LOCAL DEPLOYMENT TASKS${NC}"
echo -e "${PINK}Navigate to https://travis-ci.org/scvodigital/$REPO to watch your deployment in the cloud!${NC}"
# echo -e "${PINK}Navigate to https://travis-ci.com/github/scvodigital/$REPO to watch your deployment in the cloud!${NC}"
elif [ $LOCAL = $BASE ]; then
echo -e "${RED}CANNOT DEPLOY: Need to pull${NC}"
elif [ $REMOTE = $BASE ]; then
Expand Down
38 changes: 28 additions & 10 deletions old/common-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $mobile-landscape-breakpoint: 959px;
$desktop-landscape-breakpoint: 1280px;

@import url('//cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css');
@import url('//fonts.googleapis.com/css?family=Montserrat:500,600,700|Open+Sans:400,500,600');
@import url('//fonts.googleapis.com/css?family=Montserrat:500,600,700,800|Open+Sans:400,500,600');

html {
overflow-y: scroll;
Expand Down Expand Up @@ -763,7 +763,13 @@ a:hover {
.provider-google.mdc-chip--selected,
.provider-google.mdc-chip--selected:hover,
#continue-with-google {
background-color: #DB3633 !important;
background-color: #4285F4 !important;
}
.chip.bg-google:focus,
.chip.bg-google:hover,
#continue-with-google:focus,
#continue-with-google:hover {
background-color: #3367d6 !important;
}
.provider-twitter.mdc-chip--selected,
.provider-twitter.mdc-chip--selected:hover,
Expand All @@ -773,7 +779,18 @@ a:hover {
.provider-facebook.mdc-chip--selected,
.provider-facebook.mdc-chip--selected:hover,
#continue-with-facebook {
background-color: #2C5797 !important;
background-color: #17A9FD !important;
}
.social .fab.fa-facebook {
color: #17A9FD !important;
line-height: 1rem;
font-size: 1.05rem;
}
.chip.bg-facebook:focus,
.chip.bg-facebook:hover,
#continue-with-facebook:focus,
#continue-with-facebook:hover {
background-color: #0165E1 !important;
}

.noselect {
Expand Down Expand Up @@ -985,7 +1002,7 @@ a {
background-color: white;
padding: $unit/3 $unit/2;
box-sizing: border-box;
border-radius: 2px;
border-radius: 4px;
a .mdc-list-item__graphic {
margin-right: $unit/2;
}
Expand Down Expand Up @@ -1057,7 +1074,7 @@ a {
.mdc-card.mini,
.mdc-card.gist,
.mdc-card.search-result {
border-radius: 2px;
border-radius: 7.333px;
position: relative;
z-index: 1;
width: 100%;
Expand Down Expand Up @@ -1228,6 +1245,7 @@ a {
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
will-change: opacity;
}
.mdc-card.list:hover::after,
.mdc-card.mini:hover::after,
Expand Down Expand Up @@ -1281,7 +1299,7 @@ a {
padding: $unit*(2/3) $unit;
color: white;
font-weight: 600;
border-radius: 2px 2px 0 0;
border-radius: 7.333px 7.333px 0 0;
}
.mdc-card.mini {
.panel-heading {
Expand All @@ -1300,7 +1318,7 @@ a {
.panel-heading {
margin: $unit/2 0 $unit;
padding: $unit/2;
border-radius: 2px;
border-radius: 7.333px;
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}
.mdc-card__info--content-secondary-title {
Expand Down Expand Up @@ -1346,7 +1364,7 @@ a {
}
}
#content-primary-tab-bar {
border-radius: 2px 2px 0 0;
border-radius: 7.333px 7.333px 0 0;
.mdc-tab {
flex: 1;
line-height: $header-lower-height;
Expand All @@ -1360,7 +1378,7 @@ a {
display: block;
}
.content-primary-info-container {
border-radius: 2px;
border-radius: 7.333px;
background-color: white;
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
}
Expand Down Expand Up @@ -1827,7 +1845,7 @@ body.shortlist {
padding: 0 0 $unit;
.mdc-card__media--content-secondary {
line-height: 1;
border-radius: 2px;
border-radius: 7.333px;
padding: $unit/2;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}
Expand Down
10 changes: 5 additions & 5 deletions old/components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export class MapComponent {
trackResize: true
}).setView([initialLat, initialLng], initialZoom);
var osmAttrib = 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
L.tileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png', {
attribution: osmAttrib,
minZoom: 6,
maxZoom: 18,
opacity: 0.8
L.tileLayer('https://c.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: osmAttrib,
minZoom: 5,
maxZoom: 17,
opacity: 0.9
}).addTo(this.map);
L.control.scale().addTo(this.map);

Expand Down
35 changes: 19 additions & 16 deletions old/templates/scvo-bar.hbs
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
<nav class="scvo-link-bar">
<div class="container text-right">
<ul>
<li>
<a class="text-link{{#if (contains @root.request.url.hostname 'scvo.')}} active{{/if}}" href="{{#unless (contains @root.request.url.hostname 'scvo.')}}https://scvo.org{{else}}/{{/unless}}" title="Scottish Council for Voluntary Organisations">SCVO</a>
<li class="brand-scvo">
<a class="text-link" href="https://scvo.scot">SCVO</a>
</li>
<li>
<a class="text-link{{#ifAny (contains @root.request.url.hostname 'fundingscotland.') (contains @root.request.url.hostname 'fs-')}} active{{/ifAny}}" href="https://fundingscotland.com" title="Funding Scotland - Find funding for your charity, community group or social enterprise">Funding Scotland</a>
<li class="brand-scvo">
<a class="text-link" href="https://scvo.scot/membership">Membership</a>
</li>
<li>
<a class="text-link{{#if (contains @root.request.url.hostname 'goodmoves.')}} active{{/if}}" href="https://goodmoves.com" title="Goodmoves - Charity and voluntary sector recruitment">Goodmoves</a>
<li class="brand-gathering">
<a class="text-link" href="https://scvo.scot/the-gathering" title="">Gathering</a>
</li>
<li>
<a class="text-link{{#if (contains @root.request.url.hostname 'thirdforcenews.')}} active{{/if}}" href="https://thirdforcenews.org.uk" title="Third Force News - The voice of Scotland's third sector">TFN</a>
<li class="brand-awards">
<a class="text-link" href="https://scvo.scot/scottish-charity-awards" title="">Charity Awards</a>
</li>
<li>
<a class="text-link" href="{{#unless (contains @root.request.url.hostname 'scvo.')}}https://scvo.org{{/unless}}/scottish-charity-awards" title="Scottish Charity Awards - Celebrating the amazing work that people within charities and community groups do every day">Scottish Charity Awards</a>
<li class="brand-fundingscotland">
<a class="text-link" href="https://funding.scot">Funding Scotland</a>
</li>
{{!-- <li>
<a class="text-link" href="{{#unless (contains @root.request.url.hostname 'scvo.')}}https://scvo.org{{/unless}}/the-gathering-2020" title="The Gathering - Scotland's largest event for charities, social enterprises and voluntary organisations">The Gathering</a>
</li> --}}
<li>
<a class="pull-right brand-logo no-ext no-underline" href="{{#unless (contains @root.request.url.hostname 'scvo.')}}https://scvo.org{{else}}/{{/unless}}" title="Scottish Council for Voluntary Organisations">
<li class="brand-goodmoves">
<a class="text-link{{#if (contains @root.request.url.hostname 'goodmoves.')}} active{{/if}}" href="https://goodmoves.org">Goodmoves</a>
</li>
<li class="brand-tfn">
<a class="text-link" href="https://tfn.scot" title="Third Force News">TFN</a>
</li>
<li class="brand-scvo l-margin r-margin-full">
<a class="pull-right brand-logo no-ext no-underline" href="https://scvo.scot">
<img src="{{~>asset_url url='images/logos/scvo-secondary.svg'}}" />
</a>
</li>
</ul>
</div>
</nav>
</nav>
10 changes: 9 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scvo/common",
"version": "0.0.3",
"version": "0.0.4",
"description": "Common JS components, CSS, and Templates used across our sites",
"main": "build/component-manager.js",
"scripts": {
Expand Down Expand Up @@ -53,6 +53,7 @@
"bristles": "0.0.24",
"firebase": "^7.0.0",
"jquery": "^3.4.1",
"jquery-deserialize": "^2.0.0-rc1",
"json-6": "^1.0.2",
"json-logic-js": "^1.2.2",
"leaflet": "^1.5.1",
Expand Down
9 changes: 9 additions & 0 deletions quick
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

npm run build
git add .
git commit -m "$2"
git push
cd "../$1"
npm i --save-dev https://github.com/scvodigital/common.git
cd ../common
Binary file added secret.json.enc
Binary file not shown.
4 changes: 3 additions & 1 deletion src/component-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { LeafletMap } from './components/leaflet-map';
import { Typeahead } from './components/typeahead';
import { TasksTrigger } from './components/tasks-trigger';
import { TaskRunner } from './task-runner/task-runner';
import { FormBackup } from './components/form-backup';
import { Bristles } from 'bristles';

require('./components.scss');
Expand All @@ -12,7 +13,8 @@ export class ComponentManager {
components: { [name: string]: any } = {
LeafletMap,
Typeahead,
TasksTrigger
TasksTrigger,
FormBackup
};
componentRegistry: ComponentRegistry = {};
clock = window.requestAnimationFrame(this.tick.bind(this));
Expand Down
Loading