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

prevent warnings#1198

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
chillenberger merged 1 commit intomasterfromdan-banner-warning-cleanup
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
usecrate::{Notification,NotificationLevel};
usecrate::Notification;
use pgml_components::component;
use sailfish::TemplateOnce;

Expand Down
2 changes: 1 addition & 1 deletionpgml-dashboard/src/lib.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
externcrate rocket;

use rocket::form::Form;
use rocket::http::{Cookie,CookieJar};
use rocket::http::CookieJar;
use rocket::response::Redirect;
use rocket::route::Route;
use rocket::serde::json::Json;
Expand Down
3 changes: 1 addition & 2 deletionspgml-dashboard/src/utils/cookies.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
use rocket::http::{Cookie,CookieJar};
use rocket::serde::json::Json;

pubstructNotifications{}

Expand All@@ -11,7 +10,7 @@ impl Notifications {
}

pubfnget_viewed(cookies:&CookieJar<'_>) ->Vec<String>{
letmutviewed =match cookies.get_private("session"){
let viewed =match cookies.get_private("session"){
Some(session) =>{
match serde_json::from_str::<serde_json::Value>(session.value()).unwrap()
["notifications"]
Expand Down
1 change: 0 additions & 1 deletionpgml-dashboard/templates/layout/base.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<%
use crate::components::navigation::navbar::marketing::Marketing as MarketingNavbar;
use crate::components::notifications::Banner;
%>
<!DOCTYPE html>
<htmllang="en-US"data-bs-theme="dark">
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp