Test Publish
This commit is contained in:
parent
226eb242e3
commit
5c6c5625bc
@ -43,7 +43,7 @@
|
||||
<AssetDir>PackageSources\module\MSFS\</AssetDir>
|
||||
<OutputDir>modules\</OutputDir>
|
||||
<Config>
|
||||
<Include>PDF-Reader-Debug.wasm</Include>
|
||||
<Include>PDF-Reader.wasm</Include>
|
||||
</Config>
|
||||
</AssetGroup>
|
||||
<AssetGroup Name="pdf-reader-panel">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pdf-reader",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"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-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 | 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-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 |
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
| 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 |
|
||||
|
||||
Project Reference(s) Analysis...
|
||||
|
||||
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);
|
||||
console.log(json);
|
||||
switch (json.id) {
|
||||
case LIST:
|
||||
case LIST: {
|
||||
setList((json.data as IList[]).sort((a, b) => a.name.localeCompare(b.name)) ?? []);
|
||||
break;
|
||||
case LOAD:
|
||||
}
|
||||
case LOAD: {
|
||||
const d = json.data as IData;
|
||||
setFile(d.file);
|
||||
if (d.bookMarks) {
|
||||
setBookMarks(d.bookMarks);
|
||||
}
|
||||
break;
|
||||
case SAVE:
|
||||
}
|
||||
case SAVE: {
|
||||
setIsSaving(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
} 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 }));
|
||||
};
|
||||
|
||||
const save = (path: string, bookMarks: IBookMark[]) => {
|
||||
const save = (path: string, _bookMarks: IBookMark[]) => {
|
||||
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) => {
|
||||
|
||||
@ -38,9 +38,9 @@ const ListPage: FC = () => {
|
||||
setPath((prev) => {
|
||||
let newPath = prev.split('/').slice(0, -2).join('/') + '/';
|
||||
if (newPath === '/') newPath = '/';
|
||||
setOffset((prev) => {
|
||||
prev.pop();
|
||||
return [...prev];
|
||||
setOffset((_prev) => {
|
||||
_prev.pop();
|
||||
return [..._prev];
|
||||
});
|
||||
refresh(newPath);
|
||||
return newPath;
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define PACKAGE_DIR "/work/Files/"
|
||||
#else
|
||||
#define PACKAGE_DIR "./Files/"
|
||||
#endif
|
||||
#define WORK_DIR "/work/BookMarks/"
|
||||
#define COMMANDS "KHOFMANN_PDF_READER_COMMANDS"
|
||||
#define DATA "KHOFMANN_PDF_READER_DATA"
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
||||
<TargetName>$(ProjectName)-$(Configuration)</TargetName>
|
||||
<TargetName>$(ProjectName)</TargetName>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<TargetExt>.wasm</TargetExt>
|
||||
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
||||
@ -55,7 +55,7 @@
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetExt>.wasm</TargetExt>
|
||||
<IncludePath>$(MSFS_IncludePath)</IncludePath>
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
|
||||
<TargetName>$(ProjectName)</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user