File tree 6 files changed +21
-4
lines changed
6 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Follow](https://img.shields.io/twitter/follow/CoderHQ?label=%40CoderHQ&style=soc
10
10
11
11
Coder creates remote development machines so you can develop your code from anywhere.
12
12
13
- ** Coder is in an alpha state.** But, any serious bugs are P1 for us so please report them.
13
+ > ** Note** :
14
+ > Coder is in an alpha state. But, any serious bugs are P1 for us so please report them.
14
15
15
16
<p align =" center " >
16
17
<img src =" ./docs/images/hero-image.png " >
Original file line number Diff line number Diff line change 38
38
"cronstrue" : " 2.5.0" ,
39
39
"dayjs" : " 1.11.2" ,
40
40
"formik" : " 2.2.9" ,
41
+ "front-matter" : " 4.0.2" ,
41
42
"history" : " 5.3.0" ,
42
43
"react" : " 17.0.2" ,
43
44
"react-dom" : " 17.0.2" ,
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export const updateProfile = async (
219
219
}
220
220
221
221
export const suspendUser = async ( userId : TypesGen . User [ "id" ] ) : Promise < TypesGen . User > => {
222
- const response = await axios . put < TypesGen . User > ( `/api/v2/users/${ userId } /suspend` )
222
+ const response = await axios . put < TypesGen . User > ( `/api/v2/users/${ userId } /status/ suspend` )
223
223
return response . data
224
224
}
225
225
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Link from "@material-ui/core/Link"
3
3
import { makeStyles } from "@material-ui/core/styles"
4
4
import Typography from "@material-ui/core/Typography"
5
5
import AddCircleOutline from "@material-ui/icons/AddCircleOutline"
6
+ import frontMatter from "front-matter"
6
7
import React from "react"
7
8
import ReactMarkdown from "react-markdown"
8
9
import { Link as RouterLink } from "react-router-dom"
@@ -33,6 +34,7 @@ export const TemplatePageView: React.FC<TemplatePageViewProps> = ({
33
34
templateResources,
34
35
} ) => {
35
36
const styles = useStyles ( )
37
+ const readme = frontMatter ( activeTemplateVersion . readme )
36
38
37
39
const getStartedResources = ( resources : WorkspaceResource [ ] ) => {
38
40
return resources . filter ( ( resource ) => resource . workspace_transition === "start" )
@@ -74,7 +76,7 @@ export const TemplatePageView: React.FC<TemplatePageViewProps> = ({
74
76
) ,
75
77
} }
76
78
>
77
- { activeTemplateVersion . readme }
79
+ { readme . body }
78
80
</ ReactMarkdown >
79
81
</ div >
80
82
</ WorkspaceSection >
Original file line number Diff line number Diff line change @@ -88,7 +88,13 @@ export const MockTemplateVersion: TypesGen.TemplateVersion = {
88
88
updated_at : "" ,
89
89
job : MockProvisionerJob ,
90
90
name : "test-version" ,
91
- readme : "## Instructions\nYou can add instructions here\n\n[Some link info](https://coder.com)" ,
91
+ readme : `---
92
+ name:Template test
93
+ ---
94
+ ## Instructions
95
+ You can add instructions here
96
+
97
+ [Some link info](https://coder.com)` ,
92
98
}
93
99
94
100
export const MockTemplate : TypesGen . Template = {
Original file line number Diff line number Diff line change @@ -6969,6 +6969,13 @@ from2@^2.1.0:
6969
6969
inherits "^2.0.1"
6970
6970
readable-stream "^2.0.0"
6971
6971
6972
+ front-matter@4.0.2:
6973
+ version "4.0.2"
6974
+ resolved "https://registry.yarnpkg.com/front-matter/-/front-matter-4.0.2.tgz#b14e54dc745cfd7293484f3210d15ea4edd7f4d5"
6975
+ integrity sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==
6976
+ dependencies:
6977
+ js-yaml "^3.13.1"
6978
+
6972
6979
fs-extra@^0.30.0:
6973
6980
version "0.30.0"
6974
6981
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0"
You can’t perform that action at this time.
0 commit comments