@stencil/core 4.43.2 → 5.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/stencil.mjs +2 -0
- package/dist/chunk-ClPoSABd.mjs +21 -0
- package/dist/client-DR9zhmKG.mjs +4449 -0
- package/dist/compiler/index.d.mts +187 -0
- package/dist/compiler/index.mjs +9 -0
- package/dist/compiler/utils/index.d.mts +3 -0
- package/dist/compiler/utils/index.mjs +5 -0
- package/dist/declarations/stencil-public-compiler.d.ts +4401 -0
- package/dist/declarations/stencil-public-compiler.js +53 -0
- package/dist/declarations/stencil-public-runtime.d.ts +1857 -0
- package/dist/index-Bxo2jCf6.d.mts +77 -0
- package/dist/index-szczUd2l.d.mts +6851 -0
- package/{internal/stencil-core/index.d.ts → dist/index.d.mts} +7 -3
- package/dist/index.mjs +4 -0
- package/dist/mock-doc.d.mts +1 -0
- package/dist/mock-doc.mjs +3 -0
- package/dist/node-sys-BGURUNOZ.mjs +1954 -0
- package/{internal → dist/runtime}/app-data/index.d.ts +11 -7
- package/dist/runtime/app-data/index.js +100 -0
- package/dist/runtime/app-globals/index.d.ts +5 -0
- package/dist/runtime/app-globals/index.js +6 -0
- package/dist/runtime/client/index.d.ts +2286 -0
- package/dist/runtime/client/index.js +4839 -0
- package/dist/runtime/index.d.ts +221 -0
- package/dist/runtime/index.js +4819 -0
- package/dist/runtime/server/index.d.mts +1277 -0
- package/dist/runtime/server/index.mjs +5376 -0
- package/dist/runtime/server/runner.d.mts +298 -0
- package/dist/runtime/server/runner.mjs +1976 -0
- package/dist/serialize-BJvhE9aQ.mjs +775 -0
- package/dist/stencil-private-Cgcr414u.d.ts +1893 -0
- package/dist/sys/node/index.d.mts +33 -0
- package/dist/sys/node/index.mjs +7 -0
- package/dist/sys/node/worker.d.mts +1 -0
- package/dist/sys/node/worker.mjs +60 -0
- package/dist/testing/index.d.mts +207 -0
- package/dist/testing/index.mjs +1188 -0
- package/dist/transpile-CJQcQEVa.mjs +21854 -0
- package/dist/validation-BdcPruW_.mjs +1451 -0
- package/package.json +88 -232
- package/bin/stencil +0 -57
- package/cli/config-flags.d.ts +0 -132
- package/cli/index.cjs +0 -5816
- package/cli/index.d.ts +0 -19
- package/cli/index.js +0 -5809
- package/cli/package.json +0 -14
- package/compiler/lib.d.ts +0 -22
- package/compiler/lib.decorators.d.ts +0 -384
- package/compiler/lib.decorators.legacy.d.ts +0 -22
- package/compiler/lib.dom.asynciterable.d.ts +0 -41
- package/compiler/lib.dom.d.ts +0 -29610
- package/compiler/lib.dom.iterable.d.ts +0 -493
- package/compiler/lib.es2015.collection.d.ts +0 -147
- package/compiler/lib.es2015.core.d.ts +0 -597
- package/compiler/lib.es2015.d.ts +0 -28
- package/compiler/lib.es2015.generator.d.ts +0 -77
- package/compiler/lib.es2015.iterable.d.ts +0 -605
- package/compiler/lib.es2015.promise.d.ts +0 -81
- package/compiler/lib.es2015.proxy.d.ts +0 -128
- package/compiler/lib.es2015.reflect.d.ts +0 -144
- package/compiler/lib.es2015.symbol.d.ts +0 -46
- package/compiler/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/compiler/lib.es2016.array.include.d.ts +0 -116
- package/compiler/lib.es2016.d.ts +0 -21
- package/compiler/lib.es2016.full.d.ts +0 -23
- package/compiler/lib.es2016.intl.d.ts +0 -31
- package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
- package/compiler/lib.es2017.d.ts +0 -26
- package/compiler/lib.es2017.date.d.ts +0 -31
- package/compiler/lib.es2017.full.d.ts +0 -23
- package/compiler/lib.es2017.intl.d.ts +0 -44
- package/compiler/lib.es2017.object.d.ts +0 -49
- package/compiler/lib.es2017.sharedmemory.d.ts +0 -135
- package/compiler/lib.es2017.string.d.ts +0 -45
- package/compiler/lib.es2017.typedarrays.d.ts +0 -53
- package/compiler/lib.es2018.asyncgenerator.d.ts +0 -77
- package/compiler/lib.es2018.asynciterable.d.ts +0 -53
- package/compiler/lib.es2018.d.ts +0 -24
- package/compiler/lib.es2018.full.d.ts +0 -24
- package/compiler/lib.es2018.intl.d.ts +0 -83
- package/compiler/lib.es2018.promise.d.ts +0 -30
- package/compiler/lib.es2018.regexp.d.ts +0 -37
- package/compiler/lib.es2019.array.d.ts +0 -79
- package/compiler/lib.es2019.d.ts +0 -24
- package/compiler/lib.es2019.full.d.ts +0 -24
- package/compiler/lib.es2019.intl.d.ts +0 -23
- package/compiler/lib.es2019.object.d.ts +0 -33
- package/compiler/lib.es2019.string.d.ts +0 -37
- package/compiler/lib.es2019.symbol.d.ts +0 -24
- package/compiler/lib.es2020.bigint.d.ts +0 -765
- package/compiler/lib.es2020.d.ts +0 -27
- package/compiler/lib.es2020.date.d.ts +0 -42
- package/compiler/lib.es2020.full.d.ts +0 -24
- package/compiler/lib.es2020.intl.d.ts +0 -474
- package/compiler/lib.es2020.number.d.ts +0 -28
- package/compiler/lib.es2020.promise.d.ts +0 -47
- package/compiler/lib.es2020.sharedmemory.d.ts +0 -99
- package/compiler/lib.es2020.string.d.ts +0 -44
- package/compiler/lib.es2020.symbol.wellknown.d.ts +0 -41
- package/compiler/lib.es2021.d.ts +0 -23
- package/compiler/lib.es2021.full.d.ts +0 -24
- package/compiler/lib.es2021.intl.d.ts +0 -166
- package/compiler/lib.es2021.promise.d.ts +0 -48
- package/compiler/lib.es2021.string.d.ts +0 -33
- package/compiler/lib.es2021.weakref.d.ts +0 -78
- package/compiler/lib.es2022.array.d.ts +0 -121
- package/compiler/lib.es2022.d.ts +0 -25
- package/compiler/lib.es2022.error.d.ts +0 -75
- package/compiler/lib.es2022.full.d.ts +0 -24
- package/compiler/lib.es2022.intl.d.ts +0 -121
- package/compiler/lib.es2022.object.d.ts +0 -26
- package/compiler/lib.es2022.regexp.d.ts +0 -39
- package/compiler/lib.es2022.string.d.ts +0 -25
- package/compiler/lib.es2023.array.d.ts +0 -924
- package/compiler/lib.es2023.collection.d.ts +0 -21
- package/compiler/lib.es2023.d.ts +0 -22
- package/compiler/lib.es2023.full.d.ts +0 -24
- package/compiler/lib.es2023.intl.d.ts +0 -56
- package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
- package/compiler/lib.es2024.collection.d.ts +0 -29
- package/compiler/lib.es2024.d.ts +0 -26
- package/compiler/lib.es2024.full.d.ts +0 -24
- package/compiler/lib.es2024.object.d.ts +0 -29
- package/compiler/lib.es2024.promise.d.ts +0 -35
- package/compiler/lib.es2024.regexp.d.ts +0 -25
- package/compiler/lib.es2024.sharedmemory.d.ts +0 -68
- package/compiler/lib.es2024.string.d.ts +0 -29
- package/compiler/lib.es5.d.ts +0 -4594
- package/compiler/lib.es6.d.ts +0 -23
- package/compiler/lib.esnext.array.d.ts +0 -35
- package/compiler/lib.esnext.collection.d.ts +0 -96
- package/compiler/lib.esnext.d.ts +0 -27
- package/compiler/lib.esnext.decorators.d.ts +0 -28
- package/compiler/lib.esnext.disposable.d.ts +0 -193
- package/compiler/lib.esnext.float16.d.ts +0 -443
- package/compiler/lib.esnext.full.d.ts +0 -24
- package/compiler/lib.esnext.intl.d.ts +0 -21
- package/compiler/lib.esnext.iterator.d.ts +0 -148
- package/compiler/lib.esnext.promise.d.ts +0 -34
- package/compiler/lib.scripthost.d.ts +0 -322
- package/compiler/lib.webworker.asynciterable.d.ts +0 -41
- package/compiler/lib.webworker.d.ts +0 -9894
- package/compiler/lib.webworker.importscripts.d.ts +0 -23
- package/compiler/lib.webworker.iterable.d.ts +0 -287
- package/compiler/package.json +0 -8
- package/compiler/stencil.d.ts +0 -73
- package/compiler/stencil.js +0 -287816
- package/compiler/sys/in-memory-fs.d.ts +0 -227
- package/compiler/transpile.d.ts +0 -32
- package/dev-server/client/app-error.d.ts +0 -20
- package/dev-server/client/events.d.ts +0 -6
- package/dev-server/client/hmr-components.d.ts +0 -12
- package/dev-server/client/hmr-external-styles.d.ts +0 -1
- package/dev-server/client/hmr-images.d.ts +0 -1
- package/dev-server/client/hmr-inline-styles.d.ts +0 -1
- package/dev-server/client/hmr-util.d.ts +0 -39
- package/dev-server/client/hmr-window.d.ts +0 -10
- package/dev-server/client/index.d.ts +0 -6
- package/dev-server/client/index.js +0 -793
- package/dev-server/client/logger.d.ts +0 -6
- package/dev-server/client/package.json +0 -8
- package/dev-server/client/progress.d.ts +0 -3
- package/dev-server/client/status.d.ts +0 -4
- package/dev-server/client/test/hmr-util.spec.d.ts +0 -1
- package/dev-server/client/test/status.spec.d.ts +0 -1
- package/dev-server/connector.html +0 -6
- package/dev-server/index.d.ts +0 -3
- package/dev-server/index.js +0 -247
- package/dev-server/package.json +0 -8
- package/dev-server/server-process.js +0 -12095
- package/dev-server/server-worker-thread.js +0 -39
- package/dev-server/static/favicon.ico +0 -0
- package/dev-server/templates/directory-index.html +0 -176
- package/dev-server/templates/initial-load.html +0 -168
- package/dev-server/visualstudio.vbs +0 -82
- package/dev-server/xdg-open +0 -1066
- package/internal/app-data/index.cjs +0 -119
- package/internal/app-data/index.js +0 -92
- package/internal/app-data/package.json +0 -15
- package/internal/app-globals/index.d.ts +0 -2
- package/internal/app-globals/index.js +0 -14
- package/internal/app-globals/package.json +0 -14
- package/internal/child_process.d.ts +0 -7
- package/internal/client/index.js +0 -4736
- package/internal/client/package.json +0 -10
- package/internal/client/patch-browser.js +0 -45
- package/internal/client/polyfills/core-js.js +0 -11
- package/internal/client/polyfills/dom.js +0 -79
- package/internal/client/polyfills/es5-html-element.js +0 -1
- package/internal/client/polyfills/index.js +0 -34
- package/internal/client/polyfills/system.js +0 -6
- package/internal/client/shadow-css.js +0 -414
- package/internal/hydrate/index.js +0 -6671
- package/internal/hydrate/package.json +0 -7
- package/internal/hydrate/runner.d.ts +0 -287
- package/internal/hydrate/runner.js +0 -17950
- package/internal/index.d.ts +0 -4
- package/internal/index.js +0 -2
- package/internal/package.json +0 -9
- package/internal/stencil-core/index.cjs +0 -1
- package/internal/stencil-core/index.js +0 -18
- package/internal/stencil-core/jsx-dev-runtime.cjs +0 -7
- package/internal/stencil-core/jsx-dev-runtime.d.ts +0 -41
- package/internal/stencil-core/jsx-dev-runtime.js +0 -2
- package/internal/stencil-core/jsx-runtime.cjs +0 -8
- package/internal/stencil-core/jsx-runtime.d.ts +0 -40
- package/internal/stencil-core/jsx-runtime.js +0 -2
- package/internal/stencil-private.d.ts +0 -2549
- package/internal/stencil-public-compiler.d.ts +0 -2867
- package/internal/stencil-public-runtime.d.ts +0 -1860
- package/internal/testing/index.js +0 -6528
- package/internal/testing/jsx-dev-runtime.d.ts +0 -2
- package/internal/testing/jsx-dev-runtime.js +0 -8
- package/internal/testing/jsx-runtime.d.ts +0 -2
- package/internal/testing/jsx-runtime.js +0 -9
- package/internal/testing/package.json +0 -7
- package/internal/utils/index.d.ts +0 -1
- package/internal/utils/result.d.ts +0 -112
- package/mock-doc/index.cjs +0 -10165
- package/mock-doc/index.d.ts +0 -1172
- package/mock-doc/index.js +0 -10144
- package/mock-doc/package.json +0 -15
- package/readme.md +0 -94
- package/screenshot/compare/assets/favicon.ico +0 -0
- package/screenshot/compare/assets/logo.png +0 -0
- package/screenshot/compare/build/app.css +0 -1
- package/screenshot/compare/build/app.esm.js +0 -1
- package/screenshot/compare/build/app.js +0 -33
- package/screenshot/compare/build/p-081b0641.js +0 -1
- package/screenshot/compare/build/p-227a1e18.entry.js +0 -1
- package/screenshot/compare/build/p-2c298727.entry.js +0 -1
- package/screenshot/compare/build/p-5479268c.entry.js +0 -1
- package/screenshot/compare/build/p-573ec8a4.entry.js +0 -1
- package/screenshot/compare/build/p-6ba08604.entry.js +0 -1
- package/screenshot/compare/build/p-6bc63295.entry.js +0 -1
- package/screenshot/compare/build/p-7a3759fd.entry.js +0 -1
- package/screenshot/compare/build/p-7b4e3ba7.js +0 -1
- package/screenshot/compare/build/p-988eb362.css +0 -1
- package/screenshot/compare/build/p-9b6a9315.js +0 -1
- package/screenshot/compare/build/p-b4cc611c.entry.js +0 -1
- package/screenshot/compare/build/p-d1bf53f5.entry.js +0 -1
- package/screenshot/compare/build/p-e2efe0df.js +0 -1
- package/screenshot/compare/build/p-e8ca6d97.entry.js +0 -1
- package/screenshot/compare/build/p-ec2f13e0.entry.js +0 -1
- package/screenshot/compare/build/p-f0b99977.entry.js +0 -1
- package/screenshot/compare/build/p-f4745c2f.entry.js +0 -1
- package/screenshot/compare/build/p-fbbae598.js +0 -1
- package/screenshot/compare/host.config.json +0 -15
- package/screenshot/compare/index.html +0 -1
- package/screenshot/compare/manifest.json +0 -13
- package/screenshot/connector-base.d.ts +0 -42
- package/screenshot/connector-local.d.ts +0 -7
- package/screenshot/connector.js +0 -2
- package/screenshot/index.d.ts +0 -3
- package/screenshot/index.js +0 -2433
- package/screenshot/local-connector.js +0 -2
- package/screenshot/package.json +0 -15
- package/screenshot/pixel-match.d.ts +0 -1
- package/screenshot/pixel-match.js +0 -2315
- package/screenshot/screenshot-compare.d.ts +0 -20
- package/screenshot/screenshot-fs.d.ts +0 -14
- package/sys/node/460.node-fetch.js +0 -451
- package/sys/node/autoprefixer.js +0 -9
- package/sys/node/glob.js +0 -1
- package/sys/node/graceful-fs.js +0 -1
- package/sys/node/index.d.ts +0 -39
- package/sys/node/index.js +0 -64
- package/sys/node/node-fetch.js +0 -12
- package/sys/node/package.json +0 -8
- package/sys/node/prompts.js +0 -1
- package/sys/node/worker.js +0 -4
- package/testing/index.d.ts +0 -9
- package/testing/index.js +0 -13064
- package/testing/jest/jest-27-and-under/jest-config.d.ts +0 -16
- package/testing/jest/jest-27-and-under/jest-environment.d.ts +0 -2
- package/testing/jest/jest-27-and-under/jest-facade.d.ts +0 -155
- package/testing/jest/jest-27-and-under/jest-preprocessor.d.ts +0 -59
- package/testing/jest/jest-27-and-under/jest-preset.d.ts +0 -3
- package/testing/jest/jest-27-and-under/jest-runner.d.ts +0 -11
- package/testing/jest/jest-27-and-under/jest-screenshot.d.ts +0 -2
- package/testing/jest/jest-27-and-under/jest-serializer.d.ts +0 -4
- package/testing/jest/jest-27-and-under/jest-setup-test-framework.d.ts +0 -9
- package/testing/jest/jest-27-and-under/matchers/attributes.d.ts +0 -14
- package/testing/jest/jest-27-and-under/matchers/class-list.d.ts +0 -12
- package/testing/jest/jest-27-and-under/matchers/events.d.ts +0 -25
- package/testing/jest/jest-27-and-under/matchers/html.d.ts +0 -13
- package/testing/jest/jest-27-and-under/matchers/index.d.ts +0 -24
- package/testing/jest/jest-27-and-under/matchers/screenshot.d.ts +0 -5
- package/testing/jest/jest-27-and-under/matchers/text.d.ts +0 -4
- package/testing/jest/jest-27-and-under/test/jest-config.spec.d.ts +0 -1
- package/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.d.ts +0 -1
- package/testing/jest/jest-27-and-under/test/jest-runner.spec.d.ts +0 -1
- package/testing/jest/jest-27-and-under/test/jest-serializer.spec.d.ts +0 -1
- package/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.d.ts +0 -1
- package/testing/jest/jest-28/jest-config.d.ts +0 -16
- package/testing/jest/jest-28/jest-environment.d.ts +0 -2
- package/testing/jest/jest-28/jest-facade.d.ts +0 -134
- package/testing/jest/jest-28/jest-preprocessor.d.ts +0 -35
- package/testing/jest/jest-28/jest-preset.d.ts +0 -3
- package/testing/jest/jest-28/jest-runner.d.ts +0 -11
- package/testing/jest/jest-28/jest-screenshot.d.ts +0 -2
- package/testing/jest/jest-28/jest-serializer.d.ts +0 -4
- package/testing/jest/jest-28/jest-setup-test-framework.d.ts +0 -9
- package/testing/jest/jest-28/matchers/attributes.d.ts +0 -14
- package/testing/jest/jest-28/matchers/class-list.d.ts +0 -12
- package/testing/jest/jest-28/matchers/events.d.ts +0 -25
- package/testing/jest/jest-28/matchers/html.d.ts +0 -13
- package/testing/jest/jest-28/matchers/index.d.ts +0 -24
- package/testing/jest/jest-28/matchers/screenshot.d.ts +0 -5
- package/testing/jest/jest-28/matchers/text.d.ts +0 -4
- package/testing/jest/jest-28/test/jest-config.spec.d.ts +0 -1
- package/testing/jest/jest-28/test/jest-preprocessor.spec.d.ts +0 -1
- package/testing/jest/jest-28/test/jest-runner.spec.d.ts +0 -1
- package/testing/jest/jest-28/test/jest-serializer.spec.d.ts +0 -1
- package/testing/jest/jest-28/test/jest-setup-test-framework.spec.d.ts +0 -1
- package/testing/jest/jest-29/jest-config.d.ts +0 -16
- package/testing/jest/jest-29/jest-environment.d.ts +0 -2
- package/testing/jest/jest-29/jest-facade.d.ts +0 -136
- package/testing/jest/jest-29/jest-preprocessor.d.ts +0 -35
- package/testing/jest/jest-29/jest-preset.d.ts +0 -3
- package/testing/jest/jest-29/jest-runner.d.ts +0 -11
- package/testing/jest/jest-29/jest-screenshot.d.ts +0 -2
- package/testing/jest/jest-29/jest-serializer.d.ts +0 -4
- package/testing/jest/jest-29/jest-setup-test-framework.d.ts +0 -9
- package/testing/jest/jest-29/matchers/attributes.d.ts +0 -14
- package/testing/jest/jest-29/matchers/class-list.d.ts +0 -12
- package/testing/jest/jest-29/matchers/events.d.ts +0 -25
- package/testing/jest/jest-29/matchers/html.d.ts +0 -13
- package/testing/jest/jest-29/matchers/index.d.ts +0 -24
- package/testing/jest/jest-29/matchers/screenshot.d.ts +0 -5
- package/testing/jest/jest-29/matchers/text.d.ts +0 -4
- package/testing/jest/jest-29/test/jest-config.spec.d.ts +0 -1
- package/testing/jest/jest-29/test/jest-preprocessor.spec.d.ts +0 -1
- package/testing/jest/jest-29/test/jest-runner.spec.d.ts +0 -1
- package/testing/jest/jest-29/test/jest-serializer.spec.d.ts +0 -1
- package/testing/jest/jest-29/test/jest-setup-test-framework.spec.d.ts +0 -1
- package/testing/jest/jest-apis.d.ts +0 -86
- package/testing/jest/jest-facade.d.ts +0 -74
- package/testing/jest/jest-stencil-connector.d.ts +0 -65
- package/testing/jest/test/jest-stencil-connector.spec.d.ts +0 -1
- package/testing/jest-environment.js +0 -3
- package/testing/jest-preprocessor.js +0 -3
- package/testing/jest-preset.js +0 -2
- package/testing/jest-runner.js +0 -3
- package/testing/jest-setuptestframework.js +0 -3
- package/testing/mock-fetch.d.ts +0 -11
- package/testing/mocks.d.ts +0 -56
- package/testing/package.json +0 -8
- package/testing/puppeteer/index.d.ts +0 -2
- package/testing/puppeteer/puppeteer-browser.d.ts +0 -6
- package/testing/puppeteer/puppeteer-declarations.d.ts +0 -414
- package/testing/puppeteer/puppeteer-element.d.ts +0 -67
- package/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
- package/testing/puppeteer/puppeteer-events.d.ts +0 -21
- package/testing/puppeteer/puppeteer-page.d.ts +0 -2
- package/testing/puppeteer/puppeteer-screenshot.d.ts +0 -27
- package/testing/puppeteer/test/puppeteer-screenshot.spec.d.ts +0 -1
- package/testing/reset-build-conditionals.d.ts +0 -12
- package/testing/spec-page.d.ts +0 -7
- package/testing/test/testing-utils.spec.d.ts +0 -1
- package/testing/test-transpile.d.ts +0 -2
- package/testing/testing-logger.d.ts +0 -26
- package/testing/testing-sys.d.ts +0 -6
- package/testing/testing-utils.d.ts +0 -80
- package/testing/testing.d.ts +0 -2
- /package/{internal → dist/declarations}/stencil-ext-modules.d.ts +0 -0
- /package/{internal → dist/declarations}/stencil-public-docs.d.ts +0 -0
- /package/{screenshot/compare/build/index.esm.js → dist/declarations/stencil-public-runtime.js} +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const { initServerProcess } = require('./server-process.js');
|
|
2
|
-
let closeTmr = null;
|
|
3
|
-
|
|
4
|
-
const sendHandle = (err) => {
|
|
5
|
-
if (err && err.code === 'ERR_IPC_CHANNEL_CLOSED') {
|
|
6
|
-
process.exit(0);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const receiveMessageFromMain = initServerProcess((msg) => {
|
|
11
|
-
// send message from worker going to main
|
|
12
|
-
process.send(msg, sendHandle);
|
|
13
|
-
|
|
14
|
-
if (msg.serverClosed) {
|
|
15
|
-
clearTimeout(closeTmr);
|
|
16
|
-
process.exit(0);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
process.on('message', (msg) => {
|
|
21
|
-
// receive a message from the main going to worker
|
|
22
|
-
if (msg && msg.closeServer) {
|
|
23
|
-
closeTmr = setTimeout(() => {
|
|
24
|
-
// force exiting if we timeout
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}, 5000);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
receiveMessageFromMain(msg);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
process.on('unhandledRejection', (e) => {
|
|
33
|
-
process.send(
|
|
34
|
-
{
|
|
35
|
-
error: { message: 'unhandledRejection: ' + e, stack: typeof e.stack === 'string' ? e.stack : null },
|
|
36
|
-
},
|
|
37
|
-
sendHandle,
|
|
38
|
-
);
|
|
39
|
-
});
|
|
Binary file
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html dir="ltr" lang="en">
|
|
3
|
-
<head data-tmpl="tmpl-dir">
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>{{title}}</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
8
|
-
<style>
|
|
9
|
-
* {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
html {
|
|
13
|
-
color-scheme: light dark;
|
|
14
|
-
}
|
|
15
|
-
body {
|
|
16
|
-
padding: 40px 140px;
|
|
17
|
-
margin: 0;
|
|
18
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
background: #f9f8f8;
|
|
21
|
-
}
|
|
22
|
-
h1 {
|
|
23
|
-
margin-bottom: 15px;
|
|
24
|
-
font-size: 18px;
|
|
25
|
-
color: #343434;
|
|
26
|
-
}
|
|
27
|
-
h1 span {
|
|
28
|
-
padding: 0 6px;
|
|
29
|
-
font-weight: normal;
|
|
30
|
-
color: #9e9b9b;
|
|
31
|
-
}
|
|
32
|
-
a {
|
|
33
|
-
color: #555;
|
|
34
|
-
text-decoration: none;
|
|
35
|
-
}
|
|
36
|
-
a:hover {
|
|
37
|
-
color: #303030;
|
|
38
|
-
}
|
|
39
|
-
ul {
|
|
40
|
-
margin: 0;
|
|
41
|
-
padding: 0;
|
|
42
|
-
}
|
|
43
|
-
li {
|
|
44
|
-
list-style: none;
|
|
45
|
-
margin: 0;
|
|
46
|
-
padding: 0;
|
|
47
|
-
}
|
|
48
|
-
li a {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
gap: 6px;
|
|
52
|
-
margin: 0;
|
|
53
|
-
padding: 6px 12px;
|
|
54
|
-
min-width: 50%;
|
|
55
|
-
border-radius: 4px;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
}
|
|
59
|
-
li a:focus,
|
|
60
|
-
li a:hover {
|
|
61
|
-
color: #555;
|
|
62
|
-
background: rgba(221, 235, 255, 0.65);
|
|
63
|
-
}
|
|
64
|
-
.icon {
|
|
65
|
-
display: inline-block;
|
|
66
|
-
width: 14px;
|
|
67
|
-
min-height: 14px;
|
|
68
|
-
opacity: 0.6;
|
|
69
|
-
mask-repeat: no-repeat;
|
|
70
|
-
-webkit-mask-repeat: no-repeat;
|
|
71
|
-
}
|
|
72
|
-
.directory .icon {
|
|
73
|
-
mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjEzLjMzOCA5Nkg3NC42NjZDNTEuMTk3IDk2IDMyIDExNS4xOTggMzIgMTM4LjY2N3YyMzQuNjY2QzMyIDM5Ni44MDIgNTEuMTk3IDQxNiA3NC42NjYgNDE2aDM2Mi42NjhDNDYwLjgwMyA0MTYgNDgwIDM5Ni44MDIgNDgwIDM3My4zMzNWMTg2LjY2N0M0ODAgMTYzLjE5OCA0NjAuODAzIDE0NCA0MzcuMzM0IDE0NEgyNTYuMDA2bC00Mi42NjgtNDh6Ii8+PC9zdmc+);
|
|
74
|
-
-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjEzLjMzOCA5Nkg3NC42NjZDNTEuMTk3IDk2IDMyIDExNS4xOTggMzIgMTM4LjY2N3YyMzQuNjY2QzMyIDM5Ni44MDIgNTEuMTk3IDQxNiA3NC42NjYgNDE2aDM2Mi42NjhDNDYwLjgwMyA0MTYgNDgwIDM5Ni44MDIgNDgwIDM3My4zMzNWMTg2LjY2N0M0ODAgMTYzLjE5OCA0NjAuODAzIDE0NCA0MzcuMzM0IDE0NEgyNTYuMDA2bC00Mi42NjgtNDh6Ii8+PC9zdmc+);
|
|
75
|
-
background-position: 0px 2px;
|
|
76
|
-
background-color: currentColor;
|
|
77
|
-
}
|
|
78
|
-
.file .icon {
|
|
79
|
-
mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjg4IDQ4SDEzNmMtMjIuMDkyIDAtNDAgMTcuOTA4LTQwIDQwdjMzNmMwIDIyLjA5MiAxNy45MDggNDAgNDAgNDBoMjQwYzIyLjA5MiAwIDQwLTE3LjkwOCA0MC00MFYxNzZMMjg4IDQ4em0tMTYgMTQ0VjgwbDExMiAxMTJIMjcyeiIvPjwvc3ZnPg==);
|
|
80
|
-
-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjg4IDQ4SDEzNmMtMjIuMDkyIDAtNDAgMTcuOTA4LTQwIDQwdjMzNmMwIDIyLjA5MiAxNy45MDggNDAgNDAgNDBoMjQwYzIyLjA5MiAwIDQwLTE3LjkwOCA0MC00MFYxNzZMMjg4IDQ4em0tMTYgMTQ0VjgwbDExMiAxMTJIMjcyeiIvPjwvc3ZnPg==);
|
|
81
|
-
background-position: 0px 2px;
|
|
82
|
-
background-color: currentColor;
|
|
83
|
-
}
|
|
84
|
-
li a:hover .icon {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (max-width: 768px) {
|
|
89
|
-
body {
|
|
90
|
-
font-size: 13px;
|
|
91
|
-
line-height: 16px;
|
|
92
|
-
padding: 0;
|
|
93
|
-
}
|
|
94
|
-
h1 {
|
|
95
|
-
font-size: 2em;
|
|
96
|
-
line-height: 1.5em;
|
|
97
|
-
color: #fff;
|
|
98
|
-
background: #000;
|
|
99
|
-
padding: 15px 10px;
|
|
100
|
-
margin: 0;
|
|
101
|
-
}
|
|
102
|
-
h1 a {
|
|
103
|
-
color: #9e9e9e;
|
|
104
|
-
}
|
|
105
|
-
h1 a:hover {
|
|
106
|
-
color: #eaeaea;
|
|
107
|
-
}
|
|
108
|
-
ul {
|
|
109
|
-
border-top: 1px solid #cacaca;
|
|
110
|
-
}
|
|
111
|
-
li {
|
|
112
|
-
display: block;
|
|
113
|
-
border-bottom: 1px solid #cacaca;
|
|
114
|
-
font-size: 2em;
|
|
115
|
-
line-height: 1.2em;
|
|
116
|
-
}
|
|
117
|
-
li:nth-child(odd) {
|
|
118
|
-
background: #e0e0e0;
|
|
119
|
-
}
|
|
120
|
-
li a {
|
|
121
|
-
display: flex;
|
|
122
|
-
border-radius: 0;
|
|
123
|
-
padding: 15px 10px;
|
|
124
|
-
}
|
|
125
|
-
.icon {
|
|
126
|
-
width: 24px;
|
|
127
|
-
min-width: 24px;
|
|
128
|
-
min-height: 24px;
|
|
129
|
-
}
|
|
130
|
-
.directory .icon {
|
|
131
|
-
background-position: 0px 4px;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@media (prefers-color-scheme: dark) {
|
|
136
|
-
body {
|
|
137
|
-
background: #000;
|
|
138
|
-
}
|
|
139
|
-
h1 {
|
|
140
|
-
color: #eaeaea;
|
|
141
|
-
}
|
|
142
|
-
a {
|
|
143
|
-
color: #ccc;
|
|
144
|
-
}
|
|
145
|
-
a:hover {
|
|
146
|
-
color: #eaeaea;
|
|
147
|
-
}
|
|
148
|
-
li a:focus,
|
|
149
|
-
li a:hover {
|
|
150
|
-
color: #ccc;
|
|
151
|
-
background: #1c1c1c;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@media (max-width: 768px) and (prefers-color-scheme: dark) {
|
|
156
|
-
ul {
|
|
157
|
-
border-top: 1px solid #333;
|
|
158
|
-
}
|
|
159
|
-
li {
|
|
160
|
-
border-bottom: 1px solid #333;
|
|
161
|
-
}
|
|
162
|
-
li:nth-child(odd) {
|
|
163
|
-
background: #333;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
</style>
|
|
167
|
-
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAB2AAAAdgB+lymcgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFGSURBVHic7dm9TcNQFMXxPzRpaZGYAEIqZkERkzAFSwARSyCGgA2QAqGhTZqYIrJkzEP4GfueyD4/6TavuufEH1IMZmZmZmZm382ABfAOFB3MJzANTfAPV8CGboJX5xU4CczRyox+wpfzDByFpWlhQX/hy3kCJlGBcnV1z/81D8BhUKYsW2IKKICboExZosJHzBtwT+bbR710H7MG5qmwB78UMEQb4AJ4qR7u5UOoJxPgun44pisAdm+44+rB2AooqF31Y7oFIPGDj62AH1yAegE1F6BeQM0FqBdQcwHqBdRcgHoBNRegXkDNBagXUHMB6gXUXIB6ATUXoF5ALVXAkP8W39YPUgV8BCyisqofpAp4DFhEpVG2c3ZfU9VfdPv4QnzWtKn5wEpYA5dNw5emwB2w3IMAbWcJ3AKnueHNzMzMzGzYvgAGC6SjvNl9rAAAAABJRU5ErkJggg==">
|
|
168
|
-
</head>
|
|
169
|
-
<body>
|
|
170
|
-
<main>
|
|
171
|
-
<h1>{{nav}}</h1>
|
|
172
|
-
<ul>{{files}}
|
|
173
|
-
</ul>
|
|
174
|
-
</main>
|
|
175
|
-
</body>
|
|
176
|
-
</html>
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html dir="ltr" lang="en">
|
|
3
|
-
<head data-tmpl="tmpl-initial-load">
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<script>
|
|
6
|
-
if ('serviceWorker' in navigator) {
|
|
7
|
-
navigator.serviceWorker.getRegistration().then(function(registration) {
|
|
8
|
-
if (registration) {
|
|
9
|
-
registration.unregister().then(function(hasUnregistered) {
|
|
10
|
-
if (hasUnregistered) {
|
|
11
|
-
console.log('unregistered service worker');
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}).catch(function(err) {
|
|
16
|
-
console.error(err.message || err);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
21
|
-
<meta http-equiv="x-ua-compatible" content="IE=Edge">
|
|
22
|
-
<title>Initializing First Build...</title>
|
|
23
|
-
<link rel="shortcut icon" type="image/x-icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAjVBMVEUAAAD8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjL8kjLn7xn3AAAALnRSTlMAsFBgAaDxfPpAdTMcD/fs47kDBhVXJQpvLNbInIiBRvSqIb+TZ2OOONxdzUxpgKSpAAAAA69JREFUeNrt3FtvskAQxvERFQXFioqnCkqth572+3+8947dN00TliF5ZpP53ZOAveg/OzCklFJKKaWUUkoppQTZm77cCGFo+jIhhG/TlwchJAvTk/GIAA6x6Um+JoDti+nJ644A5h+mJ8eMALKj6cnHnAB2r80NLJ4jf3Vz+cuWANZ5cwPTM/l7by6PZwQwGptGQf4q++dLCOHdNIbkb2IvjwjAvYEf8pe6j4/wYxopr/9SQih4BXa3l5eEcJ7a++c9/gkSQE8bcCWvXwcrAjjYADrxHv8KCbi3JasgD5fm8i9IAG1swMXzDv0X2wDaEED21dzA5UDeVoPm8uUbAayvvAI42YA7EIDzA5pv8lc6/UoAoxMv4CZuvyKUpnHn9VNBAG6B7XkBtCeEO6/AbvbyihAiXsB92svfCcA9wap4j19DAmgWs37AZCrnBKvu8vgX9AmWE3BZh/6L7QkWJIA2RxtwHQpml9sAQp9gXWbkbxz4CdYDfIK1qk1j3IV9fPgJFlNECJXhYfSfsBHkhBCKwEd452nYI7wncwQJP8GKTU+uO0I4D/uSkVJKqXAkA5nK9icoIi3nrU9QRHrZtj5BESmetT5BEantPCh7NTJFrUdgMg1bj8BkSv1HYJ8RmjMQKf1HYDdC+/R/IyQFzbD4AxH+CIyPPxCJoEdQ/IFIMgXNEPkDkd8jMLQs5wRcTXA1J+By/BGO+0ovYwQGU3kPRLJfIzCkCSfgpgmhpc5AxD/gIkLb8wKO0DTgoNyaGQQecNfQAy7TgGtHA04DLtyA24UecHngAVdrwIkJuAitU8DJ1Dbghkam9gEnU+uAWxiRjhsdoXagI1TPgKNyIBO+ZpRSSrW3HfblTAA9/juPDwTAfiMK9VG3PY/hwX7Ubc9j+AoCWNWGp+NSH4HflE2IgXUEGPI3TTfmN4ndv2kSsRUJvpUn4W1FShbYb5rc84ySAtzKs3W3IgW4lWfO24q0zsFbebIjaysSjbtt5RHzUf0DHHCrAW8gVYEDzl0LGYW4lefB24uYQgOOfwN7dMANeW/k3DkBJ2CrUNE54GRsFYIHnPNR+iPEgHPWKo5DDDhnrWKeBRhwzlrFeNtlq5CgtYqzAAPODaBzgAH331rFAAOOqsDXKjL3IqboN7ILJ4BCDDh3r3SIAfd0AijEgHP3So/8wQNuvjRBbxVij5A6Bpy8EZJnwIkbIfkFnLwRkm/ASRshXbwDTtYICRRwt7BHqEoppZRSSimllFLqD/8AOXJZHefotiIAAAAASUVORK5CYII=">
|
|
24
|
-
<style>
|
|
25
|
-
* {
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
}
|
|
28
|
-
html {
|
|
29
|
-
color-scheme: dark light;
|
|
30
|
-
}
|
|
31
|
-
body {
|
|
32
|
-
position: absolute;
|
|
33
|
-
padding: 0;
|
|
34
|
-
margin: 0;
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
38
|
-
}
|
|
39
|
-
.toast {
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 12px;
|
|
42
|
-
right: 10px;
|
|
43
|
-
left: 10px;
|
|
44
|
-
margin: auto;
|
|
45
|
-
max-width: 700px;
|
|
46
|
-
border-radius: 3px;
|
|
47
|
-
background: rgba(0, 0, 0, .9);
|
|
48
|
-
-webkit-transform: translate3d(0px, -60px, 0px);
|
|
49
|
-
transform: translate3d(0px, -60px, 0px);
|
|
50
|
-
-webkit-transition: -webkit-transform 75ms ease-out;
|
|
51
|
-
transition: transform 75ms ease-out;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
}
|
|
54
|
-
.active {
|
|
55
|
-
-webkit-transform: translate3d(0px, 0px, 0px);
|
|
56
|
-
transform: translate3d(0px, 0px, 0px);
|
|
57
|
-
}
|
|
58
|
-
.content {
|
|
59
|
-
display: flex;
|
|
60
|
-
-webkit-align-items: center;
|
|
61
|
-
-ms-flex-align: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
pointer-events: auto;
|
|
64
|
-
}
|
|
65
|
-
.message {
|
|
66
|
-
-webkit-flex: 1;
|
|
67
|
-
-ms-flex: 1;
|
|
68
|
-
flex: 1;
|
|
69
|
-
padding: 15px;
|
|
70
|
-
font-size: 14px;
|
|
71
|
-
color: #fff;
|
|
72
|
-
}
|
|
73
|
-
.spinner {
|
|
74
|
-
position: relative;
|
|
75
|
-
display: inline-block;
|
|
76
|
-
width: 56px;
|
|
77
|
-
height: 28px;
|
|
78
|
-
}
|
|
79
|
-
svg:not(:root) {
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
}
|
|
82
|
-
svg {
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 0;
|
|
85
|
-
left: 0;
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: 100%;
|
|
88
|
-
-webkit-transform: translateZ(0);
|
|
89
|
-
transform: translateZ(0);
|
|
90
|
-
-webkit-animation: rotate 600ms linear infinite;
|
|
91
|
-
animation: rotate 600ms linear infinite;
|
|
92
|
-
}
|
|
93
|
-
@-webkit-keyframes rotate {
|
|
94
|
-
0% {
|
|
95
|
-
-webkit-transform: rotate(0deg);
|
|
96
|
-
transform: rotate(0deg);
|
|
97
|
-
}
|
|
98
|
-
100% {
|
|
99
|
-
-webkit-transform: rotate(360deg);
|
|
100
|
-
transform: rotate(360deg);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
@keyframes rotate {
|
|
104
|
-
0% {
|
|
105
|
-
-webkit-transform: rotate(0deg);
|
|
106
|
-
transform: rotate(0deg);
|
|
107
|
-
}
|
|
108
|
-
100% {
|
|
109
|
-
-webkit-transform: rotate(360deg);
|
|
110
|
-
transform: rotate(360deg);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
svg circle {
|
|
114
|
-
fill: transparent;
|
|
115
|
-
stroke: white;
|
|
116
|
-
stroke-width: 4px;
|
|
117
|
-
stroke-dasharray: 128px;
|
|
118
|
-
stroke-dashoffset: 82px;
|
|
119
|
-
}
|
|
120
|
-
.logs {
|
|
121
|
-
position: absolute;
|
|
122
|
-
top: 50px;
|
|
123
|
-
right: 10px;
|
|
124
|
-
left: 10px;
|
|
125
|
-
margin: auto;
|
|
126
|
-
max-width: 700px;
|
|
127
|
-
padding: 32px;
|
|
128
|
-
line-height: 1.5;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@media (prefers-color-scheme: dark) {
|
|
132
|
-
.toast {
|
|
133
|
-
background: rgb(49, 49, 49, .9);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
</style>
|
|
137
|
-
</head>
|
|
138
|
-
<body>
|
|
139
|
-
|
|
140
|
-
<div class="toast">
|
|
141
|
-
<div class="content">
|
|
142
|
-
<div class="message">Initializing First Build...</div>
|
|
143
|
-
<div class="spinner">
|
|
144
|
-
<svg viewBox="0 0 64 64"><circle transform="translate(32,32)" r="26"></circle></svg>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
<div class="logs">
|
|
150
|
-
<pre id="log-output"></pre>
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
<script>
|
|
154
|
-
setTimeout(function() {
|
|
155
|
-
document.querySelector('.toast').classList.add('active');
|
|
156
|
-
}, 100);
|
|
157
|
-
|
|
158
|
-
var logOutput = document.getElementById('log-output');
|
|
159
|
-
window.addEventListener('devserver:buildlog', function(ev) {
|
|
160
|
-
var buildLog = ev.detail;
|
|
161
|
-
if (buildLog && buildLog.messages) {
|
|
162
|
-
logOutput.innerText = buildLog.messages.join('\n');
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
</script>
|
|
166
|
-
|
|
167
|
-
</body>
|
|
168
|
-
</html>
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
' Copyright (c) 2016, Evgeny Panasyuk
|
|
2
|
-
|
|
3
|
-
' Permission is hereby granted, free of charge, to any person or organization
|
|
4
|
-
' obtaining a copy of the software and accompanying documentation covered by
|
|
5
|
-
' this license (the "Software") to use, reproduce, display, distribute,
|
|
6
|
-
' execute, and transmit the Software, and to prepare derivative works of the
|
|
7
|
-
' Software, and to permit third-parties to whom the Software is furnished to
|
|
8
|
-
' do so, all subject to the following:
|
|
9
|
-
'
|
|
10
|
-
' The copyright notices in the Software and this entire statement, including
|
|
11
|
-
' the above license grant, this restriction and the following disclaimer,
|
|
12
|
-
' must be included in all copies of the Software, in whole or in part, and
|
|
13
|
-
' all derivative works of the Software, unless such copies or derivative
|
|
14
|
-
' works are solely in the form of machine-executable object code generated by
|
|
15
|
-
' a source language processor.
|
|
16
|
-
'
|
|
17
|
-
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
' FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
20
|
-
' SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
21
|
-
' FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
22
|
-
' ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
23
|
-
' DEALINGS IN THE SOFTWARE.
|
|
24
|
-
|
|
25
|
-
' e-mail: E?????[dot]P???????[at]gmail.???
|
|
26
|
-
|
|
27
|
-
Option Explicit
|
|
28
|
-
|
|
29
|
-
Dim filename, line, column
|
|
30
|
-
Dim MSVS_versions, version
|
|
31
|
-
Dim dte, fso, wshShell
|
|
32
|
-
Dim fullpath
|
|
33
|
-
|
|
34
|
-
filename = WScript.Arguments(0)
|
|
35
|
-
line = WScript.Arguments(1)
|
|
36
|
-
column = WScript.Arguments(2)
|
|
37
|
-
|
|
38
|
-
MSVS_versions = Array _
|
|
39
|
-
( _
|
|
40
|
-
"VisualStudio.DTE.7", _
|
|
41
|
-
"VisualStudio.DTE.7.1", _
|
|
42
|
-
"VisualStudio.DTE.8.0", _
|
|
43
|
-
"VisualStudio.DTE.9.0", _
|
|
44
|
-
"VisualStudio.DTE.10.0", _
|
|
45
|
-
"VisualStudio.DTE.11.0", _
|
|
46
|
-
"VisualStudio.DTE.12.0", _
|
|
47
|
-
"VisualStudio.DTE.14.0", _
|
|
48
|
-
"VisualStudio.DTE.15.0" _
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
On Error Resume Next
|
|
52
|
-
|
|
53
|
-
For each version in MSVS_versions
|
|
54
|
-
Err.Clear
|
|
55
|
-
Set dte = getObject(,version)
|
|
56
|
-
If Err.Number = 0 Then
|
|
57
|
-
Exit For
|
|
58
|
-
End If
|
|
59
|
-
Next
|
|
60
|
-
|
|
61
|
-
If Err.Number <> 0 Then
|
|
62
|
-
Set dte = WScript.CreateObject("VisualStudio.DTE")
|
|
63
|
-
Err.Clear
|
|
64
|
-
End If
|
|
65
|
-
|
|
66
|
-
Set wshShell = WScript.CreateObject("WScript.Shell")
|
|
67
|
-
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
|
|
68
|
-
fullpath = fso.GetAbsolutePathName(filename)
|
|
69
|
-
|
|
70
|
-
dte.MainWindow.Activate()
|
|
71
|
-
dte.MainWindow.Visible = True
|
|
72
|
-
dte.UserControl = True
|
|
73
|
-
wshShell.AppActivate dte.MainWindow.Caption
|
|
74
|
-
|
|
75
|
-
dte.ItemOperations.OpenFile fullpath
|
|
76
|
-
dte.ActiveDocument.Selection.MoveToLineAndOffset line, column + 1
|
|
77
|
-
|
|
78
|
-
if Err.Number <> 0 Then
|
|
79
|
-
WScript.Quit Err.Number
|
|
80
|
-
End If
|
|
81
|
-
|
|
82
|
-
On Error Goto 0
|