From 1ed33efec1f15eb07fdcb2eb6a24f36fdeea813e Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 2 Oct 2024 08:10:38 +0200 Subject: [PATCH] fix(infohtml): Refactor infohtml module and fix import paths --- changelog.md | 7 +++++++ ts/00_commitinfo_data.ts | 2 +- {ts/infohtml => ts_infohtml}/classes.infohtml.ts | 2 +- {ts/infohtml => ts_infohtml}/index.ts | 0 ts_infohtml/plugins.ts | 5 +++++ {ts/infohtml => ts_infohtml}/template.ts | 2 +- 6 files changed, 15 insertions(+), 3 deletions(-) rename {ts/infohtml => ts_infohtml}/classes.infohtml.ts (95%) rename {ts/infohtml => ts_infohtml}/index.ts (100%) create mode 100644 ts_infohtml/plugins.ts rename {ts/infohtml => ts_infohtml}/template.ts (99%) diff --git a/changelog.md b/changelog.md index c9ebef3..cb912c6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2024-10-02 - 1.0.9 - fix(infohtml) +Refactor infohtml module and fix import paths + +- Refactored ts_infohtml module. +- Fixed incorrect import paths in ts_infohtml module. +- Ensured that the InfoHtml class and related templates are properly imported and used. + ## 2024-10-02 - 1.0.8 - fix(core) Maintain dependencies, update metadata diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 69d513b..ce5d7fe 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/platformclient', - version: '1.0.8', + version: '1.0.9', description: 'a module that makes it really easy to use the serve.zone platform inside your app' } diff --git a/ts/infohtml/classes.infohtml.ts b/ts_infohtml/classes.infohtml.ts similarity index 95% rename from ts/infohtml/classes.infohtml.ts rename to ts_infohtml/classes.infohtml.ts index ca9ea6f..8fcbf79 100644 --- a/ts/infohtml/classes.infohtml.ts +++ b/ts_infohtml/classes.infohtml.ts @@ -1,4 +1,4 @@ -import * as plugins from '../plugins.js'; +import * as plugins from '../ts/plugins.js'; import { simpleInfo } from './template.js'; diff --git a/ts/infohtml/index.ts b/ts_infohtml/index.ts similarity index 100% rename from ts/infohtml/index.ts rename to ts_infohtml/index.ts diff --git a/ts_infohtml/plugins.ts b/ts_infohtml/plugins.ts new file mode 100644 index 0000000..7c30820 --- /dev/null +++ b/ts_infohtml/plugins.ts @@ -0,0 +1,5 @@ +import * as smartntml from '@push.rocks/smartntml'; + +export { + smartntml, +} diff --git a/ts/infohtml/template.ts b/ts_infohtml/template.ts similarity index 99% rename from ts/infohtml/template.ts rename to ts_infohtml/template.ts index 9765323..50b0cfa 100644 --- a/ts/infohtml/template.ts +++ b/ts_infohtml/template.ts @@ -1,4 +1,4 @@ -import * as plugins from '../plugins.js'; +import * as plugins from './plugins.js'; import { type IHtmlInfoOptions } from './classes.infohtml.js'; export const simpleInfo = async (