-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from metaory/master
🔥 Secret Gist support + Refactors
- Loading branch information
Showing
59 changed files
with
1,769 additions
and
7,140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,70 @@ | ||
# | ||
# ▀▄▀ █ █▀▀ █▀█ | ||
# █░█ █ █▄▄ █▄█ | ||
# ▁▁▁▁▁▁▁▁v0.7▁ | ||
# | ||
# https://github.com/metaory/xico | ||
# ############################### | ||
|
||
set d 0 | ||
set o 0 | ||
|
||
set r 50 | ||
set ff monospace | ||
set fw bold | ||
set fs 8em | ||
set s 500 | ||
# set bg #222233 | ||
set fg #DD0077; | ||
|
||
put public/icon.png | ||
# set x 50 | ||
# set y 50 | ||
# set xbg #DD6688 | ||
# set xbo 0 | ||
|
||
# | ||
# ╭────────────────────┬────────┬────────────────┬───────────────────────────────────────────────────────────────────────────────────╮ | ||
# │ option │ alias │ default │ type │ | ||
# ╞════════════════════╪════════╪════════════════╪═══════════════════════════════════════════════════════════════════════════════════╡ | ||
# │ r_fill │ bg │ black │ [ <hex-color> | <named-color> | <rgb()> | <rgba()> | <hsl()> <hsla()> | <lab()> ] │ | ||
# │ r_width ┆ w ┆ 100 ┆ [ auto | <length> | <percentage> ] │ | ||
# │ r_height │ h │ 100 │ [ auto | <length> | <percentage> ] │ | ||
# │ r_opacity ┆ o ┆ 0.5 ┆ [ <number>(0,1) | <percentage> ] │ | ||
# │ r_rx │ r │ 25 │ [ <length> | <percentage> | auto ] │ | ||
# │ r_ry ┆ r ┆ 25 ┆ [ <length> | <percentage> | auto ] │ | ||
# │ r_x │ │ 0 │ [ <length> | <percentage> ] │ | ||
# │ r_y ┆ ┆ 0 ┆ [ <length> | <percentage> ] │ | ||
# ├╌─╌╌╌─╌╌─╌─╌╌╌╌─┄╌──┼─╌╌─╌─╌─┼─╌╌─╌╌─╌─╌──────┼─╌╌─╌─╌─╌╌─╌─╌─╌╌─╌─╌──╌╌─╌─╌─╌╌─╌─╌──╌╌─╌─╌──╌╌─╌─╌─╌╌─╌─╌──╌╌─╌─╌─╌╌─╌─╌─────────┤ | ||
# │ t_fill │ fg │ #3311FF │ [ <hex-color> | <named-color> | <rgb()> | <rgba()> | <hsl()> <hsla()> | <lab()> ] │ | ||
# │ t_font-family ┆ ff ┆ monospace ┆ [ <family-name> | <generic-family> ] │ | ||
# │ t_font-weight │ fw │ bold │ [ <normal | bold | bolder | lighter | <number> ] │ | ||
# │ t_font-size ┆ fs ┆ 8em ┆ [ <absolute-size> | <relative-size> | <length-percentage> ] │ | ||
# │ t_rotate │ rotate │ 0 │ [ auto | auto-reverse | <number> ] │ | ||
# │ t_transform │ │ translate(0,0) │ [ <transform-function> ] │ | ||
# │ t_transform-origin ┆ ┆ center ┆ [ <transform-origin> ] ┆ | ||
# │ t_dx │ │ 0 │ [ <length-percentage> | <number> ] │ | ||
# │ t_dy ┆ ┆ 3.5 ┆ [ <length-percentage> | <number> ] │ | ||
# │ t_x │ x │ 50 │ [ <length> | <percentage> ] │ | ||
# │ t_y ┆ y ┆ 50 ┆ [ <length> | <percentage> ] │ | ||
# ╰────────────────────┴────────┴────────────────┴───────────────────────────────────────────────────────────────────────────────────╯ | ||
# ╭─────────────────────┬───────┬─────────┬──────────────────────────────────╮ | ||
# │ option │ alias │ default │ type │ | ||
# ╞═════════════════════╪═══════╪═════════╪══════════════════════════════════╡ | ||
# │ background ╎ xbg ╎ black ╎ [ <color> ] │ | ||
# │ background-opacity ╎ xbo ╎ 0 ╎ [ <number>(0,1) | <percentage> ] │ | ||
# │ size ╎ s ╎ 500 ╎ [ <number> ] │ | ||
# │ delay ╎ d ╎ 3 ╎ [ <number> ] │ | ||
# ╰─────────────────────┴───────┴─────────┴──────────────────────────────────╯ | ||
|
||
########################################################## | ||
#### 💡 Check complete template templates/default.xc ### | ||
########################################################## | ||
# | ||
## copy the starter template and start there | ||
# | ||
# cp templates/starter.xc <path> | ||
# xico -t starter.xc | ||
########################################################### | ||
|
||
# vim: ft=config:syntax=spec:commentstring=#%s:nowrap:nornu:nonu:nospell:nocul:nocuc |
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,7 @@ | ||
experimentalTernaries = false | ||
semi = false | ||
singleAttributePerLine = true | ||
printWidth = 100 | ||
singleQuote = true | ||
trailingComma = "es5" | ||
arrowParens = "avoid" |
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,26 @@ | ||
import Message from '@components/message' | ||
|
||
const tpl = (str: TemplateStringsArray, ...vars: string[]) => (<p key={Math.random()} > { | ||
str.reduce((acc, cur, i) => | ||
[...acc, (<span key={`${cur}--${i}`} > {cur} <em> {vars[i]}</em> </span>)], []) | ||
}</p>) | ||
|
||
export default () => (<> {[ | ||
[ | ||
'secret', | ||
tpl`It ${"must"} have a ${"json file"}`, | ||
tpl`It ${"can"} be named ${"anything"}`, | ||
tpl`The ${"first json file"} will be attempted`, | ||
], | ||
[ | ||
'public', | ||
tpl`It ${"must"} have a ${"json file"}`, | ||
tpl`It ${"must"} be named ${'resume.json'}`, | ||
tpl`The ${'resume.json'} will be attempted`, | ||
], | ||
].reduce((acc, [visibility, ...points], i) => [ | ||
...acc, | ||
( | ||
<Message key={`${visibility}--${i}`} msg={visibility}>{points}</Message> | ||
) | ||
], [])} </>) |
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,3 @@ | ||
import styles from '@styles/loader.module.scss' | ||
|
||
export default () => (<div className={styles.loader} />) |
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,15 @@ | ||
import Link from 'next/link' | ||
|
||
import styles from '@styles/message.module.scss' | ||
|
||
const links = { public: '/user/<username>', secret: '/gist/<gist_id>' } | ||
export default ({ msg, children = [], ...etc }) => { | ||
const link = links[msg] | ||
return ( | ||
<Link className={styles.message} href={link ?? '/'} {...etc}> | ||
<h3>{msg}</h3> | ||
{children} | ||
<h4>{link}</h4> | ||
</Link> | ||
) | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.