Skip to content

Commit 9c74d78

Browse files
author
tkokhing
committed
remove Codeline after making backticks disappeared, hence cleanup Codeline related. Prep for kill-chain upload
1 parent 39dd00c commit 9c74d78

File tree

8 files changed

+17
-45
lines changed

8 files changed

+17
-45
lines changed

.github/workflows/nextjs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
id: move_heptagoning_kill-chain
3131
run: |
3232
mkdir -p _heptagoning/_kill-chain
33-
mv ./temp_heptagoning/_kill-chain/*.mdx ./_heptagoning/_kill-chain
33+
mv ./temp_heptagoning/* ./_heptagoning
3434
rm -rf ./temp_heptagoning
3535
- name: Checkout [tkokhing_lib] private repo
3636
uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ src/lib/README.md
2121
# next.js
2222
/.next/
2323
/out/
24-
/dist/
24+
/dist
2525

2626
# project
2727
tkokhing.github.io.code-workspace

src/app/_components/blog_frame/codeline.tsx

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

src/app/_components/post_gen/post-body-client.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function PostBodyClient({ children }: { children: React.ReactNode
77

88
return (
99
<div className={
10-
`mx-auto prose prose-${fontSize}
10+
`mx-auto prose prose-${fontSize} prose
1111
prose-headings:text-zinc-800 dark:prose-headings:text-slate-400
1212
prose-a:text-blue-800 dark:prose-a:text-blue-300
1313
prose-p:text-zinc-700 dark:prose-p:text-zinc-300
@@ -16,7 +16,11 @@ export default function PostBodyClient({ children }: { children: React.ReactNode
1616
prose-em:text-sky-900 dark:prose-em:text-violet-100
1717
prose-em:font-extrabold
1818
prose-ul:text-gray-600 dark:prose-ul:text-slate-300
19-
prose-table:text-zinc-700 dark:prose-table:text-zinc-300
19+
prose-table:text-zinc-700 dark:prose-table:text-zinc-300
20+
prose-code:before:content-[''] prose-code:after:content-['']
21+
prose-code:bg-gray-800 prose-code:text-tkokhing-dark
22+
prose-code:rounded prose-code:px-1 prose-code:py-0.5
23+
prose-code:font-thin prose-code:inline-block prose-code:leading-loose
2024
`}>
2125
{children}
2226
</div>

src/app/_components/preference/data-exporter.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import zhCyberThreatsData from '@/lib/_data_exporter/data_securingdigitalfrontie
1212
import enBlueprintBattlefieldDataData from '@/lib/_data_exporter/data_securingdigitalfrontiers/blueprint_to_battlefield_en.mdx';
1313
import zhBlueprintBattlefieldDataData from '@/lib/_data_exporter/data_securingdigitalfrontiers/blueprint_to_battlefield_zh.mdx';
1414

15-
import nmap_difference from '@/../../../../6_oscp/pen200/OSCP_Battle_Plan/1_Enumeration/1_1_nmap/nmap_diff_types.md'
16-
1715
import DisplayLanguageContent from '@/app/_components/language_handler/language-display';
1816

1917
export const FrontierData = () => {

src/app/heptagoning/kill-chain/recon/[slug]/page.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import { PostBody } from "@/app/_components/post_gen/post-body";
77
import { getPostBySlug } from "@/lib/share/api";
88
import { generatePageMetadata } from "@/lib/share/generatePageMetadata";
99
import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
10-
import { CyberDomainData } from "@/app/_components/preference/data-exporter";
11-
import { BlueprintBattlefieldData } from "@/app/_components/preference/data-exporter";
12-
import { CyberThreatsData } from "@/app/_components/preference/data-exporter";
10+
import { NMAP_Overview } from "@/lib/_data_exporter/data_kiil-chain/kill-chain_exporter";
11+
import Alert from "@/app/_components/blog_frame/alert";
12+
import Note from "@/app/_components/blog_frame/note";
13+
import Tip from "@/app/_components/blog_frame/tip";
14+
1315
const MDX_FOLDER = "_heptagoning/_kill-chain";
1416

1517
type Params = {
@@ -21,9 +23,10 @@ type Params = {
2123
export default async function Post(props: Params) {
2224
const params = await props.params;
2325
const ImportComponents = {
24-
CyberDomainData,
25-
CyberThreatsData,
26-
BlueprintBattlefieldData,
26+
Tip,
27+
Note,
28+
Alert,
29+
NMAP_Overview,
2730
};
2831
const post = getPostBySlug(params.slug, MDX_FOLDER);
2932
if (!post || post.subPath != 'heptagoning/kill-chain/recon') return notFound();

src/app/topics/AtoZ/terrified-by-linux/[slug]/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
1111
import Alert from "@/app/_components/blog_frame/alert";
1212
import Note from "@/app/_components/blog_frame/note";
1313
import Tip from "@/app/_components/blog_frame/tip";
14-
import CodeLine from "@/app/_components/blog_frame/codeline";
1514

1615
const MDX_FOLDER = "_linux_post/_linux/";
1716

@@ -27,7 +26,6 @@ export default async function Post(props: Params) {
2726
Tip,
2827
Note,
2928
Alert,
30-
CodeLine,
3129
};
3230
const post = getPostBySlug(params.slug, MDX_FOLDER);
3331
if (!post || post.subPath != 'topics/AtoZ/terrified-by-linux') return notFound();

src/styles/blog.module.css

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,3 @@
2222
border-color: #3b82f6;
2323
color: black;
2424
}
25-
26-
.codeline {
27-
background-color: #082f49;
28-
color: #e5e7eb;
29-
font-family: monospace;
30-
border-radius: 0.375rem;
31-
padding: 0.3rem;
32-
font-size: 0.775rem;
33-
line-height: 1rem;
34-
display: inline-block;
35-
}
36-
37-
.prose pre code {
38-
background-color: #082f49;
39-
color: #e5e7eb;
40-
font-family: monospace;
41-
border-radius: 0.375rem;
42-
padding: 1rem;
43-
display: block;
44-
overflow-x: auto;
45-
}
46-
47-
.prose pre {
48-
background-color: transparent;
49-
padding: 0;
50-
margin: 1em 0;
51-
}
52-

0 commit comments

Comments
 (0)