+
+
+
\ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 05d8fbb..992b115 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
-
+
- J4pm
+ j4.pm
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
diff --git a/app/views/svelte/friends.html.erb b/app/views/svelte/friends.html.erb
new file mode 100644
index 0000000..5b53aea
--- /dev/null
+++ b/app/views/svelte/friends.html.erb
@@ -0,0 +1 @@
+<%= javascript_pack_tag 'friends' %>
\ No newline at end of file
diff --git a/app/views/svelte/index.html.erb b/app/views/svelte/index.html.erb
new file mode 100644
index 0000000..2efd0df
--- /dev/null
+++ b/app/views/svelte/index.html.erb
@@ -0,0 +1,3 @@
+<%= javascript_pack_tag 'home' %>
+
+
\ No newline at end of file
diff --git a/app/views/svelte/portfolio.html.erb b/app/views/svelte/portfolio.html.erb
new file mode 100644
index 0000000..ec10047
--- /dev/null
+++ b/app/views/svelte/portfolio.html.erb
@@ -0,0 +1 @@
+<%= javascript_pack_tag 'portfolio' %>
\ No newline at end of file
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 7a9f6c3..b144c41 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -3,6 +3,8 @@ require "active_support/core_ext/integer/time"
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
+ config.hosts << "dev.j4.pm"
+
# In the development environment your application's code is reloaded any time
# it changes. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
diff --git a/config/routes.rb b/config/routes.rb
index c06383a..ac2b1d7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,7 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
+
+ get '/portfolio', to: 'svelte#portfolio'
+ get '/friends', to: 'svelte#friends'
+ root 'svelte#index'
end
diff --git a/gemset.nix b/gemset.nix
index b9b5cdc..fb02b83 100644
--- a/gemset.nix
+++ b/gemset.nix
@@ -231,6 +231,16 @@
};
version = "1.10.0";
};
+ execjs = {
+ groups = ["default"];
+ platforms = [];
+ source = {
+ remotes = ["https://rubygems.org"];
+ sha256 = "121h6af4i6wr3wxvv84y53jcyw2sk71j5wsncm6wq6yqrwcrk4vd";
+ type = "gem";
+ };
+ version = "2.8.1";
+ };
ffi = {
groups = ["default" "development"];
platforms = [];
@@ -673,6 +683,17 @@
};
version = "1.4.2";
};
+ svelte-rails = {
+ dependencies = ["execjs" "railties"];
+ groups = ["default"];
+ platforms = [];
+ source = {
+ remotes = ["https://rubygems.org"];
+ sha256 = "0lcvvx0nd0ya7l6xxa8j40bl6x13qrzwisclckr0i2a6vcf4r1c1";
+ type = "gem";
+ };
+ version = "0.3.4";
+ };
thor = {
groups = ["default" "development"];
platforms = [];