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 @@
- 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.
Sponsored by: