diff --git a/manyfold/usr/src/app/app/components/model_card.rb b/manyfold/usr/src/app/app/components/model_card.rb index db647c9..ff48ea9 100644 --- a/manyfold/usr/src/app/app/components/model_card.rb +++ b/manyfold/usr/src/app/app/components/model_card.rb @@ -111,6 +111,12 @@ class Components::ModelCard < Components::Base status_badges @model end div class: "col col-auto" do + i class: "bi bi-telephone" + whitespace + link_to "meeting", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/janusxr.html", { + target:"_blank", + } + whitespace BurgerMenu do #DropdownItem(icon: "app", label: "Open in Godot Web" , path: "/godot/?url="+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/package_godot.zip", aria_label: translate("components.model_card.edit_button.label", name: @model.name), target: "_blank" ) DropdownItem(icon: "pencil", label: t("components.model_card.edit_button.text"), path: model_path(@model), aria_label: translate("components.model_card.edit_button.label", name: @model.name)) diff --git a/manyfold/usr/src/app/app/views/layouts/application.html.erb b/manyfold/usr/src/app/app/views/layouts/application.html.erb index 1010f6d..8b50bc2 100644 --- a/manyfold/usr/src/app/app/views/layouts/application.html.erb +++ b/manyfold/usr/src/app/app/views/layouts/application.html.erb @@ -10,7 +10,7 @@ <%= tag.meta name: "apple-mobile-web-app-title", content: site_name %> <%= javascript_include_tag "application", nonce: true, defer: true %> <%= stylesheet_link_tag "themes/#{SiteSettings.theme}", nonce: true %> - <%= stylesheet_link_tag "/public/assets/xrforge.css" %> + <%= stylesheet_link_tag "/assets/xrforge.css" %> <%= turbo_refreshes_with method: :morph, scroll: :preserve %> <%= tag.meta name: "robots", content: @indexing_directives if @indexing_directives.presence %> <%= yield :head %> diff --git a/manyfold/usr/src/app/app/views/models/show.html.erb b/manyfold/usr/src/app/app/views/models/show.html.erb index a1d9400..5818f2e 100644 --- a/manyfold/usr/src/app/app/views/models/show.html.erb +++ b/manyfold/usr/src/app/app/views/models/show.html.erb @@ -59,7 +59,19 @@ <%= @model.federails_actor.short_at_address %> <%= render Components::CopyButton.new(text: @model.federails_actor.at_address) %> - <% end %> + <% end %> + +
+ +
+   + + This is the fediverse activitypub address of this experience.
+ Follow updates by copy/pasting it into ActivityPub clients. +
+
+
+ <% end %> <% if @model.creator %> @@ -73,7 +85,21 @@ - <%= link_to "JanusXR room", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/janusxr.html" %> + + <%= link_to "JanusXR Metaverse", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/janusxr.html" %> + +
+ +
+   + + This is the JanusXR address.
+ JanusXR is an established Metaverse since 2015.
+ It is Free and Opensource, and allows you to meet others in this experience (avatars, chat and voice etc). +
+
+
+ @@ -83,15 +109,56 @@ - + + + + <%= link_to "build log", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/log.txt", target: "_blank" %> + +
+ +
+   + + This is the build log of XR Forge.
+ When you add files, they are processed, validated (for XR Fragment compliance).
+ But also features can be toggled via tags:
+
+ + + + + +
+ menu + + This will generate a navigator-menu into your main 3D file.
+ The links can be edited <%= link_to "here", edit_model_path(@model) %> +
+
+
+
- <%= link_to "build log", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/.xrforge/log.txt" %> - <%= link_to "Godot project", "/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/godot.zip" %> + + <%= link_to "Godot project", ENV['FEDERATE_DRIVE_HOST']+"/"+@model.library.name+"/"+@model.path.gsub("#","%23")+"/.xrforge/godot.zip" %> + +
+ +
+   + + This is a Godot project which wraps your (3D file) experience.
+ Godot is a Free and Opensource Game engine.
+ The Godot project is basically its own XR Fragment browser (which you can extend).

+ WARNING: use progressive enhancement so your 3D file experience will always run in other XR Fragment viewers. +
+
+
+ <% end %> <% if @model.collection %> diff --git a/manyfold/usr/src/app/public/assets/xrforge.css b/manyfold/usr/src/app/public/assets/xrforge.css index 8cdc02c..a4d0f09 100644 --- a/manyfold/usr/src/app/public/assets/xrforge.css +++ b/manyfold/usr/src/app/public/assets/xrforge.css @@ -1 +1,23 @@ -a,div { border:1px solid red !important; color:yellow !important; } +#sidebar td > label > i { + opacity:0.4; +} + +#toggle:checked + .detail-tooltip { + display: block; +} + +.hidden-tooltip { + display: none; + margin-top:7px; + max-height: 230px; + overflow-y:scroll; + background: var(--bs-body-bg); + padding: 12px; + border-radius: 6px; +} + +/* Show the tooltip when the corresponding checkbox is checked */ +input[type="checkbox"]:checked + .hidden-tooltip { + display: block; +} +