@adminforth/markdown 1.10.0 → 1.10.2

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.
@@ -17,18 +17,18 @@ steps:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
18
 
19
19
  build:
20
- image: node:20
20
+ image: devforth/node20-pnpm:latest
21
21
  when:
22
22
  - event: push
23
23
  commands:
24
24
  - apt update && apt install -y rsync
25
25
  - . /woodpecker/deploy.vault.env
26
- - npm clean-install
26
+ - pnpm install
27
27
  - /bin/bash ./.woodpecker/buildRelease.sh
28
28
  - npm audit signatures
29
29
 
30
30
  release:
31
- image: node:20
31
+ image: devforth/node20-pnpm:latest
32
32
  when:
33
33
  - event:
34
34
  - push
@@ -36,7 +36,7 @@ steps:
36
36
  - main
37
37
  commands:
38
38
  - . /woodpecker/deploy.vault.env
39
- - npx semantic-release
39
+ - pnpm exec semantic-release
40
40
 
41
41
  slack-on-failure:
42
42
  image: curlimages/curl
package/build.log CHANGED
@@ -12,5 +12,5 @@ custom/tsconfig.json
12
12
  custom/utils/
13
13
  custom/utils/monacoMarkdownToggle.ts
14
14
 
15
- sent 38,446 bytes received 146 bytes 77,184.00 bytes/sec
16
- total size is 37,901 speedup is 0.98
15
+ sent 36,813 bytes received 146 bytes 73,918.00 bytes/sec
16
+ total size is 36,268 speedup is 0.98
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-html="purifiedHtml" class="mdwn"></div>
2
+ <div v-html="purifiedHtml" class="prose"></div>
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
@@ -20,91 +20,4 @@
20
20
  return DOMPurify.sanitize(html);
21
21
  });
22
22
  </script>
23
-
24
- <style lang="scss">
25
-
26
- .mdwn h1 {
27
- @apply text-2xl font-bold mt-2 mb-2;
28
- }
29
-
30
- .mdwn h2 {
31
- @apply text-xl font-bold mt-2 mb-2;
32
- }
33
-
34
- .mdwn h3 {
35
- @apply text-lg font-bold mt-2 mb-2;
36
- }
37
-
38
- .mdwn h4 {
39
- @apply text-base font-bold mt-2 mb-2;
40
- }
41
-
42
- .mdwn h5 {
43
- @apply text-sm font-bold mt-2 mb-2;
44
- }
45
-
46
- .mdwn h6 {
47
- @apply text-xs font-bold mt-2 mb-2;
48
- }
49
-
50
- .mdwn p {
51
- @apply mb-2 leading-relaxed;
52
- }
53
-
54
- .mdwn ul {
55
- @apply list-disc pl-5 mb-2;
56
- }
57
-
58
- .mdwn ol {
59
- @apply list-decimal pl-5 mb-2;
60
- }
61
-
62
- .mdwn li {
63
- @apply mb-1;
64
- }
65
-
66
- .mdwn blockquote {
67
- @apply border-l-4 border-gray-300 dark:border-gray-600 pl-4 italic text-gray-600 dark:text-gray-400 mb-2;
68
- }
69
-
70
- .mdwn code {
71
- @apply bg-gray-100 dark:bg-gray-800 text-red-600 dark:text-red-400 font-mono px-1 py-0.5 rounded;
72
- }
73
-
74
- .mdwn pre {
75
- @apply bg-gray-100 dark:bg-gray-900 text-sm font-mono p-4 rounded overflow-x-auto mb-2;
76
- }
77
- .mdwn pre code {
78
- @apply bg-transparent p-0 text-inherit;
79
- }
80
-
81
- .mdwn table {
82
- @apply w-full border-collapse text-left text-sm mb-2;
83
- }
84
-
85
- .mdwn thead {
86
- @apply bg-gray-100 dark:bg-gray-700;
87
- }
88
-
89
- .mdwn th,
90
- .mdwn td {
91
- @apply border border-gray-300 dark:border-gray-700 px-4 py-2;
92
- }
93
-
94
- .mdwn th {
95
- @apply font-semibold;
96
- }
97
-
98
- .mdwn hr {
99
- @apply border-t border-gray-300 dark:border-gray-700 my-6;
100
- }
101
-
102
- .mdwn img {
103
- @apply max-w-full h-auto rounded;
104
- }
105
-
106
- .mdwn a {
107
- @apply text-blue-600 hover:underline dark:text-blue-400;
108
- }
109
-
110
- </style>
23
+
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-html="purifiedHtml" class="mdwn"></div>
2
+ <div v-html="purifiedHtml" class="prose"></div>
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
@@ -20,91 +20,4 @@
20
20
  return DOMPurify.sanitize(html);
21
21
  });
22
22
  </script>
23
-
24
- <style lang="scss">
25
-
26
- .mdwn h1 {
27
- @apply text-2xl font-bold mt-2 mb-2;
28
- }
29
-
30
- .mdwn h2 {
31
- @apply text-xl font-bold mt-2 mb-2;
32
- }
33
-
34
- .mdwn h3 {
35
- @apply text-lg font-bold mt-2 mb-2;
36
- }
37
-
38
- .mdwn h4 {
39
- @apply text-base font-bold mt-2 mb-2;
40
- }
41
-
42
- .mdwn h5 {
43
- @apply text-sm font-bold mt-2 mb-2;
44
- }
45
-
46
- .mdwn h6 {
47
- @apply text-xs font-bold mt-2 mb-2;
48
- }
49
-
50
- .mdwn p {
51
- @apply mb-2 leading-relaxed;
52
- }
53
-
54
- .mdwn ul {
55
- @apply list-disc pl-5 mb-2;
56
- }
57
-
58
- .mdwn ol {
59
- @apply list-decimal pl-5 mb-2;
60
- }
61
-
62
- .mdwn li {
63
- @apply mb-1;
64
- }
65
-
66
- .mdwn blockquote {
67
- @apply border-l-4 border-gray-300 dark:border-gray-600 pl-4 italic text-gray-600 dark:text-gray-400 mb-2;
68
- }
69
-
70
- .mdwn code {
71
- @apply bg-gray-100 dark:bg-gray-800 text-red-600 dark:text-red-400 font-mono px-1 py-0.5 rounded;
72
- }
73
-
74
- .mdwn pre {
75
- @apply bg-gray-100 dark:bg-gray-900 text-sm font-mono p-4 rounded overflow-x-auto mb-2;
76
- }
77
- .mdwn pre code {
78
- @apply bg-transparent p-0 text-inherit;
79
- }
80
-
81
- .mdwn table {
82
- @apply w-full border-collapse text-left text-sm mb-2;
83
- }
84
-
85
- .mdwn thead {
86
- @apply bg-gray-100 dark:bg-gray-700;
87
- }
88
-
89
- .mdwn th,
90
- .mdwn td {
91
- @apply border border-gray-300 dark:border-gray-700 px-4 py-2;
92
- }
93
-
94
- .mdwn th {
95
- @apply font-semibold;
96
- }
97
-
98
- .mdwn hr {
99
- @apply border-t border-gray-300 dark:border-gray-700 my-6;
100
- }
101
-
102
- .mdwn img {
103
- @apply max-w-full h-auto rounded;
104
- }
105
-
106
- .mdwn a {
107
- @apply text-blue-600 hover:underline dark:text-blue-400;
108
- }
109
-
110
- </style>
23
+
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@adminforth/markdown",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Markdown plugin for adminforth",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
- "build": "tsc && rsync -av --exclude 'node_modules' custom dist/",
10
- "prepare": "npm link adminforth"
9
+ "build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
11
10
  },
12
11
  "publishConfig": {
13
12
  "access": "public"
@@ -29,7 +28,7 @@
29
28
  "url": "https://github.com/devforth/adminforth-markdown.git"
30
29
  },
31
30
  "peerDependencies": {
32
- "adminforth": "next"
31
+ "adminforth": "^2.24.0"
33
32
  },
34
33
  "release": {
35
34
  "plugins": [
@@ -40,6 +39,7 @@
40
39
  [
41
40
  "semantic-release-slack-bot",
42
41
  {
42
+ "packageName": "@adminforth/markdown",
43
43
  "notifyOnSuccess": true,
44
44
  "notifyOnFail": true,
45
45
  "slackIcon": ":package:",