Test Publish
This commit is contained in:
parent
226eb242e3
commit
5c6c5625bc
@ -43,7 +43,7 @@
|
|||||||
<AssetDir>PackageSources\module\MSFS\</AssetDir>
|
<AssetDir>PackageSources\module\MSFS\</AssetDir>
|
||||||
<OutputDir>modules\</OutputDir>
|
<OutputDir>modules\</OutputDir>
|
||||||
<Config>
|
<Config>
|
||||||
<Include>PDF-Reader-Debug.wasm</Include>
|
<Include>PDF-Reader.wasm</Include>
|
||||||
</Config>
|
</Config>
|
||||||
</AssetGroup>
|
</AssetGroup>
|
||||||
<AssetGroup Name="pdf-reader-panel">
|
<AssetGroup Name="pdf-reader-panel">
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pdf-reader",
|
"name": "pdf-reader",
|
||||||
"version": "1.0.5",
|
"version": "1.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
| kessler | stuff | prettier | perpetual | material | MIT | git+https://github.com/prettier/prettier.git | 3.1.0 | 3.1.0 | ^3.0.3 | James Long |
|
| kessler | stuff | prettier | perpetual | material | MIT | git+https://github.com/prettier/prettier.git | 3.1.0 | 3.1.0 | ^3.0.3 | James Long |
|
||||||
| kessler | stuff | prettier-plugin-organize-imports | perpetual | material | MIT | git+https://github.com/simonhaenisch/prettier-plugin-organize-imports.git | 3.2.4 | 3.2.4 | ^3.2.4 | Simon Haenisch (https://github.com/simonhaenisch) |
|
| kessler | stuff | prettier-plugin-organize-imports | perpetual | material | MIT | git+https://github.com/simonhaenisch/prettier-plugin-organize-imports.git | 3.2.4 | 3.2.4 | ^3.2.4 | Simon Haenisch (https://github.com/simonhaenisch) |
|
||||||
| kessler | stuff | rimraf | perpetual | material | ISC | git://github.com/isaacs/rimraf.git | 5.0.5 | 5.0.5 | ^5.0.1 | Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/) |
|
| kessler | stuff | rimraf | perpetual | material | ISC | git://github.com/isaacs/rimraf.git | 5.0.5 | 5.0.5 | ^5.0.1 | Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/) |
|
||||||
| kessler | stuff | rollup | perpetual | material | MIT | git+https://github.com/rollup/rollup.git | 4.5.1 | 4.4.1 | ^4.3.1 | Rich Harris |
|
| kessler | stuff | rollup | perpetual | material | MIT | git+https://github.com/rollup/rollup.git | 4.5.2 | 4.4.1 | ^4.3.1 | Rich Harris |
|
||||||
| kessler | stuff | rollup-plugin-copy | perpetual | material | MIT | git+https://github.com/vladshcherbin/rollup-plugin-copy.git | 3.5.0 | 3.5.0 | ^3.4.0 | Vlad Shcherbin <vlad.shcherbin@gmail.com> |
|
| kessler | stuff | rollup-plugin-copy | perpetual | material | MIT | git+https://github.com/vladshcherbin/rollup-plugin-copy.git | 3.5.0 | 3.5.0 | ^3.4.0 | Vlad Shcherbin <vlad.shcherbin@gmail.com> |
|
||||||
| kessler | stuff | rollup-plugin-postcss | perpetual | material | MIT | git+https://github.com/egoist/rollup-plugin-postcss.git | 4.0.2 | 4.0.2 | ^4.0.2 | EGOIST <0x142857@gmail.com> |
|
| kessler | stuff | rollup-plugin-postcss | perpetual | material | MIT | git+https://github.com/egoist/rollup-plugin-postcss.git | 4.0.2 | 4.0.2 | ^4.0.2 | EGOIST <0x142857@gmail.com> |
|
||||||
| kessler | stuff | rollup-plugin-react-svg | perpetual | material | MIT | git+https://github.com/boopathi/react-svg-loader.git | 3.0.3 | 3.0.3 | ^3.0.3 | boopathi |
|
| kessler | stuff | rollup-plugin-react-svg | perpetual | material | MIT | git+https://github.com/boopathi/react-svg-loader.git | 3.0.3 | 3.0.3 | ^3.0.3 | boopathi |
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
| Reference | Version | License Type | License |
|
|
||||||
| --------------------- | ------- | ------------ | ------------------------------ |
|
Project Reference(s) Analysis...
|
||||||
| Docnet.Core | 2.6.0 | MIT | https://licenses.nuget.org/MIT |
|
|
||||||
| System.Drawing.Common | 8.0.0 | MIT | https://licenses.nuget.org/MIT |
|
References:
|
||||||
|
| Reference | Version | License Type | License |
|
||||||
|
|---------------------------------------------------------------------------------|
|
||||||
|
| Docnet.Core | 2.6.0 | MIT | https://licenses.nuget.org/MIT |
|
||||||
|
| System.Drawing.Common | 8.0.0 | MIT | https://licenses.nuget.org/MIT |
|
||||||
|
|
||||||
|
|||||||
@ -94,19 +94,22 @@ const DataContextProvider: FC<PropsWithChildren<IDataContextProps>> = ({ dataLis
|
|||||||
const json: IJSONResponse = JSON.parse(args);
|
const json: IJSONResponse = JSON.parse(args);
|
||||||
console.log(json);
|
console.log(json);
|
||||||
switch (json.id) {
|
switch (json.id) {
|
||||||
case LIST:
|
case LIST: {
|
||||||
setList((json.data as IList[]).sort((a, b) => a.name.localeCompare(b.name)) ?? []);
|
setList((json.data as IList[]).sort((a, b) => a.name.localeCompare(b.name)) ?? []);
|
||||||
break;
|
break;
|
||||||
case LOAD:
|
}
|
||||||
|
case LOAD: {
|
||||||
const d = json.data as IData;
|
const d = json.data as IData;
|
||||||
setFile(d.file);
|
setFile(d.file);
|
||||||
if (d.bookMarks) {
|
if (d.bookMarks) {
|
||||||
setBookMarks(d.bookMarks);
|
setBookMarks(d.bookMarks);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SAVE:
|
}
|
||||||
|
case SAVE: {
|
||||||
setIsSaving(false);
|
setIsSaving(false);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
window.dispatchEvent(new Event('resize'));
|
window.dispatchEvent(new Event('resize'));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -125,9 +128,9 @@ const DataContextProvider: FC<PropsWithChildren<IDataContextProps>> = ({ dataLis
|
|||||||
dataListener.call('COMM_BUS_WASM_CALLBACK', COMMANDS, JSON.stringify({ cmd: LOAD, file: path }));
|
dataListener.call('COMM_BUS_WASM_CALLBACK', COMMANDS, JSON.stringify({ cmd: LOAD, file: path }));
|
||||||
};
|
};
|
||||||
|
|
||||||
const save = (path: string, bookMarks: IBookMark[]) => {
|
const save = (path: string, _bookMarks: IBookMark[]) => {
|
||||||
setIsSaving(true);
|
setIsSaving(true);
|
||||||
dataListener.call('COMM_BUS_WASM_CALLBACK', COMMANDS, JSON.stringify({ cmd: SAVE, path, bookMarks: bookMarks }));
|
dataListener.call('COMM_BUS_WASM_CALLBACK', COMMANDS, JSON.stringify({ cmd: SAVE, path, bookMarks: _bookMarks }));
|
||||||
};
|
};
|
||||||
|
|
||||||
const addBookMark = (path: string, bookMark: IBookMark) => {
|
const addBookMark = (path: string, bookMark: IBookMark) => {
|
||||||
|
|||||||
@ -38,9 +38,9 @@ const ListPage: FC = () => {
|
|||||||
setPath((prev) => {
|
setPath((prev) => {
|
||||||
let newPath = prev.split('/').slice(0, -2).join('/') + '/';
|
let newPath = prev.split('/').slice(0, -2).join('/') + '/';
|
||||||
if (newPath === '/') newPath = '/';
|
if (newPath === '/') newPath = '/';
|
||||||
setOffset((prev) => {
|
setOffset((_prev) => {
|
||||||
prev.pop();
|
_prev.pop();
|
||||||
return [...prev];
|
return [..._prev];
|
||||||
});
|
});
|
||||||
refresh(newPath);
|
refresh(newPath);
|
||||||
return newPath;
|
return newPath;
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
#define PACKAGE_DIR "/work/Files/"
|
#define PACKAGE_DIR "/work/Files/"
|
||||||
|
#else
|
||||||
|
#define PACKAGE_DIR "./Files/"
|
||||||
|
#endif
|
||||||
#define WORK_DIR "/work/BookMarks/"
|
#define WORK_DIR "/work/BookMarks/"
|
||||||
#define COMMANDS "KHOFMANN_PDF_READER_COMMANDS"
|
#define COMMANDS "KHOFMANN_PDF_READER_COMMANDS"
|
||||||
#define DATA "KHOFMANN_PDF_READER_DATA"
|
#define DATA "KHOFMANN_PDF_READER_DATA"
|
||||||
|
|||||||
@ -45,7 +45,7 @@
|
|||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
||||||
<TargetName>$(ProjectName)-$(Configuration)</TargetName>
|
<TargetName>$(ProjectName)</TargetName>
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<TargetExt>.wasm</TargetExt>
|
<TargetExt>.wasm</TargetExt>
|
||||||
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<TargetExt>.wasm</TargetExt>
|
<TargetExt>.wasm</TargetExt>
|
||||||
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
||||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
|
||||||
<TargetName>$(ProjectName)</TargetName>
|
<TargetName>$(ProjectName)</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user