-
Notifications
You must be signed in to change notification settings - Fork 32
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
Site refactor #52
Merged
Merged
Site refactor #52
Changes from 3 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
30fa35d
Move html to content
olizilla 93bb728
Fix head.html partial
olizilla f539b31
Browserify the JS.
olizilla 5fc4750
Pull src JS to top level. Fix html script links
olizilla ad38972
Modularise the JS
olizilla 4e59cc8
Add generated js to .gitignore
olizilla d962edf
Pull the topbar into a partial
olizilla 5d21980
Merge pull request #1 from tableflip/browserify
olizilla 5f95647
Merge pull request #3 from tableflip/topbar-partial
olizilla 56ff92f
Pulls implementation table into partial
olizilla 48f5635
WIP Builds impls html from data
olizilla d83b79f
Impls page works as before, with content created at build time.
olizilla df5ee56
Fix homepage animation
olizilla 2e2e4c2
Remove debug code
olizilla 963d50c
Merge pull request #4 from tableflip/data-driven-impls
olizilla fe26e56
Refactor bundles.json
olizilla 8f4bc30
Data driven bundles page
olizilla 1d07ffb
Merge pull request #5 from tableflip/data-driven-bundles
olizilla f940f09
Fix line endings in .less files
olizilla 305b59f
Remove generated css
olizilla 6af1ff4
Fix less imports. Add `build:css` target
olizilla 4f9645f
Merge pull request #6 from tableflip/css-build-process
olizilla ed3f95d
Port impls section on homepage to hugo
olizilla bc7a76d
Merge pull request #7 from tableflip/fix-impls-on-homepage
olizilla 990e505
WIP on converting splash to css
olizilla f890e34
WIP
olizilla 3c5e2a7
WIP on splash... it lives!
olizilla 11df3d1
Staggared fadez
olizilla 02d90ea
WIP on headline animation
olizilla a278814
Use new css only splash animation.
olizilla 09af244
Remove splash impl research notes
olizilla c490005
Merge pull request #8 from tableflip/splash
olizilla c186a77
Pull in contributors data at build time
olizilla dca419e
Fix pause on hover. Remove unused less.
olizilla 8e3bb00
WIP on build process
olizilla 3b9e9a0
Remove unused css, add onerror handler for missing images
olizilla fdaa741
Merge pull request #9 from tableflip/contributors
olizilla 992a86f
Add minify steps
olizilla 9d2aec9
build step to create prod site
olizilla e653237
Merge remote-tracking branch 'origin/move-content' into build-process
olizilla 5fffc3b
Fix peer-routing.svg casing
olizilla 8f097ec
Makefile based dev is GO!
olizilla cbd9c1c
Merge remote-tracking branch 'origin/move-content' into build-process
olizilla 7d1a31a
make dev-stop sounds better
olizilla 1b116e0
Pull README up to spec
olizilla 1c2a6de
Add versions dir
olizilla eec7cf9
Merge pull request #10 from tableflip/build-process
olizilla 33daf62
Fix publish-to-domain to use dnslink script
olizilla a35b96b
Require DOMAIN as explicit arg
olizilla d9ca2a4
Merge pull request #11 from tableflip/dnslink
olizilla 68b36ad
Speed up contributor image loading
olizilla d7a5894
Decrease contributor loading delay to 50ms
olizilla 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 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ public | |
static/js/*.js | ||
static/css/*.css | ||
dev.pid | ||
auth.token |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# Usage: | ||
# DNSIMPLE_TOKEN=<token> ./dnslink.sh <domain> <hash> | ||
# | ||
# Example: | ||
# DNSIMPLE_TOKEN=trustno1 ./dnslink.sh website.protocol.ai Qmfoobar | ||
# | ||
# Dependencies: | ||
# - bash | ||
# - curl | ||
# - jq | ||
# | ||
# From: | ||
# https://raw.githubusercontent.com/ipfs/infrastructure/master/scripts/dnslink.sh | ||
# | ||
|
||
set -e | ||
|
||
ZONE="$1" | ||
HASH="$2" | ||
|
||
([ ! -z "$DNSIMPLE_TOKEN" ] && [ ! -z "$ZONE" ] && [ ! -z "$HASH" ]) \ | ||
|| (echo "Usage: DNSIMPLE_TOKEN=<token> ./dnslink.sh <domain> <hash>" && exit 1) | ||
|
||
RECORD_NAME="_dnslink" | ||
RECORD_TTL=120 | ||
|
||
record_id=$( | ||
curl -s "https://api.dnsimple.com/v1/domains/$ZONE/records?name=$RECORD_NAME&type=TXT" \ | ||
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \ | ||
-H "Accept: application/json" \ | ||
| jq -r '.[].record.id' | ||
) | ||
|
||
if [ -z "$record_id" ]; then | ||
curl -v -s -X POST "https://api.dnsimple.com/v1/domains/$ZONE/records" \ | ||
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type: application/json" \ | ||
-d "{\"record\":{ \"name\":\"$RECORD_NAME\", \"record_type\":\"TXT\", \"content\":\"dnslink=/ipfs/$HASH\", \"ttl\":\"$RECORD_TTL\" }}" \ | ||
| jq -r '.record' \ | ||
&& printf "\\nIt looks like we're good: https://ipfs.io/ipns/$ZONE\\n" | ||
else | ||
curl -v -s -X PUT "https://api.dnsimple.com/v1/domains/$ZONE/records/$record_id" \ | ||
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type: application/json" \ | ||
-d "{\"record\":{ \"content\":\"dnslink=/ipfs/$HASH\", \"name\":\"$RECORD_NAME\", \"ttl\":\"$RECORD_TTL\" }}" \ | ||
| jq -r '.record' \ | ||
&& printf "\\nIt looks like we're good: https://ipfs.io/ipns/$ZONE\\n" | ||
fi |
This file was deleted.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgierth will like this :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually let's move the token file to something like
$HOME/.protocol/dnsimple.token
-- just so it's never underneath the repo directory and there's no chance of ever accidentally committing it.You can just assume that people put it there out-of-band (dnslink.sh will fail on its own).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgierth will move this as a separate issue and for a future sprint since last sprint ran out of time.