forked from 027xiguapi/code-box
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b406ac3
commit ca5bd4e
Showing
22 changed files
with
175 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { useSortable } from "@dnd-kit/sortable" | ||
import { CSS } from "@dnd-kit/utilities" | ||
import React from "react" | ||
|
||
import Cto51 from "~component/options/51cto" | ||
import Baidu from "~component/options/baidu" | ||
import Cnblogs from "~component/options/cnblogs" | ||
import Config from "~component/options/config" | ||
import Csdn from "~component/options/csdn" | ||
import Custom from "~component/options/custom" | ||
import Jb51 from "~component/options/jb51" | ||
import Jianshu from "~component/options/jianshu" | ||
import Juejin from "~component/options/juejin" | ||
import Oschina from "~component/options/oschina" | ||
import Php from "~component/options/php" | ||
import Segmentfault from "~component/options/segmentfault" | ||
import Weixin from "~component/options/weixin" | ||
import Zhihu from "~component/options/zhihu" | ||
|
||
const itemMap = { | ||
csdn: <Csdn />, | ||
zhihu: <Zhihu />, | ||
baidu: <Baidu />, | ||
juejin: <Juejin />, | ||
oschina: <Oschina />, | ||
jianshu: <Jianshu />, | ||
jb51: <Jb51 />, | ||
cnblogs: <Cnblogs />, | ||
"51cto": <Cto51 />, | ||
php: <Php />, | ||
segmentfault: <Segmentfault />, | ||
weixin: <Weixin />, | ||
custom: <Custom />, | ||
app: <Config /> | ||
} | ||
|
||
export default function SortableItem(props) { | ||
const { item } = props | ||
|
||
return <div className="sortableItem">{itemMap[item.value]}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.