Skip to content

Commit

Permalink
added more data to package data
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Sep 13, 2024
1 parent 3e3e8a4 commit 843a16e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
4 changes: 4 additions & 0 deletions components/editor/panels/package/index.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ ide_toggle_only_show_modified_files()
string name:
string url:
string slug:
string domain:
string about-url:
string history-url:
string settings-url:
integer updated-at:
folder list folders:
file list files:
Expand Down
38 changes: 29 additions & 9 deletions components/editor/top-bar/package-switcher.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,40 @@
boolean $open: false
package list packages: $vars.recent-packages

-- ftd.column:
$on-mouse-enter$: $ftd.set-boolean($a = $package-switcher.open, v = true)
$on-mouse-leave$: $ftd.set-boolean($a = $package-switcher.open, v = false)
-- ftd.row:
spacing.fixed.px: 15

-- ftd.column:
$on-mouse-enter$: $ftd.set-boolean($a = $package-switcher.open, v = true)
$on-mouse-leave$: $ftd.set-boolean($a = $package-switcher.open, v = false)

-- ftd.text: $vars.package-data.name
color: black
if: { vars.package-data != NULL }

-- popup:
$open: $package-switcher.open
$open if { vars.package-data == NULL }: true
packages: $package-switcher.packages

-- end: ftd.column

-- ftd.text: $vars.package-data.name
-- ftd.text: About
link: $vars.package-data.about-url
color: black
if: { vars.package-data != NULL }

-- popup:
$open: $package-switcher.open
$open if { vars.package-data == NULL }: true
packages: $package-switcher.packages
-- ftd.text: History
link: $vars.package-data.history-url
color: black
if: { vars.package-data != NULL }

-- end: ftd.column
-- ftd.text: Settings
link: $vars.package-data.settings-url
color: black
if: { vars.package-data != NULL }

-- end: ftd.row

-- end: package-switcher

Expand Down

0 comments on commit 843a16e

Please sign in to comment.