Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Onboarding components fixes#1393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
levkk merged 27 commits intomasterfromlevkk-onboarding-fixes
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
d77a085
Onboarding fixes
levkkApr 2, 2024
56f8d5b
remove hover animation
levkkApr 2, 2024
288b930
gray heading
levkkApr 2, 2024
119c20e
Secondary card
levkkApr 2, 2024
52f6f58
more actions
levkkApr 2, 2024
8e0eddd
input value
levkkApr 2, 2024
ab12345
required input
levkkApr 2, 2024
1e58f5f
rgb link action
levkkApr 3, 2024
1356a7a
cost frequency
levkkApr 3, 2024
7c33e42
card
levkkApr 3, 2024
d88f3d5
input unit
levkkApr 3, 2024
c2e4efc
zindex
levkkApr 3, 2024
f8b6144
preserve scroll
levkkApr 3, 2024
39f901c
warning
levkkApr 3, 2024
b7c6cad
link
levkkApr 4, 2024
6d1b89e
link
levkkApr 4, 2024
c81672a
set active
levkkApr 4, 2024
ba0ecab
save
levkkApr 4, 2024
d7adb48
is_active
levkkApr 4, 2024
e1f4fc3
change event
levkkApr 4, 2024
e569e9f
remove
levkkApr 4, 2024
c26fde7
fix input field
levkkApr 5, 2024
821c393
css
levkkApr 5, 2024
6b35316
Revert "css"
levkkApr 5, 2024
4879161
fix input again
levkkApr 5, 2024
abf06fe
fix input unit
levkkApr 5, 2024
8ea6cef
dead code
levkkApr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
save
  • Loading branch information
@levkk
levkk committedApr 4, 2024
commitba0ecabff2b117350a188fdbebeb64bd62105f5c
2 changes: 1 addition & 1 deletionpgml-dashboard/Cargo.lock
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
import { Controller } from'@hotwired/stimulus'
import { Controller } from"@hotwired/stimulus";

export default class extends Controller {
static initialized = false
static initialized = false;

initialize() {
if (this.constructor.initialized) return
if (this.constructor.initialized) return;

window.addEventListener("turbo:before-visit", function(event) {
localStorage.setItem('scrollpos', window.scrollY);
window.addEventListener("turbo:before-visit", function(event) {
localStorage.setItem("scrollpos", window.scrollY);
});

window.addEventListener("turbo:load", function(event) {
const scrollpos = localStorage.getItem('scrollpos');
window.addEventListener("turbo:load", function(event) {
const scrollpos = localStorage.getItem("scrollpos");
if (scrollpos) {
window.scrollTo(0, scrollpos);
}
})
});

this.constructor.initialized = true
this.constructor.initialized = true;
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
import { Controller } from "@hotwired/stimulus";

export default class extends Controller {
static targets = ["button", "link"];
static targets = ["button"];

selectSwitchOption(e) {
this.buttonTargets.forEach((target) => {
Expand All@@ -12,8 +12,10 @@ export default class extends Controller {
e.currentTarget.classList.add("active");
e.currentTarget.ariaPressed = true;

if (this.hasLinkTarget) {
this.linkTarget.click()
const link = e.currentTarget.querySelector("a");

if (link) {
link.click();
}
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,9 +16,9 @@
data-action="<%= option.actions %>"
>
<% if let Some(ref link) = option.link { %>
<a href="<%= link %>" class="d-none" data-inputs-switch-v-2-target="link"></a>
<a href="<%= link %>" class="d-none"></a>
<% } %>

<% if let Some(icon) = option.icon { %>
<span class="material-symbols-outlined">
<%= icon %>
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp