Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lilianalillyy committed May 17, 2023
1 parent c337185 commit 19fcf3b
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 26 deletions.
Empty file.
22 changes: 0 additions & 22 deletions assets/datagrid/plugins/features/url.ts

This file was deleted.

1 change: 0 additions & 1 deletion assets/datagrid/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ export * from "./features/confirm";
export * from "./features/editable";
export * from "./features/inline";
export * from "./features/item-detail";
export * from "./features/url";
8 changes: 5 additions & 3 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import "prismjs/components/prism-css";
// Styles

import '../css/main.css';
// import {JquerySortable} from "@datagrid/integrations/jquery-sortable";

document.addEventListener("DOMContentLoaded", () => {
// AJAX
naja.formsHandler.netteForms = netteForms;
naja.initialize();

Array.from(document.querySelectorAll('.dropdown'))
.forEach(el => new Dropdown(el))
Expand All @@ -47,16 +47,18 @@ document.addEventListener("DOMContentLoaded", () => {
new ConfirmPlugin(),
new InlinePlugin(),
new ItemDetailPlugin(),
new UrlPlugin(),
// new UrlPlugin(),
new NetteFormsPlugin(netteForms),
new HappyPlugin(new Happy()),
new SortablePlugin(new SortableJS()),
// new SortablePlugin(new JquerySortable()),
new DatepickerPlugin(new VanillaDatepicker({buttonClass: 'btn'})),
new SelectpickerPlugin(new TomSelect(Select)),
],
},
});

naja.initialize();

// Highlighting
const codes = document.querySelectorAll('code');
codes.forEach(code => {
Expand Down
1 change: 1 addition & 0 deletions config/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dibi:
port: %db.port%

session:
autoStart: smart
savePath: "%tempDir%/sessions"


Expand Down
36 changes: 36 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"vanillajs-datepicker": "^1.3.1"
},
"devDependencies": {
"@types/bootstrap-select": "^1.13.4",
"@types/jquery": "^3.5.16",
"@types/jqueryui": "^1.12.16",
"@types/sortablejs": "^1.15.1",
"@types/vanillajs-datepicker": "^1.2.1",
"autoprefixer": "^10.4.0",
Expand Down

0 comments on commit 19fcf3b

Please sign in to comment.