From e8c83115ab2cf00b7e46b4f7bf6546e37e1a5353 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Thu, 9 Nov 2023 16:19:17 -0800 Subject: [PATCH 1/7] Update readme with depreciated message --- README.md | 40 ++++++---------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 55bb181..2bdfca3 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@

- - NPM Package + + NPM Package   @@ -16,40 +16,12 @@

+## Important Information -## Description - -The Vue 3 CodeBlock component leverages the power of [PrismJS](https://prismjs.com/) or [Highlight.js](https://highlightjs.org/) to provide syntax highlighting for code blocks within your application. The component takes a prop, which is the code to be highlighted, and uses PrismJS or Highlight.js to render the code with syntax highlighting. The component supports a variety of programming languages and can be customized with different themes to match your application's design. With this component, your users can display their code snippets with ease and clarity, making it easier to share and collaborate on code within your application. - - -## Installation - -Using [pnpm](https://pnpm.io/): -``` -pnpm add vue3-code-block -``` - -Using npm: -``` -npm i vue3-code-block -``` - -## Documentation - -[Documentation & Demo](https://webdevnerdstuff.github.io/vue3-code-block/) - -## Dependencies - -[PrismJS](https://prismjs.com/) -[Highlight.js](https://highlightjs.org/) -[Vue 3](https://vuejs.org/) -[UAParser.js](https://www.npmjs.com/package/ua-parser-js) - - -## Change Log - -[CHANGELOG](https://github.com/webdevnerdstuff/vue3-code-block/blob/main/CHANGELOG.md) +This repository and npm package has been depreciated. +You can find the new repository [here](https://github.com/webdevnerdstuff/vue-code-block) +You can find the new NPM package [here](https://www.npmjs.com/package/@wdns/vue-code-block) ## License From 4c58d3b81e14752ed8b5e6e63a1c5c2997ae843f Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Thu, 9 Nov 2023 16:47:46 -0800 Subject: [PATCH 2/7] Update for depreciation --- src/App.vue | 28 ++-- src/components/DemoPage.vue | 245 +++++-------------------------- src/components/Layout/NavBar.vue | 160 +++----------------- src/stores/index.ts | 5 +- 4 files changed, 76 insertions(+), 362 deletions(-) diff --git a/src/App.vue b/src/App.vue index 00475ff..58326ef 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,11 @@ -provide('codeBlockOptions', codeBlockOptions); -function updateLibrary(library) { - selectedLibrary.value = library.value; + diff --git a/src/components/DemoPage.vue b/src/components/DemoPage.vue index 8962487..8606545 100644 --- a/src/components/DemoPage.vue +++ b/src/components/DemoPage.vue @@ -1,218 +1,48 @@ - @@ -241,7 +71,6 @@ h1 { } h2 { - border-bottom: 1px solid #ccc; font-size: 2rem; font-weight: 400; padding-bottom: 0.5rem; @@ -251,6 +80,10 @@ h5 { font-weight: 600; } +.main-container { + height: 100%; +} + .vue-logo { width: 80px; } diff --git a/src/components/Layout/NavBar.vue b/src/components/Layout/NavBar.vue index 2fe016f..298851f 100644 --- a/src/components/Layout/NavBar.vue +++ b/src/components/Layout/NavBar.vue @@ -1,7 +1,10 @@