Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudloop committed Nov 7, 2024
1 parent 94ce8d4 commit bd7edb3
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 35 deletions.
1 change: 0 additions & 1 deletion builders/src/cmaj/builder/preprocessors/JSPreprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class JSPreprocessor extends Preprocessor {
}
private compile = async (volumeId: string, path: string, src: string): Promise<string> => {
const url = new URL(`./$${volumeId}/${path}`, document.location.href).href;
console.log(url);
return await work<string>(/*js*/ `
self.onmessage = async function (event) {
const module = await import(event.data);
Expand Down
1 change: 0 additions & 1 deletion builders/src/cmaj/renderer/CmajRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ import { RendererOptions } from "../../core/types.js";
this.main = main;
const footer = this.shadowRoot!.appendChild(document.createElement('footer'));
this.shadowRoot!.append(footer);
console.log('audionode:', connection.audioNode, connection);
main!.appendChild((await createPatchViewHolder(connection)));
if (manifest.view?.width && manifest.view?.height) {
main.classList.add('sized');
Expand Down
10 changes: 5 additions & 5 deletions docs/bundle/js/embedder.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/bundle/js/embedder.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/bundle/js/index.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/bundle/js/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/bundle/js/previews.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/bundle/js/previews.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion playground/src/components/Playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ await App.init({
}

protected updated(_changedProperties: PropertyValues): void {
console.log(this.previewMode);
if (_changedProperties.has('layout')) {
const splitter = this.shadowRoot!.getElementById('content-splitter') as LitElement;
splitter?.requestUpdate();
Expand Down
1 change: 0 additions & 1 deletion playground/src/components/ProductsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ import { ContextManager } from "@cmajor-playground/utilities";

protected updated(_changedProperties: PropertyValues): void {
this.internalNodes.forEach(node => node.disconnect());
console.log(this.type);
switch (this.type) {
case 'oscillator':
this.nodes.forEach(node => this.osc.connect(node));
Expand Down
2 changes: 1 addition & 1 deletion playground/src/embedder/Embedder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { customElement, property } from "lit/decorators";
@property({ type: Boolean, attribute: 'preview-mode' }) previewMode = false;
render = () => html`
<dialog open>
<iframe src="./?hide-project-panel=${this.hideProjectPanel}${this.demo ? `&demo=${this.demo}` : ''}&hide-keyboard=${this.hideKeyboard}&preview-mode=${this.previewMode}"></iframe>
<iframe src="${new URL('../../', import.meta.url).href}./?hide-project-panel=${this.hideProjectPanel}${this.demo ? `&demo=${this.demo}` : ''}&hide-keyboard=${this.hideKeyboard}&preview-mode=${this.previewMode}"></iframe>
</dialog>
`;
protected firstUpdated(_changedProperties: PropertyValues): void {
Expand Down
1 change: 0 additions & 1 deletion playground/src/state/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export class App {
const projectVolume = await this.vfs.getVolume(info.id);
const artifacts = await this.vfs.createVolume([info.id, 'artifacts'].join(':'), {}, info.id);
if (remember || !this.lastOpenedProject) {
console.log('storing latest');
this.lastOpenedProject = info.id;
}
const ret = new Project(info, projectVolume);
Expand Down
1 change: 0 additions & 1 deletion playground/src/state/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class Project {
volume.watch(async (details) => {
if (!this.info.modified) {
this.info.modified = true;
console.log('setting modified');
volume.getMeta().then(async meta => {
await volume.setMeta({ ...meta, modified: true });
this.onChange.trigger();
Expand Down

0 comments on commit bd7edb3

Please sign in to comment.