- {c.authorName}
-
,
-
- {diff}
-
-
,
- {shortSha(c.hash)}
+ {base}
+
+
{(line) => {line}
}
+
+ {c.authorName}
+ ,
+
+ {diff}
+
+ ,
+ {shortSha(c.hash)}
+
)
@@ -79,26 +94,8 @@ const AppInfoLists: Component<{
return (
<>
-
- {(nonNullCreatedAt) => {
- const { diff, localeString } = diffHuman(nonNullCreatedAt().toDate())
- return (
-
-
- 作成日
-
- {diff}
-
-
-
- )
- }}
-
-
- Branch (Commit)
- {commitDisplay()}
-
+ {commitDisplay()}
+
-
-
-
- SSH Access
-
-
- 現在アプリが起動していないためSSHアクセスはできません
-
-
-
-
>
)
}
-export default AppInfoLists
+
+export default AppBranchResolution
diff --git a/dashboard/src/components/templates/app/AppDeployInfo.tsx b/dashboard/src/components/templates/app/AppDeployInfo.tsx
index 273e8385..72a8084d 100644
--- a/dashboard/src/components/templates/app/AppDeployInfo.tsx
+++ b/dashboard/src/components/templates/app/AppDeployInfo.tsx
@@ -5,11 +5,12 @@ import toast from 'solid-toast'
import { type Application, type Build, DeployType, type Repository } from '/@/api/neoshowcase/protobuf/gateway_pb'
import Badge from '/@/components/UI/Badge'
import { Button } from '/@/components/UI/Button'
+import Code from '/@/components/UI/Code'
import JumpButton from '/@/components/UI/JumpButton'
import { ToolTip } from '/@/components/UI/ToolTip'
import { URLText } from '/@/components/UI/URLText'
-import { client, handleAPIError } from '/@/libs/api'
-import { deploymentState, getWebsiteURL } from '/@/libs/application'
+import { client, handleAPIError, systemInfo } from '/@/libs/api'
+import { ApplicationState, deploymentState, getWebsiteURL } from '/@/libs/application'
import { titleCase } from '/@/libs/casing'
import { colorOverlay } from '/@/libs/colorOverlay'
import { diffHuman, shortSha } from '/@/libs/format'
@@ -215,6 +216,8 @@ const AppDeployInfo: Component<{
)
}
+ const sshAccessCommand = () => `ssh -p ${systemInfo()?.ssh?.port} ${props.app.id}@${systemInfo()?.ssh?.host}`
+
return (
@@ -235,29 +238,21 @@ const AppDeployInfo: Component<{
-
-
- 起動時刻
-
- {(nonNullUpdatedAt) => {
- const { diff, localeString } = diffHuman(nonNullUpdatedAt().toDate())
-
- return (
-
- {diff}
-
- )
- }}
-
-
-
-
+
Deploy Type
{titleCase(DeployType[props.app.deployType])}
-
+
+
+
+
+ Container Status
+ {props.app.containerMessage}
+
+
+
Source Commit
@@ -271,7 +266,7 @@ const AppDeployInfo: Component<{
-
+
@@ -288,13 +283,16 @@ const AppDeployInfo: Component<{
)}
-
+
-
+
- Container Status
- {props.app.containerMessage}
+ SSH Access
+
+
+ 現在アプリが起動していないためSSHアクセスはできません
+
diff --git a/dashboard/src/components/templates/app/AppNav.tsx b/dashboard/src/components/templates/app/AppNav.tsx
index fae5d59a..b0914500 100644
--- a/dashboard/src/components/templates/app/AppNav.tsx
+++ b/dashboard/src/components/templates/app/AppNav.tsx
@@ -1,9 +1,13 @@
+import { style } from '@macaron-css/core'
import { styled } from '@macaron-css/solid'
import { A } from '@solidjs/router'
-import type { Component } from 'solid-js'
+import { BiRegularPencil } from 'solid-icons/bi'
+import { type Component, Show } from 'solid-js'
import type { Application, Repository } from '/@/api/neoshowcase/protobuf/gateway_pb'
import { MaterialSymbols } from '/@/components/UI/MaterialSymbols'
+import { ToolTip } from '/@/components/UI/ToolTip'
import { originToIcon, repositoryURLToOrigin } from '/@/libs/application'
+import { diffHuman } from '/@/libs/format'
import { colorVars, textVars } from '/@/theme'
import { Nav } from '../Nav'
@@ -21,6 +25,7 @@ const RepositoryInfoContainer = styled('div', {
...textVars.text.regular,
},
})
+
const RepositoryInfo = styled('div', {
base: {
width: '100%',
@@ -31,6 +36,7 @@ const RepositoryInfo = styled('div', {
overflowX: 'hidden',
},
})
+
const RepositoryName = styled('div', {
base: {
width: '100%',
@@ -40,12 +46,52 @@ const RepositoryName = styled('div', {
},
})
+const rowFlex = style({
+ display: 'flex',
+ flexDirection: 'row',
+ gap: '4px',
+})
+
+const rightFit = style({
+ width: 'fit-content',
+ marginLeft: 'auto',
+ textAlign: 'right',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+})
+
+const center = style({
+ display: 'flex',
+ alignItems: 'center',
+})
+
export const AppNav: Component<{
app: Application
repository: Repository
}> = (props) => {
+ const edited = (
+
+
+
+ {(nonNullUpdatedAt) => {
+ const { diff, localeString } = diffHuman(nonNullUpdatedAt().toDate())
+ return (
+
+ {diff}
+
+ )
+ }}
+
+
+ )
+
return (
-