mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore(dogfood): dogfood zed editor (#16255)
This requires running `coder config-ssh`. I intentially kept it as a module so that we can port it to `coder/`modules` easily when needed.
This commit is contained in:
@ -189,6 +189,13 @@ module "cursor" {
|
||||
folder = local.repo_dir
|
||||
}
|
||||
|
||||
module "zed" {
|
||||
count = data.coder_workspace.me.start_count
|
||||
source = "./zed"
|
||||
agent_id = coder_agent.dev.id
|
||||
folder = local.repo_dir
|
||||
}
|
||||
|
||||
resource "coder_agent" "dev" {
|
||||
arch = "amd64"
|
||||
os = "linux"
|
||||
|
28
dogfood/contents/zed/main.tf
Normal file
28
dogfood/contents/zed/main.tf
Normal file
@ -0,0 +1,28 @@
|
||||
terraform {
|
||||
required_version = ">= 1.0"
|
||||
required_providers {
|
||||
coder = {
|
||||
source = "coder/coder"
|
||||
version = ">= 0.17"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
variable "agent_id" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "folder" {
|
||||
type = string
|
||||
}
|
||||
|
||||
data "coder_workspace" "me" {}
|
||||
|
||||
resource "coder_app" "zed" {
|
||||
agent_id = var.agent_id
|
||||
display_name = "Zed Editor"
|
||||
slug = "zed"
|
||||
icon = "/icon/zed.svg"
|
||||
external = true
|
||||
url = "zed://ssh/coder.${lower(data.coder_workspace.me.name)}/${var.folder}"
|
||||
}
|
@ -94,5 +94,6 @@
|
||||
"ubuntu.svg",
|
||||
"vault.svg",
|
||||
"webstorm.svg",
|
||||
"widgets.svg"
|
||||
"widgets.svg",
|
||||
"zed.svg"
|
||||
]
|
||||
|
15
site/static/icon/zed.svg
Normal file
15
site/static/icon/zed.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_579_238)">
|
||||
<mask id="mask0_579_238" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="12" y="12" width="104" height="104">
|
||||
<path d="M116 12H12V116H116V12Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_579_238)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.75 18.5C19.9551 18.5 18.5 19.9551 18.5 21.75V93.25H12V21.75C12 16.3652 16.3652 12 21.75 12H108.827C113.17 12 115.345 17.2511 112.274 20.3221L58.643 73.9531H73.75V67.25H80.25V75.5781C80.25 78.2705 78.0674 80.4531 75.375 80.4531H52.143L40.9712 91.625H91.625V51H98.125V91.625C98.125 95.2148 95.2148 98.125 91.625 98.125H34.4712L23.0962 109.5H106.25C108.045 109.5 109.5 108.045 109.5 106.25V34.75H116V106.25C116 111.635 111.635 116 106.25 116H19.1731C14.8299 116 12.6549 110.749 15.726 107.678L69.1539 54.25H54.25V60.75H47.75V52.625C47.75 49.9326 49.9326 47.75 52.625 47.75H75.6539L87.0289 36.375H36.375V77H29.875V36.375C29.875 32.7852 32.7852 29.875 36.375 29.875H93.5289L104.904 18.5H21.75Z" fill="black"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_579_238">
|
||||
<rect width="104" height="104" fill="white" transform="translate(12 12)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user