Skip to content

Commit 051ad57

Browse files
Merge branch 'main' into dev
2 parents b63300f + b78c9c5 commit 051ad57

17 files changed

+2436
-1599
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
</p>
44

55
<p>
6-
<h1 align="center">Vue 3 CodeBlock</h1>
6+
<h1 align="center">Vue 3 CodeBlock (beta)</h1>
77
</p>
88

99
<p align="center">
1010
<a href="https://www.npmjs.com/package/vue3-code-block">
1111
<img src="https://img.shields.io/npm/v/vue3-code-block?color=1867c0&logo=npm" alt="NPM Package">
1212
</a>
1313
&nbsp;
14-
<a href="https://github.com/webdevnerdstuff/vuetify3-resize-drawer">
14+
<a href="https://github.com/webdevnerdstuff/vue3-code-block">
1515
<img src="https://img.shields.io/badge/GitHub-WebDevNerdStuff-brightgreen.svg?logo=github" alt="@WebDevNerdStuff">
1616
</a>
1717
</p>

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { Plugin } from 'vue';
22
import '@/plugin/styles/cssVariables.css';
3+
import '@/plugin/styles/utilities.scss';
4+
import '@/plugin/styles/main.scss';
5+
import '@/plugin/styles/themeStyles.scss';
36
declare const _default: Plugin;
47
export default _default;

dist/plugin/StatusIcons.vue.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
declare const _default: import("vue").DefineComponent<{
2+
icon: {
3+
type: StringConstructor;
4+
required: true;
5+
};
6+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7+
[key: string]: any;
8+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9+
icon: {
10+
type: StringConstructor;
11+
required: true;
12+
};
13+
}>>, {}>;
14+
export default _default;

dist/vue3-code-block.css

Lines changed: 0 additions & 582 deletions
This file was deleted.

dist/vue3-code-block.es.css

Lines changed: 0 additions & 582 deletions
This file was deleted.

dist/vue3-code-block.es.js

Lines changed: 1041 additions & 112 deletions
Large diffs are not rendered by default.

dist/vue3-code-block.js

Lines changed: 1040 additions & 111 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-code-block",
3-
"version": "1.0.0",
3+
"version": "1.0.14-beta.0",
44
"description": "Vue 3 CodeBlock - Highlight your code with ease using this syntax highlighting component powered by PrismJS.",
55
"private": false,
66
"main": "dist/vue3-code-block.js",

rollup.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,18 @@ export default {
7777
defaultLang: { script: 'ts' }
7878
}),
7979
postcss({
80-
modules: true,
81-
extract: true
80+
modules: false,
81+
extract: false,
82+
inject: true,
83+
// minimize: true,
84+
use: [
85+
[
86+
"sass",
87+
{
88+
includePaths: ['./src/plugin/styles'],
89+
},
90+
]
91+
]
8292
}),
8393
scss(),
8494
copy({

src/index.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ import { App, Plugin } from 'vue';
22
import { CodeBlock } from '@/plugin';
33
import { Props } from '@/types';
44
import '@/plugin/styles/cssVariables.css';
5+
import '@/plugin/styles/utilities.scss';
6+
import '@/plugin/styles/main.scss';
7+
import '@/plugin/styles/themeStyles.scss';
58

6-
const CodeBlockPlugin = {
7-
install(app: App, options: Props) {
8-
const codeBlockGlobalOptions: Props = { globalOptions: true, ...options };
9-
10-
app.provide('codeBlockGlobalOptions', codeBlockGlobalOptions);
11-
app.component('CodeBlock', CodeBlock);
12-
},
9+
const install = (app: App, options: Props) => {
10+
const codeBlockGlobalOptions: Props = { globalOptions: true, ...options };
11+
app.provide('codeBlockGlobalOptions', codeBlockGlobalOptions);
12+
app.component('CodeBlock', CodeBlock);
1313
};
1414

15-
export default CodeBlockPlugin as unknown as Plugin;
15+
CodeBlock.install = install;
16+
17+
export default CodeBlock as unknown as Plugin;

0 commit comments

Comments
 (0)