Skip to content

Commit 6154c64

Browse files
committed
UI Drafter => UI Rig
1 parent 02085a1 commit 6154c64

24 files changed

+48
-50
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022 Uxtely LLC
1+
Copyright (c) 2022-24 Uxtely LLC
22

33
js-utils
44

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JavaScript Utils
22

3-
These JavaScript utilities are used in UI Drafter.
3+
These JavaScript utilities are used in UI Rig.
44

55
Feel free to adapt them to your needs; they are [ISC licensed](./LICENSE).
66

bunnycdn-uploader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFileSync, readdirSync, lstatSync } from 'node:fs'
44

55

66
/**
7-
* At UI Drafter we no longer use CDNs, but here's how we used to do it:
7+
* At UI Rig we no longer use CDNs, but here's how we used to do it:
88
* - upload new .mp4 of the `localDir`
99
* - ignores subdirectories
1010
* - skips already uploaded videos

indexed-db/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Promisifies and automates the ceremony of the browser’s `IndexedDB`.
44

55
## Pros
6-
- Battle tested in https://uidrafter.com
6+
- Battle tested in https://uirig.com
77
- Lightweight (40 LoC)
88

99
## Cons

make-error-pages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { writeFileSync } from 'node:fs'
33

44
// The error pages have no extension, see
5-
// https://blog.uidrafter.com/pretty-routes-for-static-html
5+
// https://blog.uirig.com/pretty-routes-for-static-html
66
[
77
'./static-pages-bundler/example-blog/root/root-meta/',
88
'./static-pages-bundler/example-docs/root/root-meta/'

proxy-fields-obfuscator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export { FF }
3939

4040

4141
## Another Example
42-
In UI Drafter, the Card data structure is like this:
42+
In UI Rig, the Card data structure is like this:
4343
```js
4444
let CF = {
4545
id: 0,

reactive-state/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It’s a standalone plain JS object that’s bindable to the state of many React
1010
class components without needing higher-order components (HOC).
1111

1212
As it's standalone and importable, it can be used in two leaf components,
13-
for either updating the state or for re-rendering. For example, in [UI Drafter](https://uidrafter.com)
13+
for either updating the state or for re-rendering. For example, in [UI Rig](https://uirig.com)
1414
hitting **User****Delete all Files** needs to refresh **<HomeFileList/>**.
1515
So with this `ReactiveState`, there’s no need to write code in a parent
1616
component to handle this coupling, as it can be imported where it’s needed.
@@ -21,7 +21,7 @@ require a DOM. For example, to test the router function, we assert the value of
2121
some cases eliminates, the need for DOM based testing, which are slow and brittle.
2222

2323
## Why?
24-
As UI Drafter started out as a Meteor project, it used its
24+
As UI Rig started out as a Meteor project, it used its
2525
[ReactiveVar](https://docs.meteor.com/api/reactive-var.html) extensively. Therefore,
2626
this `ReactiveState` is a re-implementation for React class components of ReactiveVar.
2727

static-pages-bundler/.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ignore-scripts=true # https://blog.uidrafter.com/getting-rid-of-npm-scripts
1+
ignore-scripts=true # https://blog.uirig.com/getting-rid-of-npm-scripts

static-pages-bundler/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Static Site Generator
22

33
This is a tiny (under 400 LoC) bundler used for:
4-
- [docs.uidrafter.com](https://docs.uidrafter.com)
5-
- [blog.uidrafter.com](https://blog.uidrafter.com)
6-
- [uidrafter.com](https://uidrafter.com)
4+
- [docs.uirig.com](https://docs.uirig.com)
5+
- [blog.uirig.com](https://blog.uirig.com)
6+
- [uirig.com](https://uirig.com)
77

88

99
## HTML Template
@@ -18,7 +18,7 @@ It serves and auto reloads the browser on changes.
1818
## Production Build
1919
It crawls the dev server and saves each route as static html page. For pretty
2020
URLs, it saves the pages without the `.html` extension, see [Pretty routes
21-
for static HTML](https://blog.uidrafter.com/pretty-routes-for-static-html)
21+
for static HTML](https://blog.uirig.com/pretty-routes-for-static-html)
2222

2323
- **Assets:** JS and CSS files get inlined with their corresponding CSP nonces.
2424

@@ -27,7 +27,7 @@ for static HTML](https://blog.uidrafter.com/pretty-routes-for-static-html)
2727

2828
- [**media-optimizer.sh**](./media-optimizer.sh):
2929
- **Images**: We [Conditionally Serve AVIF and WebP with
30-
Nginx](https://blog.uidrafter.com/conditional-avif-for-video-posters). So
30+
Nginx](https://blog.uirig.com/conditional-avif-for-video-posters). So
3131
it auto-generates AVIF and WebP from each PNG.
3232
- **Videos:** MP4 get rewritten if needed for fast playback.
3333

@@ -74,11 +74,11 @@ npm install -g eslint \
7474

7575

7676
## Deployment Tips
77-
- [Hitting 304s Across Servers](https://blog.uidrafter.com/hitting-304-across-servers)
78-
- [Deploy Assets Before Documents](https://blog.uidrafter.com/deploy-assets-before-documents)
79-
- [Securely creating TLS certificates with Let's Encrypt](https://blog.uidrafter.com/isolated-tls-certificate-creation)
77+
- [Hitting 304s Across Servers](https://blog.uirig.com/hitting-304-across-servers)
78+
- [Deploy Assets Before Documents](https://blog.uirig.com/deploy-assets-before-documents)
79+
- [Securely creating TLS certificates with Let's Encrypt](https://blog.uirig.com/isolated-tls-certificate-creation)
8080

8181

8282
## CDN Media Uploading
8383
See [bunnycdn-uploader.js](../bunnycdn-uploader.js) for a script to upload video files to BunnyCDN.
84-
It's no longer used in UI Drafter, and it hasn't been used it in a while…
84+
It's no longer used in UI Rig, and it hasn't been used it in a while…

static-pages-bundler/example-blog/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ switch (process.argv[2]) {
1919

2020
case 'production':
2121
// For drafting blog posts, we exclude files starting with an underscore from the production build.
22-
buildProduction(router, routes.filter(r => !r.startsWith('/_')), 'blog.uidrafter.com', '$blog_csp')
22+
buildProduction(router, routes.filter(r => !r.startsWith('/_')), 'blog.uirig.com', '$blog_csp')
2323
break
2424

2525
default:

static-pages-bundler/example-blog/root/bitwise-table-lookup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>
3333
<section>
3434
<h2>Example</h2>
3535
<p>
36-
In UI Drafter, a connection's color varies when
36+
In UI Rig, a connection's color varies when
3737
it's <code class="codeArg">selected</code>, <code class="codeArg">hovered</code>, and their combinations.
3838
</p>
3939

static-pages-bundler/example-blog/root/htmlTemplate.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
1111
<html lang="en">
1212
<head>
1313
<meta name="viewport" content="width=device-width">
14-
1514
<link rel="stylesheet" href="assets/base.css">
1615
${head}
1716
@@ -20,12 +19,11 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
2019
2120
<link rel="icon" href="favicon.svg" type="image/svg+xml">
2221
<link rel="apple-touch-icon" href="favicon-apple-icon-touch.png">
23-
<link rel="dns-prefetch" href="//uidrafter.com">
2422
</head>
2523
<body>
2624
<nav>
2725
<div class="bodyWidth">
28-
<a tabindex="0" href="//uidrafter.com" title="Website">
26+
<a tabindex="0" href="//uirig.com" title="Website">
2927
<svg xmlns="http://www.w3.org/2000/svg" id="LogoPosNav" viewBox="0 0 80 20"><!-- @KeepSync #LogoPosB -->
3028
<path class="LetterU1" d="m7.18 5.12c.813.0218.544 4.63.399 6.77-.317 2.16-1.72 3.18-2.62 1.58-.491-.873-1.29-6.11.0982-8.65" />
3129
<path class="LetterU1" d="m10 4.16c.0742 2.06-.0736 8.52.132 11-.156.812-3.75.944-3.75.944-.123-.218 1.29-1.25 1.45-2.18.433-2.62.32-7.5.791-9.97" />
@@ -38,9 +36,9 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
3836
</a>
3937
4038
<div id="NavRight">
41-
<a href="//free.uidrafter.com">Free App</a>
42-
<a href="//docs.uidrafter.com">Docs</a>
43-
<a href="//blog.uidrafter.com">Blog</a>
39+
<a href="//my.uirig.com">Free App</a>
40+
<a href="//docs.uirig.com">Docs</a>
41+
<a href="//blog.uirig.com">Blog</a>
4442
</div>
4543
</div>
4644
</nav>
@@ -55,12 +53,12 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
5553
<path class="LetterD1" d="m12.3 13.6c1.68.145 2.65-1.09 2.71-3.2.0613-1.71-.495-3.47-2.92-3.79 1.5.155 4.74-1.39 5.63 3.17-.477 3.44-2.96 4.97-5.44 3.82z" />
5654
<path class="LetterD0" d="m11.7 3.23.113 13.6s3.47-.466 3.58-.502c.346-.0452 3.62-1.33 3.39-6.46-.221-4.77-3.21-5.74-3.62-5.86-.952-.321-3.48-.792-3.48-.792zm2.45 3.35.876.123s1.93.346 1.94 3.43c0 3.47-2.17 3.56-2.17 3.56l-.661.01z" />
5755
</svg>
58-
<div class="Line1">UI Drafter</div>
56+
<div class="Line1">UI Rig</div>
5957
</div>
6058
${body}
6159
6260
${hideSponsor ? '' : `
63-
<a href="//uidrafter.com" id="Outro">
61+
<a href="//uirig.com" id="Outro">
6462
<p>Sponsored by:</p>
6563
<svg xmlns="http://www.w3.org/2000/svg" id="LogoOutro" viewBox="0 0 80 20">
6664
<path class="LetterU1" d="m7.18 5.12c.813.0218.544 4.63.399 6.77-.317 2.16-1.72 3.18-2.62 1.58-.491-.873-1.29-6.11.0982-8.65" />
@@ -77,19 +75,19 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
7775
<footer>
7876
<div>
7977
<div id="SocialLinks">
80-
<a target="_blank" aria-label="Twitter" href="//twitter.com/uidrafter">
78+
<a target="_blank" aria-label="Twitter" href="//twitter.com/uirig">
8179
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
8280
<path d="M45.7 10.5a17.8 17.8 0 01-5.1 1.4A9 9 0 0044.5 7a17.8 17.8 0 01-5.7 2.2 8.9 8.9 0 00-15.1 8A25.3 25.3 0 015.3 8a8.9 8.9 0 002.8 11.9 8.9 8.9 0 01-4-1.1 9 9 0 007 8.8 9 9 0 01-4 .2 9 9 0 008.4 6.2 17.9 17.9 0 01-13.2 3.7 25.2 25.2 0 0013.6 4 25.2 25.2 0 0025.4-25.4v-1.1a18.1 18.1 0 004.4-4.7z"/>
8381
</svg>
8482
</a>
8583
86-
<a target="_blank" aria-label="Facebook" href="//www.facebook.com/uidrafter">
84+
<a target="_blank" aria-label="Facebook" href="//www.facebook.com/uirig">
8785
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
8886
<path d="M5.3 3A2.3 2.3 0 003 5.3v37.4A2.3 2.3 0 005.3 45h20.1V28.7H20v-6.3h5.4v-4.7c0-5.4 3.4-8.4 8.2-8.4 2.3 0 4.3.2 4.9.3v5.7H35c-2.6 0-3.1 1.2-3.1 3v4.1h6.3l-.9 6.3H32V45h10.7a2.3 2.3 0 002.3-2.3V5.3A2.3 2.3 0 0042.7 3z"/>
8987
</svg>
9088
</a>
9189
92-
<a target="_blank" aria-label="Instagram" href="//www.instagram.com/uidrafter">
90+
<a target="_blank" aria-label="Instagram" href="//www.instagram.com/uirig">
9391
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
9492
<path d="M45 24l-.1 8.6c-.2 3.9-1.3 6.8-3.4 8.9-2.2 2-5 3.2-8.9 3.4L24 45l-8.6-.1c-3.9-.2-6.8-1.3-8.9-3.4-2-2-3.2-5-3.4-8.9L3 24l.1-8.6c.2-3.9 1.3-6.8 3.4-8.9 2-2 5-3.2 8.9-3.4L24 3l8.6.1c3.9.2 6.8 1.3 8.9 3.4 2 2.2 3.2 5 3.4 8.9L45 24zM26 6.7h-6.9l-2.6.1c-1.1 0-2.1.1-2.9.3a8 8 0 00-2 .5c-.8.4-1.6.9-2.4 1.6a7 7 0 00-1.6 2.4 65.7 65.7 0 00-.8 4.8v15.2c0 1 .1 2 .3 2.8l.5 2c.4.9 1 1.6 1.6 2.4a7 7 0 002.5 1.6 65.7 65.7 0 004.8.8H31.6c1 0 2-.1 2.8-.3a8 8 0 004.4-2 7 7 0 001.6-2.5 65.7 65.7 0 00.8-4.8V19v-2.6c0-1-.1-2-.3-2.8a8 8 0 00-.5-2 9.4 9.4 0 00-1.6-2.4 7 7 0 00-2.4-1.6 65.7 65.7 0 00-4.8-.8H26zm5.6 9.6a10.4 10.4 0 013.1 7.7c0 3-1 5.5-3.1 7.7a10.4 10.4 0 01-7.7 3 10.6 10.6 0 01-7.6-3A10.4 10.4 0 0113 24c0-3 1-5.5 3.1-7.7a10.4 10.4 0 017.7-3c3 0 5.6.9 7.7 3zM28.9 29a7 7 0 000-10 6.8 6.8 0 00-5-2c-2 0-3.6.7-5 2a6.8 6.8 0 00-2 5c0 2 .6 3.7 2 5a6.8 6.8 0 005 2c2 0 3.6-.6 5-2zm8-18c.5.5.8 1.1.8 1.8s-.3 1.3-.8 1.8-1 .8-1.7.8-1.3-.3-1.8-.8-.8-1.1-.8-1.8.3-1.3.8-1.8 1-.8 1.8-.8c.7 0 1.2.3 1.7.8z"/>
9593
</svg>
@@ -104,13 +102,13 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
104102
105103
<span class="FooterLeftLinks">
106104
<a id="cor" href="#contact">Contact</a>
107-
<a target="_blank" href="//uidrafter.com/report-issue">Issues</a>
105+
<a target="_blank" href="//uirig.com/report-issue">Issues</a>
108106
</span>
109107
</div>
110108
111109
<div class="FooterRight">
112110
<a href="/disclaimer" target="_blank">Disclaimer</a>
113-
<a href="//uidrafter.com/privacy" target="_blank">Privacy</a>
111+
<a href="//uirig.com/privacy" target="_blank">Privacy</a>
114112
<a href="https://uxtely.com" target="_blank" class="Copyright">
115113
&copy;2022&nbsp;&nbsp;Uxtely&nbsp;LLC
116114
</a>

static-pages-bundler/example-blog/root/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<head>
2-
<title>UI Drafter Blog</title>
2+
<title>UI Rig Blog</title>
33
<link rel="stylesheet" href="index.css">
44
</head>
55

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sitemap: https://blog.uidrafter.com/sitemap.txt
1+
Sitemap: https://blog.uirig.com/sitemap.txt

static-pages-bundler/example-docs/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ switch (process.argv[2]) {
3131
break
3232

3333
case 'production':
34-
buildProduction(router, routes, 'docs.uidrafter.com', '$docs_csp').then(async () => {
34+
buildProduction(router, routes, 'docs.uirig.com', '$docs_csp').then(async () => {
3535
const server = http.createServer(router)
3636
server.listen(0, DevHost, async error => {
3737
if (error)
@@ -53,7 +53,7 @@ switch (process.argv[2]) {
5353

5454
async function throwIfHasDeadLinks(port) {
5555
const knownLinks = [
56-
'//uidrafter.com',
56+
'//uirig.com',
5757
'//uxtely.com',
5858
'https://github.com/uxtely/server-side-card-api-examples',
5959
'https://github.com/uxtely/css-editor-connector'

static-pages-bundler/example-docs/root/cards.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2>Pasting from Spreadsheets</h2>
123123
<div class="RegionImg">
124124
<img width="460"
125125
src="media/cards-pasting-from-spreadsheets.png"
126-
alt="How to paste from spreadsheets to UI Drafter" />
126+
alt="How to paste from spreadsheets to UI Rig" />
127127
</div>
128128
</section>
129129
<!-- TODO pasting from plain text (in another section) -->

static-pages-bundler/example-docs/root/htmlTemplate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export default function htmlTemplate(RouteDefs, html, iRoute) {
3737
${head}
3838
3939
${nextPagePrefetch}
40-
<link rel="dns-prefetch" href="//uidrafter.com">
40+
<link rel="dns-prefetch" href="//uirig.com">
4141
</head>
4242
<body>
4343
<header>
44-
<a tabindex="0" href="//uidrafter.com" title="Website">
44+
<a tabindex="0" href="//uirig.com" title="Website">
4545
<svg class="Logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 20">
4646
<path class="LetterU1" d="m7.18 5.12c.813.0218.544 4.63.399 6.77-.317 2.16-1.72 3.18-2.62 1.58-.491-.873-1.29-6.11.0982-8.65" />
4747
<path class="LetterU1" d="m10 4.16c.0742 2.06-.0736 8.52.132 11-.156.812-3.75.944-3.75.944-.123-.218 1.29-1.25 1.45-2.18.433-2.62.32-7.5.791-9.97" />
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Sitemap: https://docs.uidrafter.com/sitemap.txt
1+
Sitemap: https://docs.uirig.com/sitemap.txt
22

static-pages-bundler/example-docs/root/shortcuts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<head>
2-
<meta name="description" content="Keyboard Shortcuts of UI Drafter">
2+
<meta name="description" content="Keyboard Shortcuts of UI Rig">
33
<link rel="stylesheet" href="shortcuts.css">
44
</head>
55

static-pages-bundler/example-docs/root/workspaces.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>Workspaces</h1>
1111

1212
<section>
1313
<p>
14-
UI Drafter is an installable web&nbsp;app.
14+
UI Rig is an installable web&nbsp;app.
1515
</p>
1616
<ul>
1717
<li>
@@ -33,7 +33,7 @@ <h2>Home</h2>
3333
<div class="FullImg">
3434
<img
3535
src="media/workspaces-home.png"
36-
alt="UI Drafter's Home" />
36+
alt="UI Rig's Home" />
3737
</div>
3838
</section>
3939

@@ -48,7 +48,7 @@ <h2>Drafter <span class="normalWeight">Workspace</span></h2>
4848
<div class="FullImg">
4949
<img
5050
src="media/workspaces-drafter.png"
51-
alt="UI Drafter's Drafter Workspace" />
51+
alt="UI Rig's Drafter Workspace" />
5252
</div>
5353
</section>
5454

@@ -62,7 +62,7 @@ <h2>Previewer <span class="normalWeight">Workspace</span></h2>
6262
<div class="FullImg light">
6363
<img
6464
src="media/workspaces-previewer.png"
65-
alt="UI Drafter's Previewer Workspace" />
65+
alt="UI Rig's Previewer Workspace" />
6666
</div>
6767
</section>
6868

static-pages-bundler/media-optimizer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -o noglob
33
IFS=$'\n'
44

5-
# https://blog.uidrafter.com/convert-to-avif-programmatically
5+
# https://blog.uirig.com/convert-to-avif-programmatically
66

77
abort() { # Prints the message in red to stderr
88
printf "\033[31m ABORTED: $1\n\033[0m" >&2

static-pages-bundler/media-remaper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { copy, sha1, makeDir, listFiles } from '../fs-utils.js'
1010
*
1111
* Yes, all use the SHA-1 from the original PNG. That way
1212
* in nginx.conf we can conditionally serve the best format.
13-
* https://blog.uidrafter.com/conditional-avif-for-video-posters
13+
* https://blog.uirig.com/conditional-avif-for-video-posters
1414
*
1515
* We don't use JPGs (explained in ./media-optimizer.sh)
1616
*/

type-check/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ new Person({ unspecified: true })
6161
```
6262

6363
## See also
64-
https://blog.uidrafter.com/types-without-typescript
64+
https://blog.uirig.com/types-without-typescript

video-player/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Plain JS + CSS HTML5 Video Player
2-
This is minimal video player, it's used in UI Drafter’s website and documentation.
2+
This is minimal video player, it's used in UI Rig’s website and documentation.
33

44
## License
55
This program is [ISC licensed](../LICENSE).

0 commit comments

Comments
 (0)