ac-apps-minimal-enhance-argv

enhance/argv.js

Read command line arguments and parse only the required ones. Arguments can be specified in key=value format. Example: airtable-api-key=XXXXXXXX_XXXXXXXXX airtable-base-name=XXXXXXXX … The arguments are further checked and verified by the needed scripts.

A module for ac-bundle-app, published by ac-bundle-module. …

ac-bundle-module-frontend-modules-translation

frontend/modules/translation.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: languages, elements, key, default, userLanguage, language, select, load, start

languages


elements

[object Object]
key

getter
default

English
userLanguage

getter
language

getter
select

function(language) {
  for (var key in mod.keywords) {

ac-bundle-module-frontend-modules-storage

frontend/modules/storage.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: get, set

get

function(key, type) {
  if (!app.has(type)) type = "local";
  return window[type + "Storage"].getItem(key);
}

set

function(key, value, type) {
  if (!app.has(type)) type = "local";
  window[type + "Storage"].setItem(key, value);

ac-bundle-module-frontend-modules-transition

frontend/modules/transition.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: remove, start

remove

function(element) {
  element.className = element.className.split(" no-transition").join("");
}

start

function() {
  mod.remove(app.element);
}

Happy Coding!…

ac-bundle-module-api-leveldb

api/leveldb.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: levels, level, db, getCallback, putCallback

levels

[object Object]
level

[object Object]
db

function(path) {
  fs.mkdirSync("./" + path, {recursive: true});
  if (!app.has(mod.levels[path])) mod.levels[path] = mod.level(path);
  return mod.levels[path];
}

getCallback

async function(callback,

ac-bundle-module-utils-airtable-sync

utils/airtable/sync.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: records

records

async function(callbacks, configKey, sourceRecords, records, itemKey, table, fields) {
  if (typeof itemKey === "string") {
    var str = itemKey;
    itemKey = {left: str, right: str};
  };
  if (!app.has(sourceRecords))

ac-bundle-module-utils-hosting

utils/hosting.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: contentTypes, static

contentTypes

[object Object]
static

function(request, response) {
  if (app.has(app.hosting)) {
    var fs = require('fs');
    var path = require('path');
    var http = require('http');
    var resolvedBase = path.resolve(__dirname + "/hosting/");

ac-bundle-module-api-modernmt

api/modernmt.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: languagesCallback, translateWordCallback, translateHTMLCallback, translateCallback

languagesCallback

async function(callback, errorCallback) {
  var headers = {
    "Accept": "application/json",
    "Content-type": "application/json",
    "MMT-ApiKey": config.modernmt.key,
  };
  var result = await fetch(config.modernmt.link + "/languages", {headers: headers});
  if

ac-bundle-module-utils-text

utils/text.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: encodeEntities, decodeEntities, document, numeral, parse, strip, clean

encodeEntities

function encode(text, _a) {
    var _b = _a === void 0 ? defaultEncodeOptions : _a, _c = _b.mode, mode = _c ===