-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# name: Fly Deploy | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
# jobs: | ||
# deploy: | ||
# name: Deploy app | ||
# runs-on: ubuntu-latest | ||
# concurrency: deploy-group | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: superfly/flyctl-actions/setup-flyctl@master | ||
# - run: flyctl deploy --remote-only | ||
# env: | ||
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
class MainController < ApplicationController | ||
layout -> { ApplicationLayout } | ||
|
||
def index | ||
render(Main::Index.new) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
module Main | ||
class Index < ApplicationView | ||
def view_template | ||
div(class: "p-8") do | ||
h1(class: "mb-6 text-xl font-bold text-gray-900 dark:text-white") { "PhlexUI components playground" } | ||
|
||
div(class: "flex flex-col gap-4") do | ||
div do | ||
h2(class: "mb-2 text-lg font-semibold text-gray-900 dark:text-white") { "Powered by Phlex" } | ||
|
||
ul(class: "max-w-md space-y-1 text-gray-500 list-disc list-inside dark:text-gray-400") do | ||
li { a(href: "/phlex/combobox", class: "font-medium text-blue-600 dark:text-blue-500 hover:underline") { "Combobox" } } | ||
end | ||
end | ||
|
||
div do | ||
h2(class: "mb-2 text-lg font-semibold text-gray-900 dark:text-white") { "Powered by Shadcn" } | ||
|
||
ul(class: "max-w-md space-y-1 text-gray-500 list-disc list-inside dark:text-gray-400") do | ||
li { a(href: "/shadcn/combobox", class: "font-medium text-blue-600 dark:text-blue-500 hover:underline") { "Combobox" } } | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
end | ||
|
||
# Defines the root path route ("/") | ||
# root "posts#index" | ||
root "main#index" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters