Skip to content

Commit 297c514

Browse files
author
lucifer
committed
feat: 数据结构可视化 - 官方题解
1 parent 424227b commit 297c514

File tree

6 files changed

+1225
-184
lines changed

6 files changed

+1225
-184
lines changed
Binary file not shown.

‎public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "leetcode cheatsheet",
44
"description": "刷题小助手,made by 力扣加加",
5-
"version": "0.8.12",
5+
"version": "0.8.13",
66
"browser_action": {
77
"default_popup": "index.html",
88
"default_title": "力扣加加"

‎src/App.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,19 @@ function App() {
210210
<CodeTemplates tempaltes={tempaltes}></CodeTemplates>
211211
</TabPane>
212212
<TabPane key="data-structure-vis" tab="数据结构可视���">
213-
<Suspense fallback={<div>Loading...</div>}>
214-
<DataStrutureVis></DataStrutureVis>
215-
</Suspense>
213+
{isInExtension() ? (
214+
<Button
215+
type="link"
216+
target="_blank"
217+
href="https://leetcode-pp.github.io/leetcode-cheat/?tab=data-structure-vis"
218+
>
219+
去网站使用
220+
</Button>
221+
) : (
222+
<Suspense fallback={<div>Loading...</div>}>
223+
<DataStrutureVis></DataStrutureVis>
224+
</Suspense>
225+
)}
216226
</TabPane>
217227
{!isInExtension() && (
218228
<TabPane key="solution-template" tab="题解模板">

‎src/codeTemplates/codeTemplate.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
22
import { Button, Collapse, Tabs } from "antd";
3-
import Excalidraw from "@excalidraw/excalidraw";
43
import Codes from "../components/codes";
54

65
import {

0 commit comments

Comments
 (0)