diff --git a/LICENSE b/LICENSE index b2c0b1d..53f7d94 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2022 Uxtely LLC +Copyright (c) 2022-24 Uxtely LLC js-utils diff --git a/README.md b/README.md index 8d5f377..e072c01 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # JavaScript Utils -These JavaScript utilities are used in UI Drafter. +These JavaScript utilities are used in UI Rig. Feel free to adapt them to your needs; they are [ISC licensed](./LICENSE). diff --git a/bunnycdn-uploader.js b/bunnycdn-uploader.js index 471f310..58b8faf 100644 --- a/bunnycdn-uploader.js +++ b/bunnycdn-uploader.js @@ -4,7 +4,7 @@ import { readFileSync, readdirSync, lstatSync } from 'node:fs' /** - * At UI Drafter we no longer use CDNs, but here's how we used to do it: + * At UI Rig we no longer use CDNs, but here's how we used to do it: * - upload new .mp4 of the `localDir` * - ignores subdirectories * - skips already uploaded videos diff --git a/indexed-db/README.md b/indexed-db/README.md index ae2a31e..4e59489 100644 --- a/indexed-db/README.md +++ b/indexed-db/README.md @@ -3,7 +3,7 @@ Promisifies and automates the ceremony of the browser’s `IndexedDB`. ## Pros -- Battle tested in https://uidrafter.com +- Battle tested in https://uirig.com - Lightweight (40 LoC) ## Cons diff --git a/make-error-pages.js b/make-error-pages.js index 54e9e84..c57ec8d 100755 --- a/make-error-pages.js +++ b/make-error-pages.js @@ -2,7 +2,7 @@ import { writeFileSync } from 'node:fs' // The error pages have no extension, see -// https://blog.uidrafter.com/pretty-routes-for-static-html +// https://blog.uirig.com/pretty-routes-for-static-html [ './static-pages-bundler/example-blog/root/root-meta/', './static-pages-bundler/example-docs/root/root-meta/' diff --git a/proxy-fields-obfuscator/README.md b/proxy-fields-obfuscator/README.md index 28a0999..39b29bd 100644 --- a/proxy-fields-obfuscator/README.md +++ b/proxy-fields-obfuscator/README.md @@ -39,7 +39,7 @@ export { FF } ## Another Example -In UI Drafter, the Card data structure is like this: +In UI Rig, the Card data structure is like this: ```js let CF = { id: 0, diff --git a/reactive-state/README.md b/reactive-state/README.md index 2178d1a..60a558a 100644 --- a/reactive-state/README.md +++ b/reactive-state/README.md @@ -10,7 +10,7 @@ It’s a standalone plain JS object that’s bindable to the state of many React class components without needing higher-order components (HOC). As it's standalone and importable, it can be used in two leaf components, -for either updating the state or for re-rendering. For example, in [UI Drafter](https://uidrafter.com) +for either updating the state or for re-rendering. For example, in [UI Rig](https://uirig.com) hitting **User** → **Delete all Files** needs to refresh **<HomeFileList/>**. So with this `ReactiveState`, there’s no need to write code in a parent 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 some cases eliminates, the need for DOM based testing, which are slow and brittle. ## Why? -As UI Drafter started out as a Meteor project, it used its +As UI Rig started out as a Meteor project, it used its [ReactiveVar](https://docs.meteor.com/api/reactive-var.html) extensively. Therefore, this `ReactiveState` is a re-implementation for React class components of ReactiveVar. diff --git a/static-pages-bundler/.npmrc b/static-pages-bundler/.npmrc index a4978e4..ef6bbb1 100644 --- a/static-pages-bundler/.npmrc +++ b/static-pages-bundler/.npmrc @@ -1 +1 @@ -ignore-scripts=true # https://blog.uidrafter.com/getting-rid-of-npm-scripts +ignore-scripts=true # https://blog.uirig.com/getting-rid-of-npm-scripts diff --git a/static-pages-bundler/README.md b/static-pages-bundler/README.md index 5eca2b3..7e55a3c 100644 --- a/static-pages-bundler/README.md +++ b/static-pages-bundler/README.md @@ -1,9 +1,9 @@ # Static Site Generator This is a tiny (under 400 LoC) bundler used for: -- [docs.uidrafter.com](https://docs.uidrafter.com) -- [blog.uidrafter.com](https://blog.uidrafter.com) -- [uidrafter.com](https://uidrafter.com) +- [docs.uirig.com](https://docs.uirig.com) +- [blog.uirig.com](https://blog.uirig.com) +- [uirig.com](https://uirig.com) ## HTML Template @@ -18,7 +18,7 @@ It serves and auto reloads the browser on changes. ## Production Build It crawls the dev server and saves each route as static html page. For pretty URLs, it saves the pages without the `.html` extension, see [Pretty routes -for static HTML](https://blog.uidrafter.com/pretty-routes-for-static-html) +for static HTML](https://blog.uirig.com/pretty-routes-for-static-html) - **Assets:** JS and CSS files get inlined with their corresponding CSP nonces. @@ -27,7 +27,7 @@ for static HTML](https://blog.uidrafter.com/pretty-routes-for-static-html) - [**media-optimizer.sh**](./media-optimizer.sh): - **Images**: We [Conditionally Serve AVIF and WebP with - Nginx](https://blog.uidrafter.com/conditional-avif-for-video-posters). So + Nginx](https://blog.uirig.com/conditional-avif-for-video-posters). So it auto-generates AVIF and WebP from each PNG. - **Videos:** MP4 get rewritten if needed for fast playback. @@ -74,11 +74,11 @@ npm install -g eslint \ ## Deployment Tips -- [Hitting 304s Across Servers](https://blog.uidrafter.com/hitting-304-across-servers) -- [Deploy Assets Before Documents](https://blog.uidrafter.com/deploy-assets-before-documents) -- [Securely creating TLS certificates with Let's Encrypt](https://blog.uidrafter.com/isolated-tls-certificate-creation) +- [Hitting 304s Across Servers](https://blog.uirig.com/hitting-304-across-servers) +- [Deploy Assets Before Documents](https://blog.uirig.com/deploy-assets-before-documents) +- [Securely creating TLS certificates with Let's Encrypt](https://blog.uirig.com/isolated-tls-certificate-creation) ## CDN Media Uploading See [bunnycdn-uploader.js](../bunnycdn-uploader.js) for a script to upload video files to BunnyCDN. -It's no longer used in UI Drafter, and it hasn't been used it in a while… +It's no longer used in UI Rig, and it hasn't been used it in a while… diff --git a/static-pages-bundler/example-blog/app.js b/static-pages-bundler/example-blog/app.js index dd5bc2d..4605b4c 100755 --- a/static-pages-bundler/example-blog/app.js +++ b/static-pages-bundler/example-blog/app.js @@ -19,7 +19,7 @@ switch (process.argv[2]) { case 'production': // For drafting blog posts, we exclude files starting with an underscore from the production build. - buildProduction(router, routes.filter(r => !r.startsWith('/_')), 'blog.uidrafter.com', '$blog_csp') + buildProduction(router, routes.filter(r => !r.startsWith('/_')), 'blog.uirig.com', '$blog_csp') break default: diff --git a/static-pages-bundler/example-blog/root/bitwise-table-lookup.html b/static-pages-bundler/example-blog/root/bitwise-table-lookup.html index 5442c32..e6e1967 100644 --- a/static-pages-bundler/example-blog/root/bitwise-table-lookup.html +++ b/static-pages-bundler/example-blog/root/bitwise-table-lookup.html @@ -33,7 +33,7 @@

Example

- In UI Drafter, a connection's color varies when + In UI Rig, a connection's color varies when it's selected, hovered, and their combinations.

diff --git a/static-pages-bundler/example-blog/root/htmlTemplate.js b/static-pages-bundler/example-blog/root/htmlTemplate.js index dc7c18b..cee4175 100644 --- a/static-pages-bundler/example-blog/root/htmlTemplate.js +++ b/static-pages-bundler/example-blog/root/htmlTemplate.js @@ -11,7 +11,6 @@ export default function htmlTemplate(docRoutes, html, iRoute) { - ${head} @@ -20,12 +19,11 @@ export default function htmlTemplate(docRoutes, html, iRoute) { - @@ -55,12 +53,12 @@ export default function htmlTemplate(docRoutes, html, iRoute) { -
UI Drafter
+
UI Rig
${body} ${hideSponsor ? '' : ` - +

Sponsored by:

@@ -77,19 +75,19 @@ export default function htmlTemplate(docRoutes, html, iRoute) {
Disclaimer - Privacy + Privacy ©2022  Uxtely LLC diff --git a/static-pages-bundler/example-blog/root/index.html b/static-pages-bundler/example-blog/root/index.html index 0cc6fc6..8af7a8a 100644 --- a/static-pages-bundler/example-blog/root/index.html +++ b/static-pages-bundler/example-blog/root/index.html @@ -1,5 +1,5 @@ - UI Drafter Blog + UI Rig Blog diff --git a/static-pages-bundler/example-blog/root/root-meta/robots.txt b/static-pages-bundler/example-blog/root/root-meta/robots.txt index 5db373d..9734524 100644 --- a/static-pages-bundler/example-blog/root/root-meta/robots.txt +++ b/static-pages-bundler/example-blog/root/root-meta/robots.txt @@ -1 +1 @@ -Sitemap: https://blog.uidrafter.com/sitemap.txt +Sitemap: https://blog.uirig.com/sitemap.txt diff --git a/static-pages-bundler/example-docs/app.js b/static-pages-bundler/example-docs/app.js index 422812a..f04963c 100755 --- a/static-pages-bundler/example-docs/app.js +++ b/static-pages-bundler/example-docs/app.js @@ -31,7 +31,7 @@ switch (process.argv[2]) { break case 'production': - buildProduction(router, routes, 'docs.uidrafter.com', '$docs_csp').then(async () => { + buildProduction(router, routes, 'docs.uirig.com', '$docs_csp').then(async () => { const server = http.createServer(router) server.listen(0, DevHost, async error => { if (error) @@ -53,7 +53,7 @@ switch (process.argv[2]) { async function throwIfHasDeadLinks(port) { const knownLinks = [ - '//uidrafter.com', + '//uirig.com', '//uxtely.com', 'https://github.com/uxtely/server-side-card-api-examples', 'https://github.com/uxtely/css-editor-connector' diff --git a/static-pages-bundler/example-docs/root/cards.html b/static-pages-bundler/example-docs/root/cards.html index 9eec8e3..56811be 100644 --- a/static-pages-bundler/example-docs/root/cards.html +++ b/static-pages-bundler/example-docs/root/cards.html @@ -123,7 +123,7 @@

Pasting from Spreadsheets

How to paste from spreadsheets to UI Drafter + alt="How to paste from spreadsheets to UI Rig" />
diff --git a/static-pages-bundler/example-docs/root/htmlTemplate.js b/static-pages-bundler/example-docs/root/htmlTemplate.js index 2652d13..1aa8d99 100644 --- a/static-pages-bundler/example-docs/root/htmlTemplate.js +++ b/static-pages-bundler/example-docs/root/htmlTemplate.js @@ -37,11 +37,11 @@ export default function htmlTemplate(RouteDefs, html, iRoute) { ${head} ${nextPagePrefetch} - +
- + - + diff --git a/static-pages-bundler/example-docs/root/workspaces.html b/static-pages-bundler/example-docs/root/workspaces.html index a83f34c..382efd2 100644 --- a/static-pages-bundler/example-docs/root/workspaces.html +++ b/static-pages-bundler/example-docs/root/workspaces.html @@ -11,7 +11,7 @@

Workspaces

- UI Drafter is an installable web app. + UI Rig is an installable web app.

  • @@ -33,7 +33,7 @@

    Home

    UI Drafter's Home + alt="UI Rig's Home" />
@@ -48,7 +48,7 @@

Drafter Workspace

UI Drafter's Drafter Workspace + alt="UI Rig's Drafter Workspace" />
@@ -62,7 +62,7 @@

Previewer Workspace

UI Drafter's Previewer Workspace + alt="UI Rig's Previewer Workspace" />
diff --git a/static-pages-bundler/media-optimizer.sh b/static-pages-bundler/media-optimizer.sh index f795bd0..0fb8d5b 100755 --- a/static-pages-bundler/media-optimizer.sh +++ b/static-pages-bundler/media-optimizer.sh @@ -2,7 +2,7 @@ set -o noglob IFS=$'\n' -# https://blog.uidrafter.com/convert-to-avif-programmatically +# https://blog.uirig.com/convert-to-avif-programmatically abort() { # Prints the message in red to stderr printf "\033[31m ABORTED: $1\n\033[0m" >&2 diff --git a/static-pages-bundler/media-remaper.js b/static-pages-bundler/media-remaper.js index 8206735..e4cce90 100644 --- a/static-pages-bundler/media-remaper.js +++ b/static-pages-bundler/media-remaper.js @@ -10,7 +10,7 @@ import { copy, sha1, makeDir, listFiles } from '../fs-utils.js' * * Yes, all use the SHA-1 from the original PNG. That way * in nginx.conf we can conditionally serve the best format. - * https://blog.uidrafter.com/conditional-avif-for-video-posters + * https://blog.uirig.com/conditional-avif-for-video-posters * * We don't use JPGs (explained in ./media-optimizer.sh) */ diff --git a/type-check/README.md b/type-check/README.md index cb48da2..1d8d9ae 100644 --- a/type-check/README.md +++ b/type-check/README.md @@ -61,4 +61,4 @@ new Person({ unspecified: true }) ``` ## See also -https://blog.uidrafter.com/types-without-typescript +https://blog.uirig.com/types-without-typescript diff --git a/video-player/README.md b/video-player/README.md index 8b77cbe..3af9d7e 100644 --- a/video-player/README.md +++ b/video-player/README.md @@ -1,5 +1,5 @@ # Plain JS + CSS HTML5 Video Player -This is minimal video player, it's used in UI Drafter’s website and documentation. +This is minimal video player, it's used in UI Rig’s website and documentation. ## License This program is [ISC licensed](../LICENSE).