Skip to content

Commit

Permalink
Merge pull request #10 from adamjgrant/v3.0.0
Browse files Browse the repository at this point in the history
V3.0.0
  • Loading branch information
adamjgrant authored Aug 10, 2022
2 parents f52e482 + a9cf78d commit 4558487
Show file tree
Hide file tree
Showing 86 changed files with 988 additions and 1,158 deletions.
1 change: 1 addition & 0 deletions .vscode/configurationCache.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"buildTargets":["watch"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
5 changes: 5 additions & 0 deletions .vscode/dryrun.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
make --dry-run --always-make --keep-going --print-directory
make: Entering directory `/Users/adamgrant/repos/Mozart'
python3 -m http.server 8000
make: Leaving directory `/Users/adamgrant/repos/Mozart'

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}
244 changes: 244 additions & 0 deletions .vscode/targets.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
# GNU Make 3.81
# Copyright (C) 2006 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# This program built for i386-apple-darwin11.3.0

# Make data base, printed on Tue Aug 9 19:47:23 2022

# Variables

# automatic
<D = $(patsubst %/,%,$(dir $<))
# automatic
?F = $(notdir $?)
# environment
NVM_INC = /Users/adamgrant/.nvm/versions/node/v16.16.0/include/node
# automatic
?D = $(patsubst %/,%,$(dir $?))
# environment
twitter_token_secret = rsdIhAltS1UBTykHGVrfDEVKuvf3KBZxNRm3ooM5cD9zc
# automatic
@F = $(notdir $@)
# makefile
CURDIR := /Users/adamgrant/repos/Mozart
# makefile
SHELL = /bin/sh
# environment
VSCODE_NLS_CONFIG = {"locale":"en-us","availableLanguages":{},"_languagePackSupport":true}
# environment
_ = /usr/bin/make
# makefile (from `Makefile', line 1)
MAKEFILE_LIST := Makefile
# automatic
@D = $(patsubst %/,%,$(dir $@))
# environment
__CFBundleIdentifier = com.microsoft.VSCode
# environment
INFOPATH = /opt/homebrew/share/info:
# environment
VSCODE_CWD = /
# environment
twitter_consumer_secret = UBb8roLwVnmsgIVLwyM4pm4EpAe6JSrUojNWPqs
# environment
PATH = /Users/adamgrant/.nvm/versions/node/v16.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin
# environment
twitter_token_key = 619382837-pNpfWXmw2vN2IrNT9HWUWAbVYY32bj6WQ8zxoHJq
# environment
LSCOLORS = Gxfxcxdxbxegedabagacad
# environment
NVM_BIN = /Users/adamgrant/.nvm/versions/node/v16.16.0/bin
# environment
ELECTRON_RUN_AS_NODE = 1
# default
.FEATURES := target-specific order-only second-expansion else-if archives jobserver check-symlink
# environment
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.cXAhIECPL7/Listeners
# automatic
%F = $(notdir $%)
# environment
airtable_buffer_base = app2X2gnPXhFKDs1t
# environment
OPENAI_API_KEY = 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
# environment
PWD = /Users/adamgrant/repos/Mozart
# environment
twitter_consumer_key = LIOPNzQQ1WcRJfguhFEszA
# environment
HOMEBREW_CELLAR = /opt/homebrew/Cellar
# environment
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
# environment
MANPATH = /Users/adamgrant/.nvm/versions/node/v16.16.0/share/man:/opt/homebrew/share/man::
# environment
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess
# environment
HOME = /Users/adamgrant
# default
MAKEFILEPATH = $(shell /usr/bin/xcode-select -print-path 2>/dev/null || echo /Developer)/Makefiles
# environment
VSCODE_CODE_CACHE_PATH = /Users/adamgrant/Library/Application Support/Code/CachedData/da76f93349a72022ca4670c1b84860304616aaa2
# environment
LOGNAME = adamgrant
# environment
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true
# environment
NVM_CD_FLAGS = -q
# environment
ZSH = /Users/adamgrant/.oh-my-zsh
# environment
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
# automatic
^D = $(patsubst %/,%,$(dir $^))
# environment
XPC_FLAGS = 0x0
# default
MAKE = $(MAKE_COMMAND)
# default
MAKECMDGOALS := all
# environment
SHLVL = 1
# default
MAKE_VERSION := 3.81
# environment
USER = adamgrant
# makefile
.DEFAULT_GOAL := watch
# environment
LESS = -R
# automatic
%D = $(patsubst %/,%,$(dir $%))
# default
MAKE_COMMAND := /Library/Developer/CommandLineTools/usr/bin/make
# default
.VARIABLES :=
# environment
TMPDIR = /var/folders/w9/r7_p3fh14mdfj9g8wj685tsm0000gn/T/
# automatic
*F = $(notdir $*)
# environment
VSCODE_IPC_HOOK = /Users/adamgrant/Library/Application Support/Code/1.70.0-main.sock
# environment
MallocNanoZone = 0
# makefile
MAKEFLAGS = Rrqp
# environment
MFLAGS = -Rrqp
# automatic
*D = $(patsubst %/,%,$(dir $*))
# environment
NVM_DIR = /Users/adamgrant/.nvm
# environment
XPC_SERVICE_NAME = application.com.microsoft.VSCode.23368604.23368612
# environment
HOMEBREW_PREFIX = /opt/homebrew
# automatic
+D = $(patsubst %/,%,$(dir $+))
# automatic
+F = $(notdir $+)
# environment
HOMEBREW_REPOSITORY = /opt/homebrew
# environment
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
# environment
COMMAND_MODE = unix2003
# default
MAKEFILES :=
# automatic
<F = $(notdir $<)
# environment
PAGER = less
# environment
LC_ALL = C
# automatic
^F = $(notdir $^)
# default
SUFFIXES :=
# environment
airtable_api_key = key8zh2I86egLc0do
# default
.INCLUDE_DIRS = /usr/local/include
# environment
MAKELEVEL := 0
# environment
LANG = C
# environment
VSCODE_PID = 5877
# variable set hash-table stats:
# Load=78/1024=8%, Rehash=0, Collisions=2/102=2%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# . (device 16777234, inode 23750998): 18 files, no impossibilities.

# 18 files, no impossibilities in 1 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:
all:
# Command-line target.
# Implicit rule search has been done.
# File does not exist.
# File has not been updated.
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/0=0%

# Not a target:
.SUFFIXES:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# Not a target:
Makefile:
# Implicit rule search has been done.
# Last modified 2022-08-09 10:46:41
# File has been updated.
# Successfully updated.
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/0=0%

watch:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# commands to execute (from `Makefile', line 2):
python3 -m http.server 8000


# Not a target:
.DEFAULT:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# files hash-table stats:
# Load=5/1024=0%, Rehash=0, Collisions=0/17=0%
# VPATH Search Paths

# No `vpath' search paths.

# No general (`VPATH' variable) search path.

# # of strings in strcache: 1
# # of strcache buffers: 1
# strcache size: total = 4096 / max = 4096 / min = 4096 / avg = 4096
# strcache free: total = 4087 / max = 4087 / min = 4087 / avg = 4087

# Finished Make data base on Tue Aug 9 19:47:23 2022


make: *** No rule to make target `all'. Stop.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
watch:
python -m SimpleHTTPServer 8000
python3 -m http.server 8000
23 changes: 18 additions & 5 deletions docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,28 @@ attachees.forEach(attachee => {
["html", "js", "css"].forEach(extension => {
doc_fetchers.push(new Promise((resolve, reject) => {
((extension, attachee, resolve, reject) => {
const enum_prism_extension = { html: "markup", js: "javascript", css: "css" }
const prism_extension = enum_prism_extension[extension];

var pre_content = "",
request = new XMLHttpRequest();

request.open("GET", `docs/${attachee.dataset.attach}/index.${extension}`, true);
request.onload = function() {
if (this.status >= 200 && this.status < 400) {
pre_content += this.response;
if (pre_content) {
pre_content = Prism.highlight(
pre_content, Prism.languages[prism_extension], prism_extension
)
}
var code = document.createElement("code");
code.innerHTML = escapeHTML(pre_content);
code.innerHTML = pre_content;
code.removeAttribute("hidden");
code.classList.add(extension == "js" ? "javascript" : extension);
attachee.querySelector("pre").appendChild(code);
resolve();
}
else { return resolve(); }
// else { return resolve(); }
}
request.send();
})(extension, attachee, resolve, reject);
Expand All @@ -47,11 +54,12 @@ attachees.forEach(attachee => {

var script = document.createElement("script");
script.src = `docs/${attachee.dataset.attach}/tests.js`
script.type = "module";
document.body.appendChild(script);
});

Promise.all(doc_fetchers).then(() => {
hljs.initHighlighting();
// TODO?: Allegedly things are ready for syntax highlighting here
});


Expand Down Expand Up @@ -106,7 +114,12 @@ doc = (config) => {

return `<h1>${test.term}</h1>${results}`
}).join("");
body.innerHTML += test_results;
if (body) {
body.innerHTML += test_results;
}
else {
console.error(`could not find attach ID: ${config.attach_id}`)
}
}

var show_tests = document.getElementById("show-tests"),
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/about/components/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div data-component="form"></div>
<main>
<div data-component="index"></div>
<div data-component="contact"></div>
</main>
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/about/dedicated-files/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* components/form/form.css */
[data-component="form"] {
background: white;
}
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/about/dedicated-files/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// components/form/form.js
import Component from "./mozart.js";
let form = new Component("form");
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions docs/about/deferred-actions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Component from "./mozart.js";
import index from "./components/index/index.js";
import contact from "./components/contact/contact.js";

let form = new Component("form");

form.assign({
submit() {
const [name, email] = this.fields;
// Defer remaining implementation to the components
// "contact" and "index"
const contactIndex = index.createContact({ name, email });
contact.showContactAtIndex({ index: contactIndex });
this.clear();
},

get fields() {
return this.q("input").map(input => input.value);
},

clear() {
this.q("input").forEach(input => input.value = "");
}
})

form.q(".submit").addEventListener("click", form.submit);
File renamed without changes.
28 changes: 0 additions & 28 deletions docs/about/example/index.html

This file was deleted.

Loading

0 comments on commit 4558487

Please sign in to comment.