Yet another round of cleanup

This commit is contained in:
Johannes Loher 2021-06-29 21:07:13 +02:00
parent 38f1482c98
commit 34e619c783
14 changed files with 4 additions and 30 deletions

View file

@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
# Darkness Dependent Vision # Darkness Dependent Vision
A module for [Foundry Virtual Tabletop] that provides the ability to make the A module for [Foundry Virtual Tabletop] that provides functionality to make the
dim and bright vision of tokens depend on the scene's darkness level. dim and bright vision of tokens depend on the scene's darkness level.
## Installation ## Installation

View file

@ -2,7 +2,7 @@
"private": true, "private": true,
"name": "darkness-dependent-vision", "name": "darkness-dependent-vision",
"version": "0.0.1", "version": "0.0.1",
"description": "A module for Foundry Virtual Tabletop that provides the ability to make the dim and bright vision of tokens depend on the scene's darkness level.", "description": "A module for Foundry Virtual Tabletop that provides functionality to make the dim and bright vision of tokens depend on the scene's darkness level.",
"license": "MIT", "license": "MIT",
"homepage": "https://git.f3l.de/ghost/darkness-dependent-vision", "homepage": "https://git.f3l.de/ghost/darkness-dependent-vision",
"repository": { "repository": {

View file

@ -1,7 +1,7 @@
{ {
"name": "darkness-dependent-vision", "name": "darkness-dependent-vision",
"title": "Darkness Dependent Vision", "title": "Darkness Dependent Vision",
"description": "A module for Foundry Virtual Tabletop that provides the ability to make the dim and bright vision of tokens depend on the scene's darkness level.", "description": "A module for Foundry Virtual Tabletop that provides functionality to make the dim and bright vision of tokens depend on the scene's darkness level.",
"version": "0.0.1", "version": "0.0.1",
"author": "Johannes Loher", "author": "Johannes Loher",
"authors": [ "authors": [
@ -12,9 +12,7 @@
], ],
"minimumCoreVersion": "0.8.8", "minimumCoreVersion": "0.8.8",
"compatibleCoreVersion": "0.8.8", "compatibleCoreVersion": "0.8.8",
"scripts": [],
"esmodules": ["module/darkness-dependent-vision.js"], "esmodules": ["module/darkness-dependent-vision.js"],
"styles": ["styles/darkness-dependent-vision.css"],
"languages": [ "languages": [
{ {
"lang": "en", "lang": "en",
@ -22,13 +20,11 @@
"path": "lang/en.json" "path": "lang/en.json"
} }
], ],
"socket": false,
"url": "https://git.f3l.de/ghost/darkness-dependent-vision", "url": "https://git.f3l.de/ghost/darkness-dependent-vision",
"manifest": "https://git.f3l.de/ghost/darkness-dependent-vision/-/raw/latest/src/module.json?inline=false", "manifest": "https://git.f3l.de/ghost/darkness-dependent-vision/-/raw/latest/src/module.json?inline=false",
"download": "https://git.f3l.de/ghost/darkness-dependent-vision/-/jobs/artifacts/0.0.1/download?job=build", "download": "https://git.f3l.de/ghost/darkness-dependent-vision/-/jobs/artifacts/0.0.1/download?job=build",
"license": "MIT", "license": "MIT",
"readme": "https://git.f3l.de/ghost/darkness-dependent-vision/-/blob/master/README.md", "readme": "https://git.f3l.de/ghost/darkness-dependent-vision/-/blob/master/README.md",
"bugs": "https://git.f3l.de/ghost/darkness-dependent-vision/-/issues", "bugs": "https://git.f3l.de/ghost/darkness-dependent-vision/-/issues",
"changelog": "https://git.f3l.de/ghost/darkness-dependent-vision/-/releases", "changelog": "https://git.f3l.de/ghost/darkness-dependent-vision/-/releases"
"library": false
} }

View file

@ -2,6 +2,4 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
export const packageName = 'darkness-dependent-vision'; export const packageName = 'darkness-dependent-vision';

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
/** /**
* An application that provides functionality to configure darkness dependent * An application that provides functionality to configure darkness dependent
* vision for a {@link TokenDocument}. * vision for a {@link TokenDocument}.

View file

@ -2,7 +2,5 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
import registerForHooks from './hooks'; import registerForHooks from './hooks';
registerForHooks(); registerForHooks();

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
import registerForGetTokenConfigHeaderButtonsHook from './hooks/getTokenConfigHeaderButtons'; import registerForGetTokenConfigHeaderButtonsHook from './hooks/getTokenConfigHeaderButtons';
import registerForInitHook from './hooks/init'; import registerForInitHook from './hooks/init';
import registerForUpdateSceneHook from './hooks/updateScene'; import registerForUpdateSceneHook from './hooks/updateScene';

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
import { DarknessDependentVisionConfig } from '../darkness-dependent-vision-config'; import { DarknessDependentVisionConfig } from '../darkness-dependent-vision-config';
export default function registerForGetTokenConfigHeaderButtonsHook() { export default function registerForGetTokenConfigHeaderButtonsHook() {

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
import { packageName } from '../config'; import { packageName } from '../config';
import logger from '../logger'; import logger from '../logger';
import { libWrapper } from '../shims/libWrapperShim'; import { libWrapper } from '../shims/libWrapperShim';

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
export default function registerForUpdateSceneHook() { export default function registerForUpdateSceneHook() {
Hooks.on('updateScene', onUpdateScene); Hooks.on('updateScene', onUpdateScene);
} }

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
export default function registerForUpdateTokenHook() { export default function registerForUpdateTokenHook() {
Hooks.on('updateToken', onUpdateToken); Hooks.on('updateToken', onUpdateToken);
} }

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
const loggingContext = 'Darkness Dependent Vision'; const loggingContext = 'Darkness Dependent Vision';
const loggingSeparator = '|'; const loggingSeparator = '|';

View file

@ -3,8 +3,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
// A shim for the libWrapper library // A shim for the libWrapper library
export let libWrapper = undefined; export let libWrapper = undefined;

View file

@ -2,8 +2,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
'use strict';
import { packageName } from '../config'; import { packageName } from '../config';
/** /**