Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
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
Alex
next.js
Commits
4ef1f87e
Commit
4ef1f87e
authored
Jul 15, 2025
by
devjiwonchoi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move away the style from svg
parent
f79a6877
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
29 deletions
+20
-29
restart-server-button.tsx
...ts/errors/error-overlay-toolbar/restart-server-button.tsx
+18
-1
refresh-clock-wise.tsx
...rc/next-devtools/dev-overlay/icons/refresh-clock-wise.tsx
+2
-28
No files found.
packages/next/src/next-devtools/dev-overlay/components/errors/error-overlay-toolbar/restart-server-button.tsx
View file @
4ef1f87e
...
@@ -29,7 +29,15 @@ export function RestartServerButton({ showButton }: { showButton: boolean }) {
...
@@ -29,7 +29,15 @@ export function RestartServerButton({ showButton }: { showButton: boolean }) {
disabled=
{
isPending
}
disabled=
{
isPending
}
title=
"Clears the bundler cache and restarts the dev server. Helpful if you are seeing stale errors or changes are not appearing."
title=
"Clears the bundler cache and restarts the dev server. Helpful if you are seeing stale errors or changes are not appearing."
>
>
<
RefreshClockWise
width=
{
14
}
height=
{
14
}
spinning=
{
isPending
}
/>
<
RefreshClockWise
width=
{
14
}
height=
{
14
}
style=
{
{
animation
:
isPending
?
'refresh-clock-wise-spin 1s linear infinite'
:
undefined
,
}
}
/>
{
isPending
?
'Restarting...'
:
'Reset Bundler Cache'
}
{
isPending
?
'Restarting...'
:
'Reset Bundler Cache'
}
</
button
>
</
button
>
)
)
...
@@ -106,4 +114,13 @@ export const RESTART_SERVER_BUTTON_STYLES = css`
...
@@ -106,4 +114,13 @@ export const RESTART_SERVER_BUTTON_STYLES = css`
opacity: 0.6;
opacity: 0.6;
cursor: not-allowed;
cursor: not-allowed;
}
}
@keyframes refresh-clock-wise-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`
`
packages/next/src/next-devtools/dev-overlay/icons/refresh-clock-wise.tsx
View file @
4ef1f87e
import
{
css
}
from
'../utils/css'
export
function
RefreshClockWise
(
props
:
React
.
SVGProps
<
SVGSVGElement
>
)
{
export
function
RefreshClockWise
({
spinning
,
...
props
}:
React
.
SVGProps
<
SVGSVGElement
>
&
{
spinning
:
boolean
})
{
return
(
return
(
<
svg
<
svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"currentColor"
{
...
props
}
>
xmlns=
"http://www.w3.org/2000/svg"
fill=
"currentColor"
{
...
props
}
style=
{
{
animation
:
spinning
?
'refresh-clock-wise-spin 1s linear infinite'
:
undefined
,
...
props
.
style
,
}
}
>
<
path
<
path
d=
"M4.30969 8.37891H2.38782C2.9805 10.3647 4.82188 11.8124 7.00012 11.8125C8.81977 11.8124 10.4043 10.8024 11.2228 9.30957L11.5382 8.73438L12.6896 9.36523L12.3741 9.94043L12.1681 10.2891C11.0815 11.993 9.17324 13.1249 7.00012 13.125C4.42207 13.1249 2.21747 11.5322 1.3136 9.27734V11.375H0.00109863V7.72266L0.0147705 7.58984C0.0760304 7.29089 0.340278 7.06641 0.657349 7.06641H4.30969V8.37891ZM7.00012 0.875C9.57685 0.875118 11.7819 2.46569 12.6866 4.71875V2.625H13.9991V6.27734C13.9991 6.63974 13.7053 6.93354 13.3429 6.93359H9.68958V5.62109H11.6115C11.0186 3.6356 9.17813 2.18763 7.00012 2.1875C5.17131 2.18757 3.57959 3.20771 2.76477 4.71289L2.45227 5.29004L1.29797 4.66504L1.61047 4.08789C2.64547 2.17605 4.67052 0.875068 7.00012 0.875Z"
d=
"M4.30969 8.37891H2.38782C2.9805 10.3647 4.82188 11.8124 7.00012 11.8125C8.81977 11.8124 10.4043 10.8024 11.2228 9.30957L11.5382 8.73438L12.6896 9.36523L12.3741 9.94043L12.1681 10.2891C11.0815 11.993 9.17324 13.1249 7.00012 13.125C4.42207 13.1249 2.21747 11.5322 1.3136 9.27734V11.375H0.00109863V7.72266L0.0147705 7.58984C0.0760304 7.29089 0.340278 7.06641 0.657349 7.06641H4.30969V8.37891ZM7.00012 0.875C9.57685 0.875118 11.7819 2.46569 12.6866 4.71875V2.625H13.9991V6.27734C13.9991 6.63974 13.7053 6.93354 13.3429 6.93359H9.68958V5.62109H11.6115C11.0186 3.6356 9.17813 2.18763 7.00012 2.1875C5.17131 2.18757 3.57959 3.20771 2.76477 4.71289L2.45227 5.29004L1.29797 4.66504L1.61047 4.08789C2.64547 2.17605 4.67052 0.875068 7.00012 0.875Z"
fill=
"#A35200"
fill=
"#A35200"
...
@@ -23,14 +8,3 @@ export function RefreshClockWise({
...
@@ -23,14 +8,3 @@ export function RefreshClockWise({
</
svg
>
</
svg
>
)
)
}
}
export
const
REFRESH_CLOCK_WISE_STYLES
=
css
`
@keyframes refresh-clock-wise-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`
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