Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-cc committed Jul 17, 2022
1 parent 78865c5 commit 91b08b7
Show file tree
Hide file tree
Showing 30 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion src/lib/action/clickoutside.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop } from '$lib/meta'
import { listen, noop } from '$lib/meta/index.js'

/**
* Executes a function when clicking anywhere but on the target node.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/clipboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen } from "$lib/meta"
import { listen } from "$lib/meta/index.js"

/**
* Copies the textContent of the element (or a specified target) to clipboard on click.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/download.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen } from "$lib/meta"
import { listen } from "$lib/meta/index.js"

/**
* Downloads the textContent of the element (or a specified target) into a .txt file on click.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/draggable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen } from "$lib/meta"
import { listen } from "$lib/meta/index.js"

/**
* Allows positioning of an element by dragging it from the element or an optional handle.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/focus.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { noop } from "$lib/meta"
import { noop } from "$lib/meta/index.js"

/**
* Focuses element when it mounts. Only works on focusable elements.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/focustrap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { noop, listen } from "$lib/meta"
import { noop, listen } from "$lib/meta/index.js"

// This list originates from: https://stackoverflow.com/a/30753870
const FOCUSABLE = `
Expand Down
32 changes: 16 additions & 16 deletions src/lib/action/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export { active } from './active'
export { clickoutside } from './clickoutside'
export { copy, paste } from './clipboard'
export { download } from './download'
export { draggable } from './draggable'
export { focus } from './focus'
export { focustrap } from './focustrap'
export { keydown, keyup, type keyMap } from './kb'
export { onclose } from './onclose'
export { portal } from './portal'
export { press } from './press'
export { resize } from './resize'
export { select } from './select'
export { themetoggle } from './themetoggle'
export { timedclick } from './timedclick'
export { viewport } from './viewport'
export { active } from './active.js'
export { clickoutside } from './clickoutside.js'
export { copy, paste } from './clipboard.js'
export { download } from './download.js'
export { draggable } from './draggable.js'
export { focus } from './focus.js'
export { focustrap } from './focustrap.js'
export { keydown, keyup, type keyMap } from './kb.js'
export { onclose } from './onclose.js'
export { portal } from './portal.js'
export { press } from './press.js'
export { resize } from './resize.js'
export { select } from './select.js'
export { themetoggle } from './themetoggle.js'
export { timedclick } from './timedclick.js'
export { viewport } from './viewport.js'
2 changes: 1 addition & 1 deletion src/lib/action/kb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop } from '$lib/meta'
import { listen, noop } from '$lib/meta/index.js'

export type keyMap = { [key: string]: Function }

Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/onclose.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop } from '$lib/meta';
import { listen, noop } from '$lib/meta/index.js';

/**
* Executes an optional fuction on the onclose event, and displays an 'are you sure' modal.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/press.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop, timeout } from "$lib/meta"
import { listen, noop, timeout } from "$lib/meta/index.js"

/**
* Dispatches a press event or calls a handler if pressed down for duration milliseconds.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/resize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop } from "$lib/meta"
import { listen, noop } from "$lib/meta/index.js"

/**
* Dispatches an event or calls a handler if an element is resized.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/select.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen } from '$lib/meta';
import { listen } from '$lib/meta/index.js';

/**
* Selects the content of the element (or a specified target) on click.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/themetoggle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop } from '$lib/meta';
import { listen, noop } from '$lib/meta/index.js';

/**
* Theme Toggler.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/timedclick.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listen, noop, timeout } from "$lib/meta"
import { listen, noop, timeout } from "$lib/meta/index.js"

/**
* Dispatches an event or calls a handler if released within 'duration' milliseconds.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export {
countReset,
dir,
dirxml,
clear } from './log';
export { default as console } from './log'
clear } from './log.js';
export { default as console } from './log.js'
6 changes: 3 additions & 3 deletions src/lib/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { mx, my, mouse } from './mouse'
export { ww, wh, windowSize, sx, sy, scroll } from './window'
export { theme } from './theme'
export { mx, my, mouse } from './mouse.js'
export { ww, wh, windowSize, sx, sy, scroll } from './window.js'
export { theme } from './theme.js'
2 changes: 1 addition & 1 deletion src/lib/client/mouse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { browser } from '$app/env';
import { derived, writable } from 'svelte/store';
import { listen } from '$lib/meta';
import { listen } from '$lib/meta/index.js';

const create = (prop: 'clientX' | 'clientY') => {
const { subscribe, set } = writable(0);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/client/window.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { browser } from '$app/env';
import { derived, writable } from 'svelte/store';
import { listen } from '$lib/meta';
import { listen } from '$lib/meta/index.js';

const createSize = (prop: 'innerWidth' | 'innerHeight') => {
const { subscribe, set } = writable(0);
Expand Down
16 changes: 8 additions & 8 deletions src/lib/meta/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './clone'
export * from './debounce'
export * from './event'
export * from './fn'
export * from './memoize'
export * from './random'
export * from './range'
export * from './timeout'
export * from './clone.js'
export * from './debounce.js'
export * from './event.js'
export * from './fn.js'
export * from './memoize.js'
export * from './random.js'
export * from './range.js'
export * from './timeout.js'
4 changes: 2 additions & 2 deletions src/lib/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './localstore';
export * from './resettable';
export * from './localstore.js';
export * from './resettable.js';
2 changes: 1 addition & 1 deletion src/lib/store/localstore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { browser } from '$app/env';
import { noop } from '$lib/meta';
import { noop } from '$lib/meta/index.js';
import { writable } from "svelte/store";

/**
Expand Down
Empty file added src/lib/store/mq.ts
Empty file.
2 changes: 1 addition & 1 deletion src/lib/store/resettable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { writable, type StartStopNotifier } from "svelte/store";
import { clone } from "$lib/meta"
import { clone } from "$lib/meta/index.js"

/**
* Resettable writable store. Allows any values (including objects).
Expand Down
30 changes: 15 additions & 15 deletions src/lib/svelte/action/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export { clickoutside } from '../../action/clickoutside'
export { copy, paste } from '../../action/clipboard'
export { download } from '../../action/download'
export { draggable } from '../../action/draggable'
export { focus } from '../../action/focus'
export { focustrap } from '../../action/focustrap'
export { keydown, keyup, type keyMap } from '../../action/kb'
export { onclose } from '../../action/onclose'
export { portal } from '../../action/portal'
export { press } from '../../action/press'
export { resize } from '../../action/resize'
export { select } from '../../action/select'
export { themetoggle } from '../../action/themetoggle'
export { timedclick } from '../../action/timedclick'
export { viewport } from '../../action/viewport'
export { clickoutside } from '../../action/index.js'
export { copy, paste } from '../../action/index.js'
export { download } from '../../action/index.js'
export { draggable } from '../../action/index.js'
export { focus } from '../../action/index.js'
export { focustrap } from '../../action/index.js'
export { keydown, keyup, type keyMap } from '../../action/index.js'
export { onclose } from '../../action/index.js'
export { portal } from '../../action/index.js'
export { press } from '../../action/index.js'
export { resize } from '../../action/index.js'
export { select } from '../../action/index.js'
export { themetoggle } from '../../action/index.js'
export { timedclick } from '../../action/index.js'
export { viewport } from '../../action/index.js'
6 changes: 3 additions & 3 deletions src/lib/svelte/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { mx, my, mouse } from './mouse'
export { ww, wh, windowSize, sx, sy, scroll } from './window'
export { theme } from './theme'
export { mx, my, mouse } from './mouse.js'
export { ww, wh, windowSize, sx, sy, scroll } from './window.js'
export { theme } from './theme.js'
2 changes: 1 addition & 1 deletion src/lib/svelte/client/mouse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { derived, writable } from 'svelte/store';
import { listen } from '$lib/meta';
import { listen } from '$lib/meta/index.js';

const create = (prop: 'clientX' | 'clientY') => {
const { subscribe, set } = writable(0);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/svelte/client/window.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { derived, writable } from 'svelte/store';
import { listen } from '$lib/meta';
import { listen } from '$lib/meta/index.js';

const createSize = (prop: 'innerWidth' | 'innerHeight') => {
const { subscribe, set } = writable(0);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/svelte/components/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as OnMount } from '../../components/OnMount.svelte'
export { OnMount } from '../../components/index.js'
4 changes: 2 additions & 2 deletions src/lib/svelte/transition/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from '../../transition/slide';
export * from '../../transition/typewriter';
export * from '../../transition/index.js';
export * from '../../transition/index.js';
4 changes: 2 additions & 2 deletions src/lib/transition/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './slide';
export * from './typewriter';
export * from './slide.js';
export * from './typewriter.js';

1 comment on commit 91b08b7

@vercel
Copy link

@vercel vercel bot commented on 91b08b7 Jul 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svutil – ./

svutil-theministry.vercel.app
svu.vercel.app
svutil-git-main-theministry.vercel.app

Please sign in to comment.