-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into community_insights
- Loading branch information
Showing
30 changed files
with
322 additions
and
293 deletions.
There are no files selected for viewing
This file contains 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 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,16 @@ | ||
#!/usr/bin/env bash | ||
# Test Build | ||
|
||
git checkout master | ||
REV=`git describe --always` | ||
rm -rf _public | ||
git clone [email protected]:g0v/landing-page --depth 1 -b staging-pages _public | ||
cd _public | ||
git rm -rf * | ||
cp -R ../web/static/* ./ | ||
git add * | ||
git commit -m "regen for $REV" | ||
git push | ||
cd .. | ||
rm -rf _public | ||
echo "Done." |
This file contains 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 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 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 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 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 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 |
---|---|---|
|
@@ -12,4 +12,5 @@ contact: "聯絡我們" | |
donate: "小額捐款" | ||
coc: "社群守則" | ||
g0vernance: "禮貌大師" | ||
about: "關於我們" | ||
about: "關於我們" | ||
portfolio: "社群成果" |
This file contains 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,16 @@ | ||
RSS_URL = "https://api.g0v.tw/community99/" | ||
|
||
newsDom = document.getElementById("community99") | ||
fetch(RSS_URL) | ||
.then (response) -> | ||
response.json() | ||
.then !(data) -> | ||
items = data.notes | ||
for i from 0 to 2 | ||
el = items[i] | ||
sections = el.sections | ||
ss = "" | ||
for j from 1 to sections.length - 1 | ||
ss += "<span class='tag'>#{sections[j]}</span>" | ||
pp = "<div class='mb-2'><a href=\"#{el.url}\" target=\"\_blank\">#{el.title}</a><div>#{ss}</div></div>" | ||
newsDom.insertAdjacentHTML('beforeend',pp) |
This file contains 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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
window.addEventListener 'load', -> | ||
xhr = new XMLHttpRequest! | ||
xhr.open 'GET', 'https://dashboard.g0v.tw/', true | ||
xhr.onreadystatechange = -> | ||
if xhr.readyState == 4 and xhr.status == 200 | ||
data = JSON.parse xhr.responseText | ||
document.addEventListener 'DOMContentLoaded', -> | ||
fetch 'https://dashboard.g0v.tw/' | ||
.then (response) -> response.json! | ||
.then (data) -> | ||
document.getElementById('loading-text').style.display = 'none' | ||
# console.log data | ||
date = new Date data.create_at | ||
document.getElementById('update-time').querySelector('span').textContent = date.toLocaleString! | ||
document.querySelector('#update-time span').textContent = date.toLocaleString! | ||
|
||
titles = Object.keys data.data | ||
titles.forEach (_title) -> | ||
_data = data.data[_title] | ||
titles.forEach (title) -> | ||
_data = data.data[title] | ||
subtitles = Object.keys _data | ||
subtitles.forEach (_subtitle) -> | ||
document.getElementById(_title + '-' + _subtitle).querySelector('.card-text span').textContent = _data[_subtitle] | ||
xhr.send! | ||
subtitles.forEach (subtitle) -> | ||
# console.log "#{title}-#{subtitle}: #{_data[subtitle]}" | ||
element = document.querySelector "##{title}-#{subtitle} .card-text span" | ||
element?.textContent = _data[subtitle] | ||
.catch (error) -> | ||
console.error 'Error fetching data:', error |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ html(lang="en") | |
base(href="/") | ||
include /modules/library.pug | ||
//-+css("https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css") | ||
+css("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css") | ||
+css("/assets/lib/bootstrap/4.3.1/bootstrap.min.css") | ||
+css("/assets/lib/ldui/ldui.min.css") | ||
+css("/css/index.css") | ||
|
This file contains 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 |
---|---|---|
@@ -1,92 +1,4 @@ | ||
extends /base.pug | ||
block head | ||
+css("/css/dashboard.css") | ||
block body | ||
.w-1024.px-2.px-lg-4.mx-auto.rwd.typeset.heading-contrast | ||
.text-center.my-4.py-4 | ||
img(src="/assets/img/g0v-only.svg",style="width:3em") | ||
h1.display-4.font-weight-bold g0v #[:i18n dashboard:dashboard] | ||
.text-muted g0v dashboard | ||
hr | ||
.text-center | ||
a#update-time.btn.btn-outline-dark(role="button" href="https://dashboard.g0v.tw/all" target="_blank"): :i18n dashboard:current | ||
span n/a | ||
p.text-center#loading-text: :i18n dashboard:loading | ||
.container.py-4 | ||
.row | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#slack-users | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
a(style='font-size: 2em;') + | ||
br | ||
a(href='https://join.g0v.tw/', target='_blank'): :i18n dashboard:slack_user | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#slack-channels | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_1 | ||
br | ||
:i18n dashboard:slack_channels | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#slack-messages | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
a(style='font-size: 2em;') + | ||
br | ||
a(href='https://g0v-slack-archive.g0v.ronny.tw/', target='_blank'): :i18n dashboard:slack_message | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#summit-count | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_2 | ||
br | ||
a(href='https://summit.g0v.tw/', target='_blank'): :i18n dashboard:summit | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#hackathon-count | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_2 | ||
br | ||
a(href='https://jothon.g0v.tw/events/', target='_blank'): :i18n dashboard:hackathon | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#hackathon-proposals | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_1 | ||
br | ||
a(href='https://docs.google.com/spreadsheets/d/1C9-g1pvkfqBJbfkjPB0gvfBbBxVlWYJj6tTVwaI5_x8/', target='_blank'): :i18n dashboard:proposal | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#fanpage-like | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_3 | ||
br | ||
a(href='https://www.facebook.com/g0v.tw', target='_blank'): :i18n dashboard:likes | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#fanpage-follow | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
:i18n dashboard:quantifier_3 | ||
br | ||
a: :i18n dashboard:follows | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#github-repos | ||
.card-body.text-center | ||
p.card-text | ||
span 0 | ||
a(style='font-size: 2em;') + | ||
br | ||
a(href='https://github.com/g0v', target='_blank'): :i18n dashboard:repo | ||
.col-12.col-sm-6.col-lg-4.p-2: .card#10th-count | ||
.card-body.text-center | ||
p.card-text | ||
span 1 | ||
:i18n dashboard:quantifier_2 | ||
br | ||
a(href='https://10th.g0v.tw/', target='_blank'): :i18n dashboard:10th | ||
p.text-center | ||
| #[a(href="https://github.com/g0v/g0v-dashboard" target="_blank") g0v dashboard] | ||
:i18n dashboard:is_opensource | ||
block script | ||
script(src='https://code.jquery.com/jquery-3.6.1.min.js' integrity='sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=' crossorigin='anonymous') | ||
script(src='/js/dashboard.js') | ||
script. | ||
window.location.replace("/portfolio"); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.