renaming of shared in app

This commit is contained in:
Franz Dietrich 2021-08-12 11:47:04 +02:00
parent de3c69fc89
commit 5941662069
5 changed files with 11 additions and 10 deletions

View File

@ -2,7 +2,7 @@
use std::sync::Arc; use std::sync::Arc;
use fluent::{FluentArgs, FluentBundle, FluentResource}; use fluent::{FluentArgs, FluentBundle, FluentResource};
use shared::datatypes::Lang; use pslink_shared::datatypes::Lang;
use unic_langid::LanguageIdentifier; use unic_langid::LanguageIdentifier;
/// A struct containing the data, functions and the current language to query the localized strings. /// A struct containing the data, functions and the current language to query the localized strings.

View File

@ -5,12 +5,13 @@ pub mod pages;
use pages::list_links; use pages::list_links;
use pages::list_users; use pages::list_users;
use pslink_shared::{
apirequests::users::LoginUser,
datatypes::{Lang, Loadable, User},
};
use seed::window; use seed::window;
use seed::IF; use seed::IF;
use seed::{attrs, button, div, input, label, log, prelude::*, App, Url, C}; use seed::{attrs, button, div, input, label, log, prelude::*, App, Url, C};
use shared::apirequests::users::LoginUser;
use shared::datatypes::Lang;
use shared::datatypes::{Loadable, User};
use crate::i18n::I18n; use crate::i18n::I18n;

View File

@ -1,10 +1,10 @@
//! Create the top menu of the app //! Create the top menu of the app
use fluent::fluent_args; use fluent::fluent_args;
use seed::{a, attrs, div, li, nav, nodes, ol, prelude::*, Url, C}; use pslink_shared::{
use shared::{
apirequests::users::Role, apirequests::users::Role,
datatypes::{Lang, User}, datatypes::{Lang, User},
}; };
use seed::{a, attrs, div, li, nav, nodes, ol, prelude::*, Url, C};
use crate::{i18n::I18n, Msg}; use crate::{i18n::I18n, Msg};

View File

@ -11,7 +11,7 @@ use seed::{
}; };
use web_sys::{IntersectionObserver, IntersectionObserverEntry, IntersectionObserverInit}; use web_sys::{IntersectionObserver, IntersectionObserverEntry, IntersectionObserverInit};
use shared::{ use pslink_shared::{
apirequests::general::Ordering, apirequests::general::Ordering,
apirequests::{ apirequests::{
general::{EditMode, Message, Operation, Status}, general::{EditMode, Message, Operation, Status},
@ -729,7 +729,7 @@ fn view_link_table_filter_input<F: Fn(&str) -> String>(model: &Model, t: F) -> N
/// display a single table row containing one link /// display a single table row containing one link
fn view_link(l: &Cached<FullLink>, logged_in_user: &User) -> Node<Msg> { fn view_link(l: &Cached<FullLink>, logged_in_user: &User) -> Node<Msg> {
use shared::apirequests::users::Role; use pslink_shared::apirequests::users::Role;
let link = LinkDelta::from(l.data.clone()); let link = LinkDelta::from(l.data.clone());
tr![ tr![
IF! (logged_in_user.role == Role::Admin IF! (logged_in_user.role == Role::Admin

View File

@ -1,8 +1,7 @@
//! List all users in case an admin views it, list the "self" user otherwise. //! List all users in case an admin views it, list the "self" user otherwise.
use enum_map::EnumMap; use enum_map::EnumMap;
use seed::{a, attrs, div, h1, input, log, p, prelude::*, section, table, td, th, tr, Url, C, IF}; use pslink_shared::{
use shared::{
apirequests::general::{Operation, Ordering}, apirequests::general::{Operation, Ordering},
apirequests::{ apirequests::{
general::{EditMode, Status}, general::{EditMode, Status},
@ -10,6 +9,7 @@ use shared::{
}, },
datatypes::{Lang, User}, datatypes::{Lang, User},
}; };
use seed::{a, attrs, div, h1, input, log, p, prelude::*, section, table, td, th, tr, Url, C, IF};
/* /*
* init * init
*/ */