neo.mjs 6.41.0 → 6.43.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/apps/ServiceWorker.mjs +2 -2
- package/apps/colors/childapps/widget/view/Viewport.mjs +1 -3
- package/apps/colors/model/Color.mjs +1 -3
- package/apps/colors/store/Colors.mjs +1 -3
- package/apps/colors/view/BarChartComponent.mjs +1 -3
- package/apps/colors/view/HeaderToolbar.mjs +1 -3
- package/apps/colors/view/PieChartComponent.mjs +1 -3
- package/apps/colors/view/TableContainer.mjs +1 -3
- package/apps/colors/view/Viewport.mjs +1 -3
- package/apps/colors/view/ViewportController.mjs +1 -3
- package/apps/colors/view/ViewportModel.mjs +1 -3
- package/apps/covid/model/Country.mjs +1 -3
- package/apps/covid/model/HistoricalData.mjs +1 -3
- package/apps/covid/store/Countries.mjs +1 -3
- package/apps/covid/store/HistoricalData.mjs +1 -3
- package/apps/covid/view/AttributionComponent.mjs +1 -3
- package/apps/covid/view/FooterContainer.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +1 -3
- package/apps/covid/view/GalleryContainerController.mjs +1 -3
- package/apps/covid/view/HeaderContainer.mjs +1 -3
- package/apps/covid/view/HelixContainer.mjs +1 -3
- package/apps/covid/view/HelixContainerController.mjs +1 -3
- package/apps/covid/view/MainContainer.mjs +1 -3
- package/apps/covid/view/MainContainerController.mjs +1 -3
- package/apps/covid/view/MainContainerModel.mjs +1 -3
- package/apps/covid/view/TableContainer.mjs +1 -3
- package/apps/covid/view/TableContainerController.mjs +1 -3
- package/apps/covid/view/WorldMapComponent.mjs +1 -3
- package/apps/covid/view/WorldMapContainer.mjs +1 -3
- package/apps/covid/view/WorldMapContainerController.mjs +1 -3
- package/apps/covid/view/country/Gallery.mjs +1 -3
- package/apps/covid/view/country/Helix.mjs +1 -3
- package/apps/covid/view/country/HistoricalDataTable.mjs +1 -3
- package/apps/covid/view/country/LineChartComponent.mjs +1 -3
- package/apps/covid/view/country/Table.mjs +1 -3
- package/apps/covid/view/mapboxGl/Component.mjs +1 -3
- package/apps/covid/view/mapboxGl/Container.mjs +1 -3
- package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -3
- package/apps/form/model/SideNav.mjs +1 -3
- package/apps/form/store/SideNav.mjs +1 -3
- package/apps/form/view/FormContainer.mjs +1 -3
- package/apps/form/view/FormContainerController.mjs +1 -3
- package/apps/form/view/FormPageContainer.mjs +1 -3
- package/apps/form/view/SideNavList.mjs +1 -3
- package/apps/form/view/Viewport.mjs +1 -3
- package/apps/form/view/ViewportController.mjs +1 -3
- package/apps/form/view/ViewportModel.mjs +1 -3
- package/apps/form/view/pages/Page1.mjs +1 -3
- package/apps/form/view/pages/Page10.mjs +1 -3
- package/apps/form/view/pages/Page11.mjs +1 -3
- package/apps/form/view/pages/Page12.mjs +1 -3
- package/apps/form/view/pages/Page13.mjs +1 -3
- package/apps/form/view/pages/Page14.mjs +1 -3
- package/apps/form/view/pages/Page15.mjs +1 -3
- package/apps/form/view/pages/Page2.mjs +1 -3
- package/apps/form/view/pages/Page3.mjs +1 -3
- package/apps/form/view/pages/Page4.mjs +1 -3
- package/apps/form/view/pages/Page5.mjs +1 -3
- package/apps/form/view/pages/Page6.mjs +1 -3
- package/apps/form/view/pages/Page7.mjs +1 -3
- package/apps/form/view/pages/Page8.mjs +1 -3
- package/apps/form/view/pages/Page9.mjs +1 -3
- package/apps/krausest/TableCollection.mjs +1 -3
- package/apps/krausest/view/MainComponent.mjs +1 -3
- package/apps/krausest/view/MainComponentController.mjs +1 -3
- package/apps/krausest/view/TableComponent.mjs +1 -3
- package/apps/portal/childapps/preview/MainContainer.mjs +1 -3
- package/apps/portal/index.html +4 -6
- package/apps/portal/model/BlogPost.mjs +1 -3
- package/apps/portal/model/Content.mjs +1 -3
- package/apps/portal/model/ContentSection.mjs +1 -3
- package/apps/portal/resources/images/neo_logo_favicon.svg +16 -0
- package/apps/portal/store/BlogPosts.mjs +3 -5
- package/apps/portal/store/Content.mjs +1 -3
- package/apps/portal/store/ContentSections.mjs +1 -3
- package/apps/portal/view/HeaderToolbar.mjs +1 -3
- package/apps/portal/view/Viewport.mjs +1 -3
- package/apps/portal/view/ViewportController.mjs +1 -3
- package/apps/portal/view/ViewportModel.mjs +1 -3
- package/apps/portal/view/about/Container.mjs +1 -3
- package/apps/portal/view/about/MemberContainer.mjs +1 -3
- package/apps/portal/view/blog/Container.mjs +1 -3
- package/apps/portal/view/blog/List.mjs +1 -3
- package/apps/portal/view/home/ContentBox.mjs +1 -3
- package/apps/portal/view/home/FeatureSection.mjs +1 -3
- package/apps/portal/view/home/FooterContainer.mjs +1 -3
- package/apps/portal/view/home/MainContainer.mjs +1 -3
- package/apps/portal/view/home/parts/AfterMath.mjs +1 -3
- package/apps/portal/view/home/parts/BaseContainer.mjs +1 -3
- package/apps/portal/view/home/parts/Colors.mjs +1 -3
- package/apps/portal/view/home/parts/Features.mjs +1 -3
- package/apps/portal/view/home/parts/Helix.mjs +1 -3
- package/apps/portal/view/home/parts/How.mjs +1 -3
- package/apps/portal/view/home/parts/MainNeo.mjs +1 -3
- package/apps/portal/view/home/parts/References.mjs +1 -3
- package/apps/portal/view/learn/ContentTreeList.mjs +1 -3
- package/apps/portal/view/learn/ContentView.mjs +7 -10
- package/apps/portal/view/learn/MainContainer.mjs +1 -3
- package/apps/portal/view/learn/MainContainerController.mjs +1 -3
- package/apps/portal/view/learn/MainContainerModel.mjs +1 -3
- package/apps/portal/view/learn/PageContainer.mjs +1 -3
- package/apps/portal/view/learn/PageSectionsContainer.mjs +1 -3
- package/apps/portal/view/learn/PageSectionsList.mjs +1 -3
- package/apps/portal/view/services/Component.mjs +2 -4
- package/apps/realworld/api/Base.mjs +1 -3
- package/apps/realworld/view/FooterComponent.mjs +1 -3
- package/apps/realworld/view/HeaderComponent.mjs +1 -3
- package/apps/realworld/view/HomeComponent.mjs +1 -3
- package/apps/realworld/view/MainContainer.mjs +1 -3
- package/apps/realworld/view/MainContainerController.mjs +1 -3
- package/apps/realworld/view/article/CommentComponent.mjs +1 -3
- package/apps/realworld/view/article/Component.mjs +1 -3
- package/apps/realworld/view/article/CreateCommentComponent.mjs +1 -3
- package/apps/realworld/view/article/CreateComponent.mjs +1 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld/view/article/TagListComponent.mjs +1 -3
- package/apps/realworld/view/user/ProfileComponent.mjs +1 -3
- package/apps/realworld/view/user/SettingsComponent.mjs +1 -3
- package/apps/realworld/view/user/SignUpComponent.mjs +1 -3
- package/apps/realworld2/api/Base.mjs +1 -3
- package/apps/realworld2/model/ArticlePreview.mjs +1 -3
- package/apps/realworld2/store/ArticlePreviews.mjs +1 -3
- package/apps/realworld2/view/FooterComponent.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbar.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbarController.mjs +1 -3
- package/apps/realworld2/view/HomeContainer.mjs +1 -3
- package/apps/realworld2/view/MainContainer.mjs +1 -3
- package/apps/realworld2/view/MainContainerController.mjs +1 -3
- package/apps/realworld2/view/article/DetailsContainer.mjs +1 -3
- package/apps/realworld2/view/article/FormContainer.mjs +1 -3
- package/apps/realworld2/view/article/Gallery.mjs +1 -3
- package/apps/realworld2/view/article/GalleryContainer.mjs +1 -3
- package/apps/realworld2/view/article/Helix.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +1 -3
- package/apps/realworld2/view/article/PreviewComponent.mjs +1 -3
- package/apps/realworld2/view/article/PreviewList.mjs +1 -3
- package/apps/realworld2/view/article/TagListComponent.mjs +1 -3
- package/apps/realworld2/view/user/LoginFormContainer.mjs +1 -3
- package/apps/realworld2/view/user/ProfileContainer.mjs +1 -3
- package/apps/realworld2/view/user/SettingsFormContainer.mjs +1 -3
- package/apps/route/view/ButtonBar.mjs +1 -3
- package/apps/route/view/CenterContainer.mjs +2 -4
- package/apps/route/view/FooterContainer.mjs +5 -10
- package/apps/route/view/HeaderContainer.mjs +5 -9
- package/apps/route/view/MainView.mjs +4 -13
- package/apps/route/view/MainViewController.mjs +1 -10
- package/apps/route/view/MetaContainer.mjs +3 -5
- package/apps/route/view/Viewport.mjs +3 -6
- package/apps/route/view/center/CardAdministration.mjs +2 -7
- package/apps/route/view/center/CardAdministrationDenied.mjs +1 -3
- package/apps/route/view/center/CardContact.mjs +2 -5
- package/apps/route/view/center/CardHome.mjs +1 -3
- package/apps/route/view/center/CardSection1.mjs +2 -4
- package/apps/route/view/center/CardSection2.mjs +2 -4
- package/apps/sharedcovid/Util.mjs +9 -11
- package/apps/sharedcovid/childapps/sharedcovidchart/MainContainer.mjs +1 -3
- package/apps/sharedcovid/childapps/sharedcovidgallery/MainContainer.mjs +1 -3
- package/apps/sharedcovid/childapps/sharedcovidhelix/MainContainer.mjs +1 -3
- package/apps/sharedcovid/childapps/sharedcovidmap/MainContainer.mjs +1 -3
- package/apps/sharedcovid/model/Country.mjs +1 -3
- package/apps/sharedcovid/model/HistoricalData.mjs +1 -3
- package/apps/sharedcovid/store/Countries.mjs +1 -3
- package/apps/sharedcovid/store/HistoricalData.mjs +1 -3
- package/apps/sharedcovid/view/AttributionComponent.mjs +1 -3
- package/apps/sharedcovid/view/FooterContainer.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +3 -5
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -3
- package/apps/sharedcovid/view/HeaderContainer.mjs +1 -3
- package/apps/sharedcovid/view/HelixContainer.mjs +2 -4
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -3
- package/apps/sharedcovid/view/MainContainer.mjs +1 -3
- package/apps/sharedcovid/view/MainContainerController.mjs +1 -3
- package/apps/sharedcovid/view/MainContainerModel.mjs +1 -3
- package/apps/sharedcovid/view/TableContainer.mjs +1 -3
- package/apps/sharedcovid/view/TableContainerController.mjs +1 -3
- package/apps/sharedcovid/view/WorldMapComponent.mjs +3 -5
- package/apps/sharedcovid/view/WorldMapContainer.mjs +1 -3
- package/apps/sharedcovid/view/WorldMapContainerController.mjs +3 -5
- package/apps/sharedcovid/view/country/Gallery.mjs +1 -3
- package/apps/sharedcovid/view/country/Helix.mjs +1 -3
- package/apps/sharedcovid/view/country/HistoricalDataTable.mjs +1 -3
- package/apps/sharedcovid/view/country/LineChartComponent.mjs +1 -3
- package/apps/sharedcovid/view/country/Table.mjs +1 -3
- package/apps/sharedcovid/view/mapboxGl/Component.mjs +1 -3
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +1 -3
- package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +5 -7
- package/apps/shareddialog/childapps/shareddialog2/view/MainContainer.mjs +1 -3
- package/apps/shareddialog/childapps/shareddialog2/view/MainContainerController.mjs +2 -4
- package/apps/shareddialog/view/DemoDialog.mjs +1 -3
- package/apps/shareddialog/view/MainContainer.mjs +1 -3
- package/apps/shareddialog/view/MainContainerController.mjs +31 -33
- package/buildScripts/createApp.mjs +1 -3
- package/buildScripts/createAppMinimal.mjs +8 -25
- package/buildScripts/createClass.mjs +2 -18
- package/buildScripts/webpack/development/webpack.config.appworker.mjs +18 -3
- package/buildScripts/webpack/production/webpack.config.appworker.mjs +18 -3
- package/docs/app/model/Api.mjs +1 -3
- package/docs/app/model/Example.mjs +1 -3
- package/docs/app/store/Api.mjs +1 -3
- package/docs/app/store/Examples.mjs +1 -3
- package/docs/app/view/ApiTreeList.mjs +1 -3
- package/docs/app/view/ContentTabContainer.mjs +4 -6
- package/docs/app/view/ExamplesTreeList.mjs +1 -3
- package/docs/app/view/HeaderContainer.mjs +1 -3
- package/docs/app/view/MainContainer.mjs +4 -6
- package/docs/app/view/MainContainerController.mjs +11 -13
- package/docs/app/view/classdetails/HeaderComponent.mjs +4 -6
- package/docs/app/view/classdetails/HierarchyTreeList.mjs +6 -8
- package/docs/app/view/classdetails/MainContainer.mjs +1 -3
- package/docs/app/view/classdetails/MainContainerController.mjs +11 -13
- package/docs/app/view/classdetails/MembersList.mjs +47 -49
- package/docs/app/view/classdetails/SourceViewComponent.mjs +6 -8
- package/docs/app/view/classdetails/TutorialComponent.mjs +3 -5
- package/docs/resources/lib/highlight/CHANGES.md +1739 -0
- package/docs/resources/lib/highlight/LICENSE +24 -0
- package/docs/resources/lib/highlight/README.md +186 -0
- package/docs/resources/lib/highlight/highlight.pack.js +2 -0
- package/docs/resources/lib/highlightjs-custom-dark-theme.css +120 -0
- package/docs/resources/lib/highlightjs-custom-github-theme.css +136 -0
- package/examples/ConfigurationViewport.mjs +10 -13
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/button/base/MainContainer.mjs +1 -3
- package/examples/button/split/MainContainer.mjs +1 -3
- package/examples/calendar/basic/MainContainer.mjs +1 -3
- package/examples/calendar/basic/MainContainerController.mjs +5 -7
- package/examples/calendar/weekview/MainContainer.mjs +2 -4
- package/examples/charts/MainContainer.mjs +1 -3
- package/examples/component/canvas/MainContainer.mjs +1 -3
- package/examples/component/carousel/MainContainer.mjs +1 -3
- package/examples/component/chip/MainContainer.mjs +3 -5
- package/examples/component/circle/MainContainer.mjs +4 -6
- package/examples/component/clock/MainContainer.mjs +3 -5
- package/examples/component/coronaGallery/CountryGallery.mjs +4 -6
- package/examples/component/coronaGallery/CountryModel.mjs +1 -3
- package/examples/component/coronaGallery/CountryStore.mjs +1 -3
- package/examples/component/coronaGallery/MainContainer.mjs +5 -7
- package/examples/component/coronaHelix/CountryHelix.mjs +4 -6
- package/examples/component/coronaHelix/CountryModel.mjs +1 -3
- package/examples/component/coronaHelix/CountryStore.mjs +1 -3
- package/examples/component/coronaHelix/MainContainer.mjs +5 -7
- package/examples/component/dateSelector/MainContainer.mjs +4 -6
- package/examples/component/gallery/ImageModel.mjs +1 -3
- package/examples/component/gallery/ImageStore.mjs +1 -3
- package/examples/component/gallery/MainContainer.mjs +13 -15
- package/examples/component/helix/ImageModel.mjs +1 -3
- package/examples/component/helix/ImageStore.mjs +1 -3
- package/examples/component/helix/Viewport.mjs +2 -4
- package/examples/component/helix/ViewportController.mjs +1 -3
- package/examples/component/multiWindowHelix/Viewport.mjs +2 -4
- package/examples/component/multiWindowHelix/ViewportController.mjs +1 -3
- package/examples/component/multiWindowHelix/childapp/Viewport.mjs +1 -3
- package/examples/component/mwc/button/MainContainer.mjs +3 -5
- package/examples/component/mwc/buttons/MainContainer.mjs +1 -3
- package/examples/component/mwc/textField/MainContainer.mjs +4 -6
- package/examples/component/mwc/textFields/MainContainer.mjs +1 -3
- package/examples/component/process/MainContainer.mjs +5 -7
- package/examples/component/process/realWorldExample/MainContainer.mjs +17 -17
- package/examples/component/progress/MainContainer.mjs +1 -3
- package/examples/component/splitter/MainContainer.mjs +5 -7
- package/examples/component/statusbadge/MainContainer.mjs +113 -115
- package/examples/component/timer/MainContainer.mjs +19 -21
- package/examples/component/timer/MainContainerController.mjs +6 -8
- package/examples/component/toast/MainContainer.mjs +1 -3
- package/examples/component/toast/MainContainerController.mjs +5 -7
- package/examples/component/video/MainContainer.mjs +1 -3
- package/examples/component/video/MainContainerController.mjs +8 -9
- package/examples/component/wrapper/cesiumJS/MainContainer.mjs +1 -3
- package/examples/component/wrapper/cesiumJS/MainContainerController.mjs +2 -4
- package/examples/component/wrapper/googleMaps/MainContainer.mjs +1 -3
- package/examples/component/wrapper/googleMaps/MainContainerController.mjs +3 -5
- package/examples/component/wrapper/googleMaps/MapComponent.mjs +2 -4
- package/examples/component/wrapper/googleMaps/MarkerDialog.mjs +12 -27
- package/examples/component/wrapper/monacoEditor/MainContainer.mjs +1 -3
- package/examples/container/accordion/MainContainer.mjs +4 -8
- package/examples/container/base/MainContainer.mjs +1 -3
- package/examples/core/config/MainContainer.mjs +6 -8
- package/examples/dashboard/MainContainer.mjs +2 -4
- package/examples/date/selectorContainer/MainContainer.mjs +4 -6
- package/examples/dialog/DemoDialog.mjs +2 -4
- package/examples/dialog/MainContainer.mjs +3 -5
- package/examples/fieldWithPrefix/MainContainer.mjs +4 -6
- package/examples/fields/MainContainer.mjs +1 -5
- package/examples/form/field/checkbox/MainContainer.mjs +1 -3
- package/examples/form/field/chip/MainContainer.mjs +3 -5
- package/examples/form/field/chip/MainModel.mjs +1 -3
- package/examples/form/field/chip/MainStore.mjs +1 -3
- package/examples/form/field/color/MainContainer.mjs +3 -5
- package/examples/form/field/color/MainModel.mjs +2 -4
- package/examples/form/field/color/MainStore.mjs +1 -3
- package/examples/form/field/combobox/MainContainer.mjs +2 -4
- package/examples/form/field/combobox/MainModel.mjs +2 -4
- package/examples/form/field/combobox/MainStore.mjs +2 -4
- package/examples/form/field/date/MainContainer.mjs +3 -5
- package/examples/form/field/email/MainContainer.mjs +3 -5
- package/examples/form/field/fileupload/MainContainer.mjs +3 -5
- package/examples/form/field/number/MainContainer.mjs +3 -5
- package/examples/form/field/picker/MainContainer.mjs +3 -5
- package/examples/form/field/radio/MainContainer.mjs +2 -4
- package/examples/form/field/switch/MainContainer.mjs +1 -3
- package/examples/form/field/text/MainContainer.mjs +1 -3
- package/examples/form/field/textarea/MainContainer.mjs +3 -5
- package/examples/form/field/time/MainContainer.mjs +3 -5
- package/examples/form/field/trigger/copyToClipboard/MainContainer.mjs +4 -8
- package/examples/form/field/url/MainContainer.mjs +3 -5
- package/examples/form/fieldset/MainContainer.mjs +3 -5
- package/examples/grid/container/MainContainer.mjs +3 -5
- package/examples/grid/container/MainModel.mjs +2 -4
- package/examples/grid/container/MainStore.mjs +7 -14
- package/examples/grid/covid/GridContainer.mjs +1 -3
- package/examples/grid/covid/GridContainerController.mjs +2 -4
- package/examples/grid/covid/MainContainer.mjs +1 -3
- package/examples/grid/covid/Model.mjs +1 -3
- package/examples/grid/covid/Store.mjs +1 -3
- package/examples/grid/covid/Util.mjs +9 -11
- package/examples/layout/card/MainContainer.mjs +2 -4
- package/examples/layout/cube/MainContainer.mjs +3 -5
- package/examples/layout/form/MainContainer.mjs +3 -5
- package/examples/list/animate/List.mjs +2 -4
- package/examples/list/animate/MainContainer.mjs +1 -3
- package/examples/list/animate/MainContainerController.mjs +5 -7
- package/examples/list/animate/MainModel.mjs +2 -4
- package/examples/list/animate/MainStore.mjs +3 -5
- package/examples/list/base/MainContainer.mjs +3 -5
- package/examples/list/base/MainModel.mjs +2 -4
- package/examples/list/base/MainStore.mjs +1 -3
- package/examples/list/chip/MainContainer.mjs +3 -5
- package/examples/list/chip/MainModel.mjs +2 -4
- package/examples/list/chip/MainStore.mjs +1 -3
- package/examples/list/circle/MainContainer.mjs +1 -3
- package/examples/list/circle/MainModel.mjs +2 -4
- package/examples/list/circle/MainStore.mjs +1 -3
- package/examples/list/color/MainContainer.mjs +3 -5
- package/examples/list/color/MainModel.mjs +2 -4
- package/examples/list/color/MainStore.mjs +1 -3
- package/examples/menu/list/MainContainer.mjs +3 -5
- package/examples/menu/list/MainStore.mjs +1 -3
- package/examples/menu/panel/MainContainer.mjs +2 -4
- package/examples/model/advanced/MainContainer.mjs +1 -3
- package/examples/model/advanced/MainContainerController.mjs +15 -17
- package/examples/model/dialog/EditUserDialog.mjs +1 -3
- package/examples/model/dialog/EditUserDialogController.mjs +5 -7
- package/examples/model/dialog/MainContainer.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +6 -8
- package/examples/model/extendedClass/MainContainer.mjs +1 -3
- package/examples/model/extendedClass/MainContainerController.mjs +10 -12
- package/examples/model/extendedClass/MainContainerModel.mjs +3 -5
- package/examples/model/inline/MainContainer.mjs +1 -3
- package/examples/model/inline/MainContainerController.mjs +10 -12
- package/examples/model/inlineNoModel/MainContainer.mjs +1 -3
- package/examples/model/inlineNoModel/MainContainerController.mjs +11 -13
- package/examples/model/multiWindow/EditUserDialog.mjs +1 -3
- package/examples/model/multiWindow/EditUserDialogController.mjs +5 -7
- package/examples/model/multiWindow/MainContainer.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +7 -9
- package/examples/model/multiWindow/Viewport.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +5 -7
- package/examples/model/multiWindow2/Viewport.mjs +1 -3
- package/examples/model/nestedData/MainContainer.mjs +1 -3
- package/examples/model/nestedData/MainContainerController.mjs +10 -12
- package/examples/model/table/MainContainer.mjs +1 -3
- package/examples/model/table/MainContainerModel.mjs +3 -5
- package/examples/model/table/MainModel.mjs +2 -4
- package/examples/model/table/MainStore.mjs +2 -4
- package/examples/model/twoWay/MainContainer.mjs +1 -3
- package/examples/panel/MainContainer.mjs +1 -3
- package/examples/panel/MainContainerController.mjs +5 -7
- package/examples/popover/MainContainer.mjs +4 -7
- package/examples/preloadingAssets/view/MainContainer.mjs +1 -3
- package/examples/preloadingAssets/view/MainContainerController.mjs +3 -5
- package/examples/remotesApi/basic/MainContainer.mjs +1 -3
- package/examples/remotesApi/basic/MainContainerController.mjs +1 -3
- package/examples/sitemap/MainContainer.mjs +1 -3
- package/examples/tab/container/MainContainer.mjs +13 -15
- package/examples/table/container/MainContainer.mjs +6 -8
- package/examples/table/container/MainModel.mjs +2 -4
- package/examples/table/container/MainStore.mjs +2 -4
- package/examples/table/covid/MainContainer.mjs +1 -3
- package/examples/table/covid/Model.mjs +1 -3
- package/examples/table/covid/Store.mjs +1 -3
- package/examples/table/covid/TableContainer.mjs +1 -3
- package/examples/table/covid/TableContainerController.mjs +5 -7
- package/examples/table/covid/Util.mjs +9 -11
- package/examples/tableFiltering/MainContainer.mjs +1 -3
- package/examples/tableFiltering/MainModel.mjs +2 -4
- package/examples/tableFiltering/MainStore.mjs +2 -4
- package/examples/tablePerformance/MainContainer.mjs +1 -3
- package/examples/tablePerformance/MainContainer2.mjs +1 -3
- package/examples/tablePerformance/MainContainer3.mjs +1 -3
- package/examples/tablePerformance/Viewport.mjs +3 -5
- package/examples/tableStore/MainContainer.mjs +1 -3
- package/examples/tableStore/MainModel.mjs +2 -4
- package/examples/tableStore/MainStore.mjs +2 -4
- package/examples/tabs/MainContainer.mjs +2 -4
- package/examples/tabs/MainContainer2.mjs +1 -3
- package/examples/todoList/version1/MainComponent.mjs +11 -13
- package/examples/todoList/version2/MainContainer.mjs +4 -9
- package/examples/todoList/version2/TodoList.mjs +1 -3
- package/examples/todoList/version2/TodoListModel.mjs +2 -4
- package/examples/todoList/version2/TodoListStore.mjs +1 -3
- package/examples/toolbar/breadcrumb/view/MainContainer.mjs +1 -3
- package/examples/toolbar/breadcrumb/view/MainContainerController.mjs +2 -4
- package/examples/toolbar/paging/model/User.mjs +1 -3
- package/examples/toolbar/paging/store/Users.mjs +2 -4
- package/examples/toolbar/paging/view/AddUserDialog.mjs +1 -3
- package/examples/toolbar/paging/view/MainContainer.mjs +1 -3
- package/examples/toolbar/paging/view/MainContainerController.mjs +6 -8
- package/examples/toolbar/paging/view/MainContainerModel.mjs +3 -5
- package/examples/toolbar/paging/view/UserTableContainer.mjs +1 -3
- package/examples/tree/MainContainer.mjs +4 -6
- package/examples/treeAccordion/MainContainer.mjs +11 -15
- package/examples/videoMove/MainContainer.mjs +1 -3
- package/examples/viewport/MainContainer.mjs +1 -3
- package/examples/worker/task/MainContainer.mjs +1 -3
- package/package.json +1 -1
- package/resources/data/deck/learnneo/pages/benefits/FormsEngine.md +2 -2
- package/resources/data/deck/learnneo/pages/benefits/Multi-Threading.md +3 -3
- package/resources/scss/src/apps/portal/HeaderToolbar.scss +3 -5
- package/resources/scss/src/apps/portal/home/ContentBox.scss +41 -8
- package/resources/scss/src/toolbar/Base.scss +4 -0
- package/src/DefaultConfig.mjs +2 -2
- package/src/Neo.mjs +19 -16
- package/src/button/Base.mjs +1 -3
- package/src/button/Menu.mjs +1 -3
- package/src/button/Split.mjs +1 -3
- package/src/calendar/model/Calendar.mjs +1 -3
- package/src/calendar/model/Color.mjs +1 -3
- package/src/calendar/model/Event.mjs +1 -3
- package/src/calendar/store/Calendars.mjs +1 -3
- package/src/calendar/store/Colors.mjs +1 -3
- package/src/calendar/store/Events.mjs +1 -3
- package/src/calendar/view/DayComponent.mjs +1 -3
- package/src/calendar/view/EditEventContainer.mjs +1 -3
- package/src/calendar/view/MainContainer.mjs +1 -3
- package/src/calendar/view/MainContainerModel.mjs +1 -3
- package/src/calendar/view/SettingsContainer.mjs +1 -3
- package/src/calendar/view/YearComponent.mjs +1 -3
- package/src/calendar/view/calendars/ColorsList.mjs +1 -3
- package/src/calendar/view/calendars/Container.mjs +1 -3
- package/src/calendar/view/calendars/EditContainer.mjs +1 -3
- package/src/calendar/view/calendars/List.mjs +1 -3
- package/src/calendar/view/month/Component.mjs +1 -3
- package/src/calendar/view/settings/GeneralContainer.mjs +1 -3
- package/src/calendar/view/settings/MonthContainer.mjs +1 -3
- package/src/calendar/view/settings/WeekContainer.mjs +1 -3
- package/src/calendar/view/settings/YearContainer.mjs +1 -3
- package/src/calendar/view/week/Component.mjs +1 -3
- package/src/calendar/view/week/EventDragZone.mjs +1 -3
- package/src/calendar/view/week/TimeAxisComponent.mjs +1 -3
- package/src/calendar/view/week/plugin/DragDrop.mjs +1 -3
- package/src/calendar/view/week/plugin/EventResizable.mjs +1 -3
- package/src/code/LivePreview.mjs +13 -4
- package/src/collection/Base.mjs +1 -3
- package/src/collection/Filter.mjs +1 -3
- package/src/collection/Sorter.mjs +1 -3
- package/src/component/Base.mjs +2 -3
- package/src/component/BoxLabel.mjs +1 -3
- package/src/component/Canvas.mjs +1 -3
- package/src/component/Carousel.mjs +1 -3
- package/src/component/Chip.mjs +1 -3
- package/src/component/Circle.mjs +1 -3
- package/src/component/Clock.mjs +1 -3
- package/src/component/DateSelector.mjs +1 -3
- package/src/component/Gallery.mjs +1 -3
- package/src/component/Helix.mjs +1 -3
- package/src/component/Iframe.mjs +1 -3
- package/src/component/Label.mjs +1 -3
- package/src/component/Legend.mjs +1 -3
- package/src/component/Process.mjs +1 -3
- package/src/component/Progress.mjs +1 -3
- package/src/component/Splitter.mjs +1 -3
- package/src/component/StatusBadge.mjs +1 -3
- package/src/component/Timer.mjs +1 -3
- package/src/component/Toast.mjs +1 -3
- package/src/component/Video.mjs +22 -19
- package/src/component/mwc/Button.mjs +1 -3
- package/src/component/mwc/TextField.mjs +1 -3
- package/src/component/wrapper/AmChart.mjs +1 -3
- package/src/component/wrapper/CesiumJS.mjs +1 -3
- package/src/component/wrapper/GoogleMaps.mjs +1 -3
- package/src/component/wrapper/MapboxGL.mjs +1 -3
- package/src/component/wrapper/MonacoEditor.mjs +1 -3
- package/src/container/Accordion.mjs +1 -3
- package/src/container/AccordionItem.mjs +1 -3
- package/src/container/Base.mjs +1 -3
- package/src/container/Panel.mjs +1 -3
- package/src/container/Viewport.mjs +1 -3
- package/src/controller/Application.mjs +1 -1
- package/src/controller/Base.mjs +1 -3
- package/src/controller/Component.mjs +1 -3
- package/src/core/Base.mjs +7 -5
- package/src/core/Compare.mjs +1 -1
- package/src/core/Observable.mjs +1 -3
- package/src/core/Util.mjs +1 -1
- package/src/dashboard/Container.mjs +1 -3
- package/src/data/Model.mjs +1 -3
- package/src/data/Store.mjs +1 -3
- package/src/data/connection/Fetch.mjs +1 -3
- package/src/data/connection/WebSocket.mjs +1 -3
- package/src/data/connection/Xhr.mjs +1 -3
- package/src/date/DayViewComponent.mjs +1 -3
- package/src/date/SelectorContainer.mjs +1 -3
- package/src/date/SelectorContainerModel.mjs +1 -3
- package/src/dialog/Base.mjs +1 -3
- package/src/dialog/header/Toolbar.mjs +1 -3
- package/src/draggable/DragProxyComponent.mjs +1 -3
- package/src/draggable/DragZone.mjs +1 -3
- package/src/draggable/DropZone.mjs +1 -3
- package/src/draggable/list/DragZone.mjs +1 -3
- package/src/draggable/list/SortZone.mjs +1 -3
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +1 -3
- package/src/draggable/toolbar/SortZone.mjs +1 -3
- package/src/draggable/tree/DragZone.mjs +1 -3
- package/src/draggable/tree/SortZone.mjs +1 -3
- package/src/filter/BooleanContainer.mjs +1 -3
- package/src/filter/DateContainer.mjs +1 -3
- package/src/filter/NumberContainer.mjs +1 -3
- package/src/filter/ToggleOperatorsButton.mjs +1 -3
- package/src/form/Container.mjs +1 -3
- package/src/form/Fieldset.mjs +1 -3
- package/src/form/field/Base.mjs +1 -3
- package/src/form/field/CheckBox.mjs +1 -3
- package/src/form/field/Chip.mjs +1 -3
- package/src/form/field/Color.mjs +1 -3
- package/src/form/field/ComboBox.mjs +1 -3
- package/src/form/field/Country.mjs +1 -3
- package/src/form/field/Currency.mjs +1 -3
- package/src/form/field/Date.mjs +1 -3
- package/src/form/field/Display.mjs +1 -3
- package/src/form/field/Email.mjs +1 -3
- package/src/form/field/FileUpload.mjs +1 -3
- package/src/form/field/Hidden.mjs +1 -3
- package/src/form/field/Number.mjs +1 -3
- package/src/form/field/Password.mjs +1 -3
- package/src/form/field/Phone.mjs +1 -3
- package/src/form/field/Picker.mjs +1 -3
- package/src/form/field/Radio.mjs +1 -3
- package/src/form/field/Range.mjs +1 -3
- package/src/form/field/Search.mjs +1 -3
- package/src/form/field/Switch.mjs +1 -3
- package/src/form/field/Text.mjs +1 -3
- package/src/form/field/TextArea.mjs +1 -3
- package/src/form/field/Time.mjs +1 -3
- package/src/form/field/Url.mjs +1 -3
- package/src/form/field/ZipCode.mjs +1 -3
- package/src/form/field/trigger/Base.mjs +1 -3
- package/src/form/field/trigger/Clear.mjs +1 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +1 -3
- package/src/form/field/trigger/Date.mjs +1 -3
- package/src/form/field/trigger/Picker.mjs +1 -3
- package/src/form/field/trigger/Search.mjs +1 -3
- package/src/form/field/trigger/SpinDown.mjs +1 -3
- package/src/form/field/trigger/SpinUp.mjs +1 -3
- package/src/form/field/trigger/SpinUpDown.mjs +1 -3
- package/src/form/field/trigger/Time.mjs +1 -3
- package/src/grid/Container.mjs +1 -3
- package/src/grid/View.mjs +1 -3
- package/src/grid/header/Button.mjs +1 -3
- package/src/grid/header/Toolbar.mjs +1 -3
- package/src/layout/Base.mjs +1 -3
- package/src/layout/Card.mjs +1 -3
- package/src/layout/Cube.mjs +1 -3
- package/src/layout/Fit.mjs +1 -3
- package/src/layout/Flexbox.mjs +1 -3
- package/src/layout/Form.mjs +1 -3
- package/src/layout/Grid.mjs +1 -3
- package/src/layout/HBox.mjs +1 -3
- package/src/layout/VBox.mjs +1 -3
- package/src/list/Base.mjs +1 -3
- package/src/list/Chip.mjs +1 -3
- package/src/list/Circle.mjs +1 -3
- package/src/list/Color.mjs +1 -3
- package/src/list/Component.mjs +1 -3
- package/src/list/plugin/Animate.mjs +1 -3
- package/src/main/DomAccess.mjs +6 -3
- package/src/main/addon/AmCharts.mjs +67 -64
- package/src/main/addon/AnalyticsByGoogle.mjs +1 -3
- package/src/main/addon/Base.mjs +89 -4
- package/src/main/addon/CesiumJS.mjs +1 -3
- package/src/main/addon/CloneNode.mjs +1 -3
- package/src/main/addon/Cookie.mjs +1 -3
- package/src/main/addon/DragDrop.mjs +1 -3
- package/src/main/addon/GoogleMaps.mjs +1 -3
- package/src/main/addon/HighlightJS.mjs +48 -71
- package/src/main/addon/IntersectionObserver.mjs +1 -3
- package/src/main/addon/LocalStorage.mjs +1 -3
- package/src/main/addon/MapboxGL.mjs +1 -3
- package/src/main/addon/Markdown.mjs +1 -3
- package/src/main/addon/MonacoEditor.mjs +72 -34
- package/src/main/addon/Mwc.mjs +1 -3
- package/src/main/addon/Navigator.mjs +1 -3
- package/src/main/addon/Popover.mjs +1 -3
- package/src/main/addon/PrefixField.mjs +1 -3
- package/src/main/addon/ResizeObserver.mjs +1 -3
- package/src/main/addon/ServiceWorker.mjs +1 -3
- package/src/main/addon/Siesta.mjs +1 -3
- package/src/main/addon/Stylesheet.mjs +1 -3
- package/src/main/addon/WebComponent.mjs +1 -3
- package/src/main/addon/WindowPosition.mjs +1 -3
- package/src/main/draggable/sensor/Base.mjs +1 -3
- package/src/main/draggable/sensor/Mouse.mjs +1 -3
- package/src/main/draggable/sensor/Touch.mjs +1 -3
- package/src/main/mixin/DeltaUpdates.mjs +1 -3
- package/src/main/mixin/TouchDomEvents.mjs +1 -3
- package/src/manager/Base.mjs +1 -3
- package/src/menu/List.mjs +1 -3
- package/src/menu/Model.mjs +1 -3
- package/src/menu/Panel.mjs +1 -3
- package/src/menu/Store.mjs +1 -3
- package/src/model/Component.mjs +1 -3
- package/src/plugin/Base.mjs +1 -3
- package/src/plugin/Popover.mjs +1 -3
- package/src/plugin/PrefixField.mjs +1 -3
- package/src/plugin/Resizable.mjs +1 -3
- package/src/plugin/Responsive.mjs +1 -3
- package/src/selection/CircleModel.mjs +1 -3
- package/src/selection/DateSelectorModel.mjs +1 -3
- package/src/selection/GalleryModel.mjs +1 -3
- package/src/selection/HelixModel.mjs +1 -3
- package/src/selection/ListModel.mjs +1 -3
- package/src/selection/Model.mjs +1 -3
- package/src/selection/TreeAccordionModel.mjs +1 -3
- package/src/selection/TreeModel.mjs +1 -3
- package/src/selection/grid/CellColumnModel.mjs +1 -3
- package/src/selection/grid/CellColumnRowModel.mjs +1 -3
- package/src/selection/grid/CellModel.mjs +1 -3
- package/src/selection/grid/CellRowModel.mjs +1 -3
- package/src/selection/grid/ColumnModel.mjs +1 -3
- package/src/selection/grid/RowModel.mjs +1 -3
- package/src/selection/menu/ListModel.mjs +1 -3
- package/src/selection/table/CellColumnModel.mjs +1 -3
- package/src/selection/table/CellColumnRowModel.mjs +1 -3
- package/src/selection/table/CellModel.mjs +1 -3
- package/src/selection/table/CellRowModel.mjs +1 -3
- package/src/selection/table/ColumnModel.mjs +1 -3
- package/src/selection/table/RowModel.mjs +1 -3
- package/src/sitemap/Component.mjs +1 -3
- package/src/sitemap/Model.mjs +1 -3
- package/src/sitemap/Store.mjs +1 -3
- package/src/tab/Container.mjs +1 -3
- package/src/tab/Strip.mjs +1 -3
- package/src/tab/header/Button.mjs +1 -3
- package/src/tab/header/Toolbar.mjs +1 -3
- package/src/table/Container.mjs +1 -3
- package/src/table/View.mjs +1 -3
- package/src/table/header/Button.mjs +1 -3
- package/src/table/header/Toolbar.mjs +1 -3
- package/src/toolbar/Base.mjs +1 -3
- package/src/toolbar/Breadcrumb.mjs +1 -3
- package/src/toolbar/Paging.mjs +1 -3
- package/src/tooltip/Base.mjs +1 -3
- package/src/tree/Accordion.mjs +1 -3
- package/src/tree/List.mjs +1 -3
- package/src/util/Array.mjs +1 -3
- package/src/util/ClassSystem.mjs +1 -3
- package/src/util/Css.mjs +1 -3
- package/src/util/Date.mjs +1 -3
- package/src/util/KeyNavigation.mjs +1 -3
- package/src/util/Matrix.mjs +1 -3
- package/src/util/String.mjs +1 -3
- package/src/util/Style.mjs +1 -3
- package/src/util/VDom.mjs +1 -3
- package/src/util/VNode.mjs +1 -3
- package/src/worker/Base.mjs +1 -3
- package/src/worker/Manager.mjs +3 -0
- package/src/worker/ServiceBase.mjs +1 -3
- package/src/worker/mixin/RemoteMethodAccess.mjs +1 -3
- /package/apps/portal/{data → resources/data}/blog.json +0 -0
- /package/{resources → apps/portal/resources}/images/workers-focus.svg +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlight/CHANGES.md +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlight/LICENSE +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlight/README.md +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlight/highlight.pack.js +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlightjs-custom-dark-theme.css +0 -0
- /package/{docs/resources → apps/portal/resources/lib}/highlightjs-custom-github-theme.css +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
Copyright (c) 2006, Ivan Sagalaev
|
2
|
+
All rights reserved.
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
4
|
+
modification, are permitted provided that the following conditions are met:
|
5
|
+
|
6
|
+
* Redistributions of source code must retain the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
|
+
* Redistributions in binary form must reproduce the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the distribution.
|
11
|
+
* Neither the name of highlight.js nor the names of its contributors
|
12
|
+
may be used to endorse or promote products derived from this software
|
13
|
+
without specific prior written permission.
|
14
|
+
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
|
16
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
17
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
|
19
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,186 @@
|
|
1
|
+
# Highlight.js
|
2
|
+
|
3
|
+
[](https://travis-ci.org/highlightjs/highlight.js)
|
4
|
+
|
5
|
+
Highlight.js is a syntax highlighter written in JavaScript. It works in
|
6
|
+
the browser as well as on the server. It works with pretty much any
|
7
|
+
markup, doesn’t depend on any framework, and has automatic language
|
8
|
+
detection.
|
9
|
+
|
10
|
+
## Getting Started
|
11
|
+
|
12
|
+
The bare minimum for using highlight.js on a web page is linking to the
|
13
|
+
library along with one of the styles and calling
|
14
|
+
[`initHighlightingOnLoad`][1]:
|
15
|
+
|
16
|
+
```html
|
17
|
+
<link rel="stylesheet" href="/path/to/styles/default.css">
|
18
|
+
<script src="/path/to/highlight.pack.js"></script>
|
19
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
20
|
+
```
|
21
|
+
|
22
|
+
This will find and highlight code inside of `<pre><code>` tags; it tries
|
23
|
+
to detect the language automatically. If automatic detection doesn’t
|
24
|
+
work for you, you can specify the language in the `class` attribute:
|
25
|
+
|
26
|
+
```html
|
27
|
+
<pre><code class="html">...</code></pre>
|
28
|
+
```
|
29
|
+
|
30
|
+
The list of supported language classes is available in the [class
|
31
|
+
reference][2]. Classes can also be prefixed with either `language-` or
|
32
|
+
`lang-`.
|
33
|
+
|
34
|
+
To make arbitrary text look like code, but without highlighting, use the
|
35
|
+
`plaintext` class:
|
36
|
+
|
37
|
+
```html
|
38
|
+
<pre><code class="plaintext">...</code></pre>
|
39
|
+
```
|
40
|
+
|
41
|
+
To disable highlighting altogether use the `nohighlight` class:
|
42
|
+
|
43
|
+
```html
|
44
|
+
<pre><code class="nohighlight">...</code></pre>
|
45
|
+
```
|
46
|
+
|
47
|
+
## Custom Initialization
|
48
|
+
|
49
|
+
When you need a bit more control over the initialization of
|
50
|
+
highlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]
|
51
|
+
functions. This allows you to control *what* to highlight and *when*.
|
52
|
+
|
53
|
+
Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using
|
54
|
+
jQuery:
|
55
|
+
|
56
|
+
```javascript
|
57
|
+
$(document).ready(function() {
|
58
|
+
$('pre code').each(function(i, block) {
|
59
|
+
hljs.highlightBlock(block);
|
60
|
+
});
|
61
|
+
});
|
62
|
+
```
|
63
|
+
|
64
|
+
You can use any tags instead of `<pre><code>` to mark up your code. If
|
65
|
+
you don't use a container that preserves line breaks you will need to
|
66
|
+
configure highlight.js to use the `<br>` tag:
|
67
|
+
|
68
|
+
```javascript
|
69
|
+
hljs.configure({useBR: true});
|
70
|
+
|
71
|
+
$('div.code').each(function(i, block) {
|
72
|
+
hljs.highlightBlock(block);
|
73
|
+
});
|
74
|
+
```
|
75
|
+
|
76
|
+
For other options refer to the documentation for [`configure`][4].
|
77
|
+
|
78
|
+
|
79
|
+
## Web Workers
|
80
|
+
|
81
|
+
You can run highlighting inside a web worker to avoid freezing the browser
|
82
|
+
window while dealing with very big chunks of code.
|
83
|
+
|
84
|
+
In your main script:
|
85
|
+
|
86
|
+
```javascript
|
87
|
+
addEventListener('load', function() {
|
88
|
+
var code = document.querySelector('#code');
|
89
|
+
var worker = new Worker('worker.js');
|
90
|
+
worker.onmessage = function(event) { code.innerHTML = event.data; }
|
91
|
+
worker.postMessage(code.textContent);
|
92
|
+
})
|
93
|
+
```
|
94
|
+
|
95
|
+
In worker.js:
|
96
|
+
|
97
|
+
```javascript
|
98
|
+
onmessage = function(event) {
|
99
|
+
importScripts('<path>/highlight.pack.js');
|
100
|
+
var result = self.hljs.highlightAuto(event.data);
|
101
|
+
postMessage(result.value);
|
102
|
+
}
|
103
|
+
```
|
104
|
+
|
105
|
+
|
106
|
+
## Getting the Library
|
107
|
+
|
108
|
+
You can get highlight.js as a hosted, or custom-build, browser script or
|
109
|
+
as a server module. Right out of the box the browser script supports
|
110
|
+
both AMD and CommonJS, so if you wish you can use RequireJS or
|
111
|
+
Browserify without having to build from source. The server module also
|
112
|
+
works perfectly fine with Browserify, but there is the option to use a
|
113
|
+
build specific to browsers rather than something meant for a server.
|
114
|
+
Head over to the [download page][5] for all the options.
|
115
|
+
|
116
|
+
**Don't link to GitHub directly.** The library is not supposed to work straight
|
117
|
+
from the source, it requires building. If none of the pre-packaged options
|
118
|
+
work for you refer to the [building documentation][6].
|
119
|
+
|
120
|
+
**The CDN-hosted package doesn't have all the languages.** Otherwise it'd be
|
121
|
+
too big. If you don't see the language you need in the ["Common" section][5],
|
122
|
+
it can be added manually:
|
123
|
+
|
124
|
+
```html
|
125
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js"></script>
|
126
|
+
```
|
127
|
+
|
128
|
+
**On Almond.** You need to use the optimizer to give the module a name. For
|
129
|
+
example:
|
130
|
+
|
131
|
+
```
|
132
|
+
r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
### CommonJS
|
137
|
+
|
138
|
+
You can import Highlight.js as a CommonJS-module:
|
139
|
+
|
140
|
+
```bash
|
141
|
+
npm install highlight.js --save
|
142
|
+
```
|
143
|
+
|
144
|
+
In your application:
|
145
|
+
|
146
|
+
```javascript
|
147
|
+
import hljs from 'highlight.js';
|
148
|
+
```
|
149
|
+
|
150
|
+
The default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:
|
151
|
+
|
152
|
+
```javascript
|
153
|
+
import hljs from 'highlight.js/lib/highlight';
|
154
|
+
import javascript from 'highlight.js/lib/languages/javascript';
|
155
|
+
hljs.registerLanguage('javascript', javascript);
|
156
|
+
```
|
157
|
+
|
158
|
+
To set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:
|
159
|
+
|
160
|
+
```javascript
|
161
|
+
import hljs from 'highlight.js/lib/highlight';
|
162
|
+
import 'highlight.js/styles/github.css'
|
163
|
+
```
|
164
|
+
|
165
|
+
## License
|
166
|
+
|
167
|
+
Highlight.js is released under the BSD License. See [LICENSE][7] file
|
168
|
+
for details.
|
169
|
+
|
170
|
+
## Links
|
171
|
+
|
172
|
+
The official site for the library is at <https://highlightjs.org/>.
|
173
|
+
|
174
|
+
Further in-depth documentation for the API and other topics is at
|
175
|
+
<http://highlightjs.readthedocs.io/>.
|
176
|
+
|
177
|
+
Authors and contributors are listed in the [AUTHORS.en.txt][8] file.
|
178
|
+
|
179
|
+
[1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload
|
180
|
+
[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
|
181
|
+
[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
|
182
|
+
[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
|
183
|
+
[5]: https://highlightjs.org/download/
|
184
|
+
[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
|
185
|
+
[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE
|
186
|
+
[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! highlight.js v9.13.1 | BSD3 License | git.io/hljslicense */
|
2
|
+
!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0===t.index}function a(e){return k.test(e)}function i(e){var n,t,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=M.exec(o))return w(t[1])?t[1]:"no-highlight";for(o=o.split(/\s+/),n=0,r=o.length;r>n;n++)if(i=o[n],a(i)||w(i))return i}function o(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function c(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?a+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function u(e,r,a){function i(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function o(e){function r(e){return" "+e.nodeName+'="'+n(e.value).replace('"',""")+'"'}l+="<"+t(e)+E.map.call(e.attributes,r).join("")+">"}function c(e){l+="</"+t(e)+">"}function u(e){("start"===e.event?o:c)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substring(s,g[0].offset)),s=g[0].offset,g===e){f.reverse().forEach(c);do u(g.splice(0,1)[0]),g=i();while(g===e&&g.length&&g[0].offset===s);f.reverse().forEach(o)}else"start"===g[0].event?f.push(g[0].node):f.pop(),u(g.splice(0,1)[0])}return l+n(a.substr(s))}function s(e){return e.v&&!e.cached_variants&&(e.cached_variants=e.v.map(function(n){return o(e,{v:null},n)})),e.cached_variants||e.eW&&[o(e)]||[e]}function l(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):B(a.k).forEach(function(e){c(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.endSameAsBegin&&(a.e=a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),null==a.r&&(a.r=1),a.c||(a.c=[]),a.c=Array.prototype.concat.apply([],a.c.map(function(e){return s("self"===e?a:e)})),a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var u=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=u.length?t(u.join("|"),!0):{exec:function(){return null}}}}r(e)}function f(e,t,a,i){function o(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function c(e,n){var t,a;for(t=0,a=n.c.length;a>t;t++)if(r(n.c[t].bR,e))return n.c[t].endSameAsBegin&&(n.c[t].eR=o(n.c[t].bR.exec(e)[0])),n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function s(e,n){return!a&&r(n.iR,e)}function p(e,n){var t=R.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function d(e,n,t,r){var a=r?"":j.classPrefix,i='<span class="'+a,o=t?"":I;return i+=e+'">',i+n+o}function h(){var e,t,r,a;if(!E.k)return n(k);for(a="",t=0,E.lR.lastIndex=0,r=E.lR.exec(k);r;)a+=n(k.substring(t,r.index)),e=p(E,r),e?(M+=e[1],a+=d(e[0],n(r[0]))):a+=n(r[0]),t=E.lR.lastIndex,r=E.lR.exec(k);return a+n(k.substr(t))}function b(){var e="string"==typeof E.sL;if(e&&!L[E.sL])return n(k);var t=e?f(E.sL,k,!0,B[E.sL]):g(k,E.sL.length?E.sL:void 0);return E.r>0&&(M+=t.r),e&&(B[E.sL]=t.top),d(t.language,t.value,!1,!0)}function v(){y+=null!=E.sL?b():h(),k=""}function m(e){y+=e.cN?d(e.cN,"",!0):"",E=Object.create(e,{parent:{value:E}})}function N(e,n){if(k+=e,null==n)return v(),0;var t=c(n,E);if(t)return t.skip?k+=n:(t.eB&&(k+=n),v(),t.rB||t.eB||(k=n)),m(t,n),t.rB?0:n.length;var r=u(E,n);if(r){var a=E;a.skip?k+=n:(a.rE||a.eE||(k+=n),v(),a.eE&&(k=n));do E.cN&&(y+=I),E.skip||E.sL||(M+=E.r),E=E.parent;while(E!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.eR=r.eR),m(r.starts,"")),a.rE?0:n.length}if(s(n,E))throw new Error('Illegal lexeme "'+n+'" for mode "'+(E.cN||"<unnamed>")+'"');return k+=n,n.length||1}var R=w(e);if(!R)throw new Error('Unknown language: "'+e+'"');l(R);var x,E=i||R,B={},y="";for(x=E;x!==R;x=x.parent)x.cN&&(y=d(x.cN,"",!0)+y);var k="",M=0;try{for(var C,A,S=0;;){if(E.t.lastIndex=S,C=E.t.exec(t),!C)break;A=N(t.substring(S,C.index),C[0]),S=C.index+A}for(N(t.substr(S)),x=E;x.parent;x=x.parent)x.cN&&(y+=I);return{r:M,value:y,language:e,top:E}}catch(O){if(O.message&&-1!==O.message.indexOf("Illegal"))return{r:0,value:n(t)};throw O}}function g(e,t){t=t||j.languages||B(L);var r={r:0,value:n(e)},a=r;return t.filter(w).filter(x).forEach(function(n){var t=f(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function p(e){return j.tabReplace||j.useBR?e.replace(C,function(e,n){return j.useBR&&"\n"===e?"<br>":j.tabReplace?n.replace(/\t/g,j.tabReplace):""}):e}function d(e,n,t){var r=n?y[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function h(e){var n,t,r,o,s,l=i(e);a(l)||(j.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):n=e,s=n.textContent,r=l?f(l,s,!0):g(s),t=c(n),t.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=r.value,r.value=u(t,c(o),s)),r.value=p(r.value),e.innerHTML=r.value,e.className=d(e.className,l,r.language),e.result={language:r.language,re:r.r},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.r}))}function b(e){j=o(j,e)}function v(){if(!v.called){v.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,h)}}function m(){addEventListener("DOMContentLoaded",v,!1),addEventListener("load",v,!1)}function N(n,t){var r=L[n]=t(e);r.aliases&&r.aliases.forEach(function(e){y[e]=n})}function R(){return B(L)}function w(e){return e=(e||"").toLowerCase(),L[e]||L[y[e]]}function x(e){var n=w(e);return n&&!n.disableAutodetect}var E=[],B=Object.keys,L={},y={},k=/^(no-?highlight|plain|text)$/i,M=/\blang(?:uage)?-([\w-]+)\b/i,C=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,I="</span>",j={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return e.highlight=f,e.highlightAuto=g,e.fixMarkup=p,e.highlightBlock=h,e.configure=b,e.initHighlighting=v,e.initHighlightingOnLoad=m,e.registerLanguage=N,e.listLanguages=R,e.getLanguage=w,e.autoDetection=x,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e});hljs.registerLanguage("xml",function(s){var e="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/</,r:0,c:[{cN:"attr",b:e,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"meta",b:/<\?xml/,e:/\?>/,r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0},{b:'b"',e:'"',skip:!0},{b:"b'",e:"'",skip:!0},s.inherit(s.ASM,{i:null,cN:null,c:null,skip:!0}),s.inherit(s.QSM,{i:null,cN:null,c:null,skip:!0})]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[t],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[t],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,c),{c:n,k:i,i:"\\S"}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});hljs.registerLanguage("javascript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,c,a,e.RM];var s=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:t,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,c,e.CLCM,e.CBCM,a,{b:/[{,]\s*/,r:0,c:[{b:r+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:r,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+r+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:r},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:s}]}]},{b:/</,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:r}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:s}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/**
|
2
|
+
* based on highlight/styles/darcula.css
|
3
|
+
* and highlight-line-numbers.css
|
4
|
+
*/
|
5
|
+
pre.hljs {
|
6
|
+
margin : 0;
|
7
|
+
padding: 0;
|
8
|
+
}
|
9
|
+
|
10
|
+
code,
|
11
|
+
.hljs {
|
12
|
+
font-family: Menlo, monospace;
|
13
|
+
}
|
14
|
+
|
15
|
+
.hljs {
|
16
|
+
background: #2b2b2b;
|
17
|
+
display : block;
|
18
|
+
font-size : 12px;
|
19
|
+
overflow-x: auto;
|
20
|
+
padding : 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.hljs,
|
24
|
+
.hljs-selector-tag {
|
25
|
+
color: #a9b7c6;
|
26
|
+
}
|
27
|
+
|
28
|
+
.hljs-strong,
|
29
|
+
.hljs-emphasis {
|
30
|
+
color: #a8a8a2;
|
31
|
+
}
|
32
|
+
|
33
|
+
.hljs-bullet,
|
34
|
+
.hljs-quote,
|
35
|
+
.hljs-link,
|
36
|
+
.hljs-number,
|
37
|
+
.hljs-regexp,
|
38
|
+
.hljs-literal {
|
39
|
+
color: #6897bb;
|
40
|
+
}
|
41
|
+
|
42
|
+
.hljs-code,
|
43
|
+
.hljs-selector-class {
|
44
|
+
color: #ffc66d;
|
45
|
+
}
|
46
|
+
|
47
|
+
.hljs-emphasis {
|
48
|
+
font-style: italic;
|
49
|
+
}
|
50
|
+
|
51
|
+
.hljs-keyword,
|
52
|
+
.hljs-section,
|
53
|
+
.hljs-attribute,
|
54
|
+
.hljs-name,
|
55
|
+
.hljs-variable {
|
56
|
+
color: #cc7832;
|
57
|
+
}
|
58
|
+
|
59
|
+
.hljs-params {
|
60
|
+
color: #b9b9b9;
|
61
|
+
}
|
62
|
+
|
63
|
+
.hljs-string {
|
64
|
+
color: #6a8759;
|
65
|
+
}
|
66
|
+
|
67
|
+
.hljs-subst,
|
68
|
+
.hljs-type,
|
69
|
+
.hljs-built_in,
|
70
|
+
.hljs-builtin-name,
|
71
|
+
.hljs-symbol,
|
72
|
+
.hljs-selector-id,
|
73
|
+
.hljs-selector-attr,
|
74
|
+
.hljs-selector-pseudo,
|
75
|
+
.hljs-template-tag,
|
76
|
+
.hljs-template-variable,
|
77
|
+
.hljs-addition {
|
78
|
+
color: #ffc66d;
|
79
|
+
}
|
80
|
+
|
81
|
+
.hljs-comment,
|
82
|
+
.hljs-deletion,
|
83
|
+
.hljs-meta {
|
84
|
+
color: #808080;
|
85
|
+
}
|
86
|
+
|
87
|
+
.hljs-comment {
|
88
|
+
font-weight: 200;
|
89
|
+
}
|
90
|
+
|
91
|
+
/*line number styles*/
|
92
|
+
.hljs-ln {
|
93
|
+
border-right: 1px solid #3c3f41;
|
94
|
+
}
|
95
|
+
|
96
|
+
.hljs-ln-numbers {
|
97
|
+
-webkit-touch-callout: none;
|
98
|
+
-webkit-user-select: none;
|
99
|
+
-khtml-user-select: none;
|
100
|
+
-moz-user-select: none;
|
101
|
+
-ms-user-select: none;
|
102
|
+
user-select: none;
|
103
|
+
|
104
|
+
background-color: #303335;
|
105
|
+
text-align: right;
|
106
|
+
color: #606366;
|
107
|
+
border-right: 1px solid #555;
|
108
|
+
vertical-align: top;
|
109
|
+
padding-left: 5px !important;
|
110
|
+
padding-right: 5px !important;
|
111
|
+
}
|
112
|
+
|
113
|
+
.hljs-ln-code {
|
114
|
+
padding-left : 20px !important;
|
115
|
+
padding-right: 20px !important;
|
116
|
+
}
|
117
|
+
|
118
|
+
.neo-highlighted-line {
|
119
|
+
background-color: #3c3f41 !important;
|
120
|
+
}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
/**
|
2
|
+
* based on highlight/styles/github.css
|
3
|
+
* and highlight-line-numbers.css
|
4
|
+
*/
|
5
|
+
|
6
|
+
pre.hljs {
|
7
|
+
margin : 0;
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
.hljs {
|
12
|
+
background: #fff;
|
13
|
+
color : #333;
|
14
|
+
display : block;
|
15
|
+
font-size : 12px;
|
16
|
+
overflow-x: auto;
|
17
|
+
padding : 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
.hljs-comment,
|
21
|
+
.hljs-quote {
|
22
|
+
color: #998;
|
23
|
+
font-style: italic;
|
24
|
+
}
|
25
|
+
|
26
|
+
.hljs-keyword,
|
27
|
+
.hljs-selector-tag,
|
28
|
+
.hljs-subst {
|
29
|
+
color: #d73a49;
|
30
|
+
}
|
31
|
+
|
32
|
+
.hljs-number,
|
33
|
+
.hljs-literal,
|
34
|
+
.hljs-variable,
|
35
|
+
.hljs-template-variable,
|
36
|
+
.hljs-tag .hljs-attr {
|
37
|
+
color: #005cc5;
|
38
|
+
}
|
39
|
+
|
40
|
+
.hljs-string {
|
41
|
+
color: #032f62;
|
42
|
+
}
|
43
|
+
|
44
|
+
.hljs-doctag {
|
45
|
+
color: #d14;
|
46
|
+
}
|
47
|
+
|
48
|
+
.hljs-title,
|
49
|
+
.hljs-section,
|
50
|
+
.hljs-selector-id {
|
51
|
+
color: #900;
|
52
|
+
font-weight: bold;
|
53
|
+
}
|
54
|
+
|
55
|
+
.hljs-subst {
|
56
|
+
font-weight: normal;
|
57
|
+
}
|
58
|
+
|
59
|
+
.hljs-type,
|
60
|
+
.hljs-class .hljs-title {
|
61
|
+
color: #458;
|
62
|
+
font-weight: bold;
|
63
|
+
}
|
64
|
+
|
65
|
+
.hljs-tag,
|
66
|
+
.hljs-name,
|
67
|
+
.hljs-attribute {
|
68
|
+
color: #000080;
|
69
|
+
font-weight: normal;
|
70
|
+
}
|
71
|
+
|
72
|
+
.hljs-regexp,
|
73
|
+
.hljs-link {
|
74
|
+
color: #009926;
|
75
|
+
}
|
76
|
+
|
77
|
+
.hljs-symbol,
|
78
|
+
.hljs-bullet {
|
79
|
+
color: #990073;
|
80
|
+
}
|
81
|
+
|
82
|
+
.hljs-built_in,
|
83
|
+
.hljs-builtin-name {
|
84
|
+
color: #6f42c1;
|
85
|
+
}
|
86
|
+
|
87
|
+
.hljs-meta {
|
88
|
+
color: #999;
|
89
|
+
font-weight: bold;
|
90
|
+
}
|
91
|
+
|
92
|
+
.hljs-deletion {
|
93
|
+
background: #fdd;
|
94
|
+
}
|
95
|
+
|
96
|
+
.hljs-addition {
|
97
|
+
background: #dfd;
|
98
|
+
}
|
99
|
+
|
100
|
+
.hljs-emphasis {
|
101
|
+
font-style: italic;
|
102
|
+
}
|
103
|
+
|
104
|
+
.hljs-strong {
|
105
|
+
font-weight: bold;
|
106
|
+
}
|
107
|
+
|
108
|
+
.hljs-ln {
|
109
|
+
border-right: 1px solid #ddd;
|
110
|
+
}
|
111
|
+
|
112
|
+
/*line number styles*/
|
113
|
+
.hljs-ln-numbers {
|
114
|
+
-webkit-touch-callout: none;
|
115
|
+
-webkit-user-select: none;
|
116
|
+
-khtml-user-select: none;
|
117
|
+
-moz-user-select: none;
|
118
|
+
-ms-user-select: none;
|
119
|
+
user-select: none;
|
120
|
+
|
121
|
+
background-color: #fff;
|
122
|
+
text-align: right;
|
123
|
+
color: rgba(27,31,35,.3);
|
124
|
+
vertical-align: top;
|
125
|
+
padding-left: 5px !important;
|
126
|
+
padding-right: 5px !important;
|
127
|
+
}
|
128
|
+
|
129
|
+
.hljs-ln-code {
|
130
|
+
padding-left : 20px !important;
|
131
|
+
padding-right: 20px !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
.neo-highlighted-line {
|
135
|
+
background-color: #cee8fc !important;
|
136
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import Button from '../src/button/Base.mjs';
|
2
2
|
import Container from '../src/container/Base.mjs';
|
3
|
-
import {bindAppend} from '../src/util/Function.mjs';
|
4
3
|
import Panel from '../src/container/Panel.mjs';
|
5
4
|
import Viewport from '../src/container/Viewport.mjs';
|
5
|
+
import {bindAppend} from '../src/util/Function.mjs';
|
6
6
|
|
7
7
|
// add custom themes here
|
8
8
|
const themes = [
|
@@ -68,7 +68,7 @@ class ConfigurationViewport extends Viewport {
|
|
68
68
|
theme;
|
69
69
|
|
70
70
|
if (style) {
|
71
|
-
delete me.exampleContainerConfig.style
|
71
|
+
delete me.exampleContainerConfig.style
|
72
72
|
}
|
73
73
|
|
74
74
|
me.exampleComponent = me.createExampleComponent();
|
@@ -132,7 +132,7 @@ class ConfigurationViewport extends Viewport {
|
|
132
132
|
}]
|
133
133
|
}];
|
134
134
|
|
135
|
-
super.onConstructed()
|
135
|
+
super.onConstructed()
|
136
136
|
}
|
137
137
|
|
138
138
|
/**
|
@@ -140,7 +140,7 @@ class ConfigurationViewport extends Viewport {
|
|
140
140
|
* @returns {Object[]|null}
|
141
141
|
*/
|
142
142
|
createConfigurationComponents() {
|
143
|
-
return null
|
143
|
+
return null
|
144
144
|
}
|
145
145
|
|
146
146
|
/**
|
@@ -148,14 +148,14 @@ class ConfigurationViewport extends Viewport {
|
|
148
148
|
* @returns {Neo.component.Base|null}
|
149
149
|
*/
|
150
150
|
createExampleComponent() {
|
151
|
-
return null
|
151
|
+
return null
|
152
152
|
}
|
153
153
|
|
154
154
|
/**
|
155
155
|
* @param {Object} data
|
156
156
|
*/
|
157
157
|
logInstance(data) {
|
158
|
-
console.log(this.exampleComponent)
|
158
|
+
console.log(this.exampleComponent)
|
159
159
|
}
|
160
160
|
|
161
161
|
/**
|
@@ -163,7 +163,7 @@ class ConfigurationViewport extends Viewport {
|
|
163
163
|
* @param {Object} opts
|
164
164
|
*/
|
165
165
|
onConfigChange(config, opts) {
|
166
|
-
this.exampleComponent[config] = opts.value
|
166
|
+
this.exampleComponent[config] = opts.value
|
167
167
|
}
|
168
168
|
|
169
169
|
/**
|
@@ -173,7 +173,7 @@ class ConfigurationViewport extends Viewport {
|
|
173
173
|
*/
|
174
174
|
onRadioChange(config, value, opts) {
|
175
175
|
if (opts.value === true) { // we only want to listen to check events, not uncheck
|
176
|
-
this.exampleComponent[config] = value
|
176
|
+
this.exampleComponent[config] = value
|
177
177
|
}
|
178
178
|
}
|
179
179
|
|
@@ -198,11 +198,10 @@ class ConfigurationViewport extends Viewport {
|
|
198
198
|
oldIndex = (themeIndex + countThemes -1) % countThemes;
|
199
199
|
oldTheme = themes[oldIndex].name;
|
200
200
|
|
201
|
-
|
202
201
|
button.text = themes[futureIndex].label;
|
203
202
|
|
204
203
|
if (target === 'cmp') {
|
205
|
-
me.exampleComponent.theme = newTheme
|
204
|
+
me.exampleComponent.theme = newTheme
|
206
205
|
} else {
|
207
206
|
Neo.applyDeltas(me.appName, {
|
208
207
|
id : me.id, // the viewport can get imported into other apps, so an id makes sense for scoping
|
@@ -215,6 +214,4 @@ class ConfigurationViewport extends Viewport {
|
|
215
214
|
}
|
216
215
|
}
|
217
216
|
|
218
|
-
Neo.setupClass(ConfigurationViewport);
|
219
|
-
|
220
|
-
export default ConfigurationViewport;
|
217
|
+
export default Neo.setupClass(ConfigurationViewport);
|
@@ -28,19 +28,19 @@ class MainContainerController extends ComponentController {
|
|
28
28
|
buttonText = 'Theme Dark';
|
29
29
|
headerColor = '#f2f2f2';
|
30
30
|
iconCls = 'fa fa-moon';
|
31
|
-
theme = 'neo-theme-light'
|
31
|
+
theme = 'neo-theme-light'
|
32
32
|
} else {
|
33
33
|
buttonText = 'Theme Light';
|
34
34
|
headerColor = '#33343d';
|
35
35
|
iconCls = 'fa fa-sun';
|
36
|
-
theme = 'neo-theme-dark'
|
36
|
+
theme = 'neo-theme-dark'
|
37
37
|
}
|
38
38
|
|
39
39
|
cls = [...component.cls];
|
40
40
|
|
41
41
|
component.cls.forEach(item => {
|
42
42
|
if (item.includes('neo-theme')) {
|
43
|
-
NeoArray.remove(cls, item)
|
43
|
+
NeoArray.remove(cls, item)
|
44
44
|
}
|
45
45
|
});
|
46
46
|
|
@@ -54,10 +54,8 @@ class MainContainerController extends ComponentController {
|
|
54
54
|
|
55
55
|
style = headerToolbar.style || {};
|
56
56
|
style.backgroundColor = headerColor;
|
57
|
-
headerToolbar.style = style
|
57
|
+
headerToolbar.style = style
|
58
58
|
}
|
59
59
|
}
|
60
60
|
|
61
|
-
Neo.setupClass(MainContainerController);
|
62
|
-
|
63
|
-
export default MainContainerController;
|
61
|
+
export default Neo.setupClass(MainContainerController);
|
@@ -66,10 +66,8 @@ class MainContainer extends Viewport {
|
|
66
66
|
*/
|
67
67
|
construct(config) {
|
68
68
|
super.construct(config);
|
69
|
-
Neo.worker.App.insertThemeFiles(this.appName, null, 'Neo.calendar.view.MainContainer')
|
69
|
+
Neo.worker.App.insertThemeFiles(this.appName, null, 'Neo.calendar.view.MainContainer')
|
70
70
|
}
|
71
71
|
}
|
72
72
|
|
73
|
-
Neo.setupClass(MainContainer);
|
74
|
-
|
75
|
-
export default MainContainer;
|
73
|
+
export default Neo.setupClass(MainContainer);
|