Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
netdisc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rocosen
netdisc
Commits
81033937
Commit
81033937
authored
Oct 10, 2022
by
rocosen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:bat
parent
3c190625
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
20 deletions
+9
-20
.eslintignore
.eslintignore
+3
-0
mount.bat
assets/bat/mount.bat
+2
-4
App.tsx
src/renderer/App.tsx
+3
-15
index.tsx
src/renderer/index.tsx
+1
-1
No files found.
.eslintignore
View file @
81033937
...
...
@@ -31,3 +31,5 @@ npm-debug.log.*
# eslint ignores hidden directories by default:
# https://github.com/eslint/eslint/issues/8429
!.erb
src/
\ No newline at end of file
assets/bat/mount.bat
View file @
81033937
...
...
@@ -3,7 +3,6 @@ powershell -Command "net use O: \\aliyun\data\1b520eb8a56147299ad803f9f87b6297 1
powershell -Command "net use P: \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297 123456 /user:cloudam /persistent:yes"
powershell -Command "net use * /y /del"
md C:\test
mklink /D C:\test\aliyun \\aliyun\ali\1b520eb8a56147299ad803f9f87b6297
mklink /D C:\test\baiduyun \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297
subst Z: C:\test
Z:
mklink /D aliyun \\aliyun\ali\1b520eb8a56147299ad803f9f87b6297
mklink /D baiduyun \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297
\ No newline at end of file
src/renderer/App.
j
sx
→
src/renderer/App.
t
sx
View file @
81033937
...
...
@@ -2,7 +2,7 @@ import { MemoryRouter as Router, Routes, Route } from 'react-router-dom';
import
icon
from
'../../assets/icon.svg'
;
import
'./App.css'
;
import
path
from
'path'
;
import
{
rootPath
}
from
'electron-root-path'
;
const
rootPath
=
require
(
'electron-root-path'
).
rootPath
;
const
{
shell
}
=
require
(
'electron'
)
const
location
=
path
.
join
(
rootPath
.
substring
(
0
,
rootPath
.
length
-
8
),
'./assets/bat/mount.bat'
);
const
Hello
=
()
=>
{
...
...
@@ -12,27 +12,15 @@ const Hello = () => {
<
div
className=
"Hello"
>
<
img
width=
"200"
alt=
"icon"
src=
{
icon
}
/>
</
div
>
<
h1
>
electron-react
-boilerplate
</
h1
>
<
h1
>
electron-react
</
h1
>
<
div
className=
"Hello"
>
<
a
href=
"https://electron-react-boilerplate.js.org/"
target=
"_blank"
rel=
"noreferrer"
>
<
button
type=
"button"
>
<
span
role=
"img"
aria
-
label=
"books"
>
📚
</
span
>
Read our docs
</
button
>
</
a
>
<
button
type=
"button"
onClick=
{
()
=>
{
shell
.
openPath
(
location
);
}
}
>
<
span
role=
"img"
aria
-
label=
"books"
>
🙏
</
span
>
Donate
挂载
</
button
>
</
div
>
</
div
>
...
...
src/renderer/index.tsx
View file @
81033937
import
{
createRoot
}
from
'react-dom/client'
;
import
App
from
'./App
.jsx
'
;
import
App
from
'./App'
;
const
container
=
document
.
getElementById
(
'root'
)
!
;
const
root
=
createRoot
(
container
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment