Skip to content

Commit

Permalink
Add UI bundle to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
curdopet committed Oct 9, 2024
1 parent e3ab0b3 commit e61df50
Show file tree
Hide file tree
Showing 120 changed files with 665 additions and 3 deletions.
2 changes: 1 addition & 1 deletion antora-playbook-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ urls:
html_extension_style: indexify
ui:
bundle:
url: https://tiny-cloud-docs-antora-themes-staging.s3.amazonaws.com/ui-bundle.zip
url: ./ui-bundle
asciidoc:
attributes:
tinymce_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6-dev/tinymce.min.js
Expand Down
2 changes: 1 addition & 1 deletion antora-playbook-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ urls:
html_extension_style: indexify
ui:
bundle:
url: https://tiny-cloud-docs-antora-themes-production.s3.amazonaws.com/ui-bundle.zip
url: ./ui-bundle
asciidoc:
extensions:
- '@tinymce/antora-extension-livedemos'
2 changes: 1 addition & 1 deletion antora-playbook-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ urls:
html_extension_style: indexify
ui:
bundle:
url: https://tiny-cloud-docs-antora-themes-staging.s3.amazonaws.com/ui-bundle.zip
url: ./ui-bundle
asciidoc:
attributes:
tinymce_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6-testing/tinymce.min.js
Expand Down
3 changes: 3 additions & 0 deletions ui-bundle/css/site.css

Large diffs are not rendered by default.

Binary file added ui-bundle/font/FiraCode-Medium.woff
Binary file not shown.
Binary file added ui-bundle/font/FiraCode-Medium.woff2
Binary file not shown.
Binary file added ui-bundle/font/FiraCode-Regular.woff
Binary file not shown.
Binary file added ui-bundle/font/FiraCode-Regular.woff2
Binary file not shown.
Binary file added ui-bundle/font/FiraCode-Semibold.woff
Binary file not shown.
Binary file added ui-bundle/font/FiraCode-Semibold.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-Bold.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-Bold.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-BoldItalic.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-Italic.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-Italic.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-Medium.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-Medium.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-MediumItalic.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-Regular.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-Regular.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-SemiBold.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-SemiBold.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-SemiBoldItalic.woff
Binary file not shown.
Binary file added ui-bundle/font/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file added ui-bundle/font/Inter-VariableFont.ttf
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-400.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-400.woff2
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-400italic.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-400italic.woff2
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-500.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-500.woff2
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-500italic.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-latin-500italic.woff2
Binary file not shown.
Binary file added ui-bundle/font/roboto-mono-latin-400.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-mono-latin-400.woff2
Binary file not shown.
Binary file added ui-bundle/font/roboto-mono-latin-500.woff
Binary file not shown.
Binary file added ui-bundle/font/roboto-mono-latin-500.woff2
Binary file not shown.
9 changes: 9 additions & 0 deletions ui-bundle/helpers/and.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

module.exports = (...args) => {
const numArgs = args.length;
if (numArgs === 3) return args[0] && args[1];
if (numArgs < 3) throw new Error("{{and}} helper expects at least 2 arguments");
args.pop();
return args.every((it) => it);
};
5 changes: 5 additions & 0 deletions ui-bundle/helpers/detag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

const TAG_ALL_RX = /<[^>]+>/g;

module.exports = (html) => html && html.replace(TAG_ALL_RX, "");
15 changes: 15 additions & 0 deletions ui-bundle/helpers/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use strict";
require("dotenv").config();

module.exports = (variable) => {
const query = variable.toString();
switch (query) {
case "tinymce-key":
return process.env.TINYMCE_KEY ? process.env.TINYMCE_KEY : "no-key";
case "enviornment":
return process.env.DOCS_ENV ? process.env.DOCS_ENV : "development";
default: {
return "no-env-variable-found";
}
}
};
3 changes: 3 additions & 0 deletions ui-bundle/helpers/eq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";

module.exports = (a, b) => a === b;
20 changes: 20 additions & 0 deletions ui-bundle/helpers/gUAID.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";
require("dotenv").config();

const PRODUCTION_ANALYTCS_UAID = "UA-692197-1";
const STAGING_ANALYTCS_UAID = "UA-692197-4";

module.exports = (variable) => {
const env = process.env.DOCS_ENV ? process.env.DOCS_ENV : null;
if (!env) return "";

switch (env) {
case "staging":
return STAGING_ANALYTCS_UAID;
case "production":
return PRODUCTION_ANALYTCS_UAID;
default: {
return "";
}
}
};
3 changes: 3 additions & 0 deletions ui-bundle/helpers/increment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";

module.exports = (value) => (value || 0) + 1;
3 changes: 3 additions & 0 deletions ui-bundle/helpers/ne.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";

module.exports = (a, b) => a !== b;
3 changes: 3 additions & 0 deletions ui-bundle/helpers/not.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";

module.exports = (val) => !val;
9 changes: 9 additions & 0 deletions ui-bundle/helpers/or.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

module.exports = (...args) => {
const numArgs = args.length;
if (numArgs === 3) return args[0] || args[1];
if (numArgs < 3) throw new Error("{{or}} helper expects at least 2 arguments");
args.pop();
return args.some((it) => it);
};
20 changes: 20 additions & 0 deletions ui-bundle/helpers/pardotAid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";
require("dotenv").config();

const PRODUCTION_AID = "3202";
const STAGING_AID = "3202";

module.exports = (variable) => {
const env = process.env.DOCS_ENV ? process.env.DOCS_ENV : null;
if (!env) return "";

switch (env) {
case "staging":
return STAGING_AID;
case "production":
return PRODUCTION_AID;
default: {
return "";
}
}
};
20 changes: 20 additions & 0 deletions ui-bundle/helpers/pardotCid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";
require("dotenv").config();

const PRODUCTION_CID = "78021";
const STAGING_CID = "79143";

module.exports = (variable) => {
const env = process.env.DOCS_ENV ? process.env.DOCS_ENV : null;
if (!env) return "";

switch (env) {
case "staging":
return STAGING_CID;
case "production":
return PRODUCTION_CID;
default: {
return "";
}
}
};
24 changes: 24 additions & 0 deletions ui-bundle/helpers/relativize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use strict";

const { posix: path } = require("path");

module.exports = (to, from, ctx) => {
if (!to) return "#";
// NOTE only legacy invocation provides both to and from
if (!ctx) from = (ctx = from).data.root.page.url;
if (to.charAt() !== "/") return to;
if (!from) return (ctx.data.root.site.path || "") + to;
let hash = "";
const hashIdx = to.indexOf("#");
if (~hashIdx) {
hash = to.substr(hashIdx);
to = to.substr(0, hashIdx);
}
return to === from
? hash || (isDir(to) ? "./" : path.basename(to))
: (path.relative(path.dirname(from + "."), to) || ".") + (isDir(to) ? "/" + hash : hash);
};

function isDir (str) {
return str.charAt(str.length - 1) === "/";
}
3 changes: 3 additions & 0 deletions ui-bundle/helpers/year.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";

module.exports = () => new Date().getFullYear().toString();
Binary file added ui-bundle/img/SOC2-compliance-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/SOC2-compliance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/banners/get-premium-plugins.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/banners/get-support-now.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/banners/promo-box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/banners/roadmap-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/banners/start-creating-now.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/caret.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/chevron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions ui-bundle/img/home-o.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-bundle/img/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/octicons-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/primary-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/tiny-footer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui-bundle/img/tiny-small.svg
Binary file added ui-bundle/img/tiny-white-sm.png
1 change: 1 addition & 0 deletions ui-bundle/img/tiny-white.svg
1 change: 1 addition & 0 deletions ui-bundle/img/tiny.svg
Loading

0 comments on commit e61df50

Please sign in to comment.