move patterns and javascript to core directories

This commit is contained in:
2024-07-13 10:16:32 -04:00
parent 426f92cfd0
commit 4532389e3d
50 changed files with 55 additions and 1006 deletions

View File

@@ -1,5 +1,5 @@
// core and prism
import * as core from './_core.js';
import * as core from './core/_core.js';
import * as Prism from "../../node_modules/prismjs/prism";
import '../../node_modules/prismjs/components/prism-json';
import '../../node_modules/prismjs/components/prism-pug';
@@ -8,9 +8,9 @@ import "../../node_modules/prismjs/plugins/toolbar/prism-toolbar";
import "../../node_modules/prismjs/plugins/line-numbers/prism-line-numbers";
// import pattern stuff.
import * as swtch from "../pg/patterns/components/switch-core/_switch.js";
import * as stickynote from "../pg/patterns/components/sticky-note-core/_sticky-note.js";
import * as tabs from "../pg/patterns/layouts/tabs-core/_tabs.js";
import * as swtch from "../pg/patterns/core/components/switch/_switch.js";
import * as stickynote from "../pg/patterns/core/components/sticky-note/_sticky-note.js";
import * as tabs from "../pg/patterns/core/layouts/tabs/_tabs.js";
// init core
core.init({
@@ -24,34 +24,6 @@ core.init({
}
});
// handler for the deprecated switch
/*
// selectable content
jQuery.fn.OneClickSelect = function () {
return jQuery(this).on('click', function () {
// In here, "this" is the element
var range, selection;
if (window.getSelection) {
selection = window.getSelection();
range = document.createRange();
range.selectNodeContents(this);
selection.removeAllRanges();
selection.addRange(range);
} else if (document.body.createTextRange) {
range = document.body.createTextRange();
range.moveToElementText(this);
range.select();
}
});
};
*/
jQuery(document).ready(function($){
// show deprecated switch
function flipDeprecated() {