hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
884ba8267cd9ac2f5e5de1c6b5518bad418d4728
1,470
dart
Dart
lib/providers/dashboard_provider.dart
devShakib015/wantsbucks_admin
2c612a0dec0a064825e40ae5d08ded0d04cb2108
[ "MIT" ]
null
null
null
lib/providers/dashboard_provider.dart
devShakib015/wantsbucks_admin
2c612a0dec0a064825e40ae5d08ded0d04cb2108
[ "MIT" ]
null
null
null
lib/providers/dashboard_provider.dart
devShakib015/wantsbucks_admin
2c612a0dec0a064825e40ae5d08ded0d04cb2108
[ "MIT" ]
null
null
null
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/cupertino.dart'; class DashboardProvider extends ChangeNotifier { Future<Map<String, int>> getDashBoardInfo() async { Map<String, int> _dashboard = { "totalUsers": 0, "totalPayable": 0, "totalWithdrawRequest": 0, }; try { await FirebaseFirestore.instance.collection("users").get().then((value) { int _users = value.docs.length; _dashboard["totalUsers"] = _users; }); await FirebaseFirestore.instance .collection("users") .get() .then((value) async { int _totalPayable = 0; List<QueryDocumentSnapshot> _users = value.docs; for (var item in _users) { await FirebaseFirestore.instance .collection("users") .doc(item.id) .collection("earnings") .get() .then((value) { num _currentEarning = value.docs.first.data()["currentBalance"]; _totalPayable += _currentEarning; }); } _dashboard["totalPayable"] = _totalPayable; }); await FirebaseFirestore.instance .collection("withdrawls") .where("status", isEqualTo: "pending") .get() .then((value) { int _req = value.docs.length; _dashboard["totalWithdrawRequest"] = _req; }); } catch (e) {} return _dashboard; } }
29.4
79
0.571429
9cc3a63a681b5192d1cde6ea95932d5e1fa96a7f
9,418
rs
Rust
guppy/src/platform/summaries.rs
Guiguiprim/cargo-guppy
36bc3e1716c1b5b02bab3d70118bec7f30add471
[ "Apache-2.0", "MIT" ]
252
2020-04-14T05:54:21.000Z
2022-03-29T07:34:21.000Z
guppy/src/platform/summaries.rs
Guiguiprim/cargo-guppy
36bc3e1716c1b5b02bab3d70118bec7f30add471
[ "Apache-2.0", "MIT" ]
145
2020-04-07T18:52:06.000Z
2022-03-29T00:05:05.000Z
guppy/src/platform/summaries.rs
Guiguiprim/cargo-guppy
36bc3e1716c1b5b02bab3d70118bec7f30add471
[ "Apache-2.0", "MIT" ]
14
2020-04-27T23:43:13.000Z
2022-03-22T17:27:25.000Z
// Copyright (c) The cargo-guppy Contributors // SPDX-License-Identifier: MIT OR Apache-2.0 use crate::{errors::TargetSpecError, platform::PlatformSpec}; use std::sync::Arc; pub use target_spec::summaries::{PlatformSummary, TargetFeaturesSummary}; /// A serializable version of [`PlatformSpec`]. /// /// Requires the `summaries` feature to be enabled. #[derive(Clone, Debug, Eq, PartialEq)] pub enum PlatformSpecSummary { /// The intersection of all platforms. /// /// This is converted to and from [`PlatformSpec::Always`], and is expressed as the string /// `"always"`, or as `spec = "always"`. /// /// # Examples /// /// Deserialize the string `"always"`. /// /// ``` /// # use guppy::platform::PlatformSpecSummary; /// let spec: PlatformSpecSummary = serde_json::from_str(r#""always""#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Always); /// ``` /// /// Deserialize `spec = "always"`. /// /// ``` /// # use guppy::platform::PlatformSpecSummary; /// let spec: PlatformSpecSummary = toml::from_str(r#"spec = "always""#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Always); /// ``` Always, /// An individual platform. /// /// This is converted to and from [`PlatformSpec::Platform`], and is serialized as the platform /// itself (either a triple string, or a map such as /// `{ triple = "x86_64-unknown-linux-gnu", target-features = [] }`). /// /// # Examples /// /// Deserialize a target triple. /// /// ``` /// # use guppy::platform::{PlatformSummary, PlatformSpecSummary}; /// # use target_spec::summaries::TargetFeaturesSummary; /// # use std::collections::BTreeSet; /// let spec: PlatformSpecSummary = serde_json::from_str(r#""x86_64-unknown-linux-gnu""#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Platform(PlatformSummary { /// triple: "x86_64-unknown-linux-gnu".to_owned(), /// target_features: TargetFeaturesSummary::Unknown, /// flags: BTreeSet::new(), /// })); /// ``` /// /// Deserialize a target map. /// /// ``` /// # use guppy::platform::{PlatformSummary, PlatformSpecSummary}; /// # use target_spec::summaries::TargetFeaturesSummary; /// # use std::collections::BTreeSet; /// let spec: PlatformSpecSummary = toml::from_str(r#" /// triple = "x86_64-unknown-linux-gnu" /// target-features = [] /// flags = [] /// "#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Platform(PlatformSummary { /// triple: "x86_64-unknown-linux-gnu".to_owned(), /// target_features: TargetFeaturesSummary::Features(BTreeSet::new()), /// flags: BTreeSet::new(), /// })); /// ``` Platform(PlatformSummary), /// The union of all platforms. /// /// This is converted to and from [`PlatformSpec::Any`], and is serialized as the string /// `"any"`. /// /// This is also the default, since in many cases one desires to compute the union of enabled /// dependencies across all platforms. /// /// # Examples /// /// Deserialize the string `"any"`. /// /// ``` /// # use guppy::platform::PlatformSpecSummary; /// let spec: PlatformSpecSummary = serde_json::from_str(r#""any""#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Any); /// ``` /// /// Deserialize `spec = "any"`. /// /// ``` /// # use guppy::platform::PlatformSpecSummary; /// let spec: PlatformSpecSummary = toml::from_str(r#"spec = "any""#).unwrap(); /// assert_eq!(spec, PlatformSpecSummary::Any); /// ``` Any, } impl PlatformSpecSummary { /// Creates a new `PlatformSpecSummary` from a [`PlatformSpec`]. pub fn new(platform_spec: &PlatformSpec) -> Self { match platform_spec { PlatformSpec::Always => PlatformSpecSummary::Always, PlatformSpec::Platform(platform) => { PlatformSpecSummary::Platform(platform.to_summary()) } PlatformSpec::Any => PlatformSpecSummary::Any, } } /// Converts `self` to a `PlatformSpec`. /// /// Returns an `Error` if the platform was unknown. pub fn to_platform_spec(&self) -> Result<PlatformSpec, TargetSpecError> { match self { PlatformSpecSummary::Always => Ok(PlatformSpec::Always), PlatformSpecSummary::Platform(platform) => { Ok(PlatformSpec::Platform(Arc::new(platform.to_platform()?))) } PlatformSpecSummary::Any => Ok(PlatformSpec::Any), } } /// Returns true if `self` is `PlatformSpecSummary::Any`. pub fn is_any(&self) -> bool { matches!(self, PlatformSpecSummary::Any) } } impl Default for PlatformSpecSummary { #[inline] fn default() -> Self { PlatformSpecSummary::Any } } mod serde_impl { use super::*; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use std::collections::BTreeSet; use target_spec::summaries::TargetFeaturesSummary; impl Serialize for PlatformSpecSummary { fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { match self { PlatformSpecSummary::Always => Spec { spec: "always" }.serialize(serializer), PlatformSpecSummary::Any => Spec { spec: "any" }.serialize(serializer), PlatformSpecSummary::Platform(platform) => platform.serialize(serializer), } } } // Ideally we'd serialize always or any as just those strings, but that runs into ValueAfterTable // issues with toml. So serialize always/any as "spec = always" etc. #[derive(Serialize)] struct Spec { spec: &'static str, } impl<'de> Deserialize<'de> for PlatformSpecSummary { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: Deserializer<'de>, { match PlatformSpecSummaryDeserialize::deserialize(deserializer)? { PlatformSpecSummaryDeserialize::String(s) | PlatformSpecSummaryDeserialize::Spec { spec: s } => { match s.as_str() { "always" => Ok(PlatformSpecSummary::Always), "any" => Ok(PlatformSpecSummary::Any), _ => { // TODO: expression parsing would go here Ok(PlatformSpecSummary::Platform(PlatformSummary { triple: s, target_features: TargetFeaturesSummary::default(), flags: BTreeSet::default(), })) } } } PlatformSpecSummaryDeserialize::PlatformFull { triple, target_features, flags, } => Ok(PlatformSpecSummary::Platform(PlatformSummary { triple, target_features, flags, })), } } } #[derive(Deserialize)] #[serde(untagged)] enum PlatformSpecSummaryDeserialize { String(String), Spec { spec: String, }, #[serde(rename_all = "kebab-case")] PlatformFull { // TODO: there doesn't appear to be any way to defer to the PlatformSummary // deserializer, so copy-paste its logic here. Find a better way? triple: String, #[serde(default)] target_features: TargetFeaturesSummary, #[serde(skip_serializing_if = "BTreeSet::is_empty", default)] flags: BTreeSet<String>, }, } } #[cfg(all(test, feature = "proptest1"))] mod proptests { use super::*; use proptest::prelude::*; use std::collections::HashSet; proptest! { #[test] fn summary_roundtrip(platform_spec in any::<PlatformSpec>()) { let summary = PlatformSpecSummary::new(&platform_spec); let serialized = toml::ser::to_string(&summary).expect("serialization succeeded"); let deserialized: PlatformSpecSummary = toml::from_str(&serialized).expect("deserialization succeeded"); assert_eq!(summary, deserialized, "summary and deserialized should match"); let platform_spec2 = deserialized.to_platform_spec().expect("conversion to PlatformSpec succeeded"); match (platform_spec, platform_spec2) { (PlatformSpec::Any, PlatformSpec::Any) | (PlatformSpec::Always, PlatformSpec::Always) => {}, (PlatformSpec::Platform(platform), PlatformSpec::Platform(platform2)) => { assert_eq!(platform.triple_str(), platform2.triple_str(), "triples match"); assert_eq!(platform.target_features(), platform2.target_features(), "target features match"); assert_eq!(platform.flags().collect::<HashSet<_>>(), platform2.flags().collect::<HashSet<_>>(), "flags match"); } (other, other2) => panic!("platform specs do not match: original: {:?}, roundtrip: {:?}", other, other2), } } } }
37.225296
131
0.572839
dd72ee08531cb9738320fe0f7651bd175b6bb58d
1,515
java
Java
myshop-plus-business/business-reg/src/main/java/com/loven/myshop/plus/business/reg/controller/v1/RegisterController.java
Transme/MyshopPlus
cb3fc1611fe9ef97f37b8fee4fbe44b48cc6bb1d
[ "Apache-2.0" ]
1
2020-05-28T05:21:13.000Z
2020-05-28T05:21:13.000Z
myshop-plus-business/business-reg/src/main/java/com/loven/myshop/plus/business/reg/controller/v1/RegisterController.java
Transme/MyshopPlus
cb3fc1611fe9ef97f37b8fee4fbe44b48cc6bb1d
[ "Apache-2.0" ]
null
null
null
myshop-plus-business/business-reg/src/main/java/com/loven/myshop/plus/business/reg/controller/v1/RegisterController.java
Transme/MyshopPlus
cb3fc1611fe9ef97f37b8fee4fbe44b48cc6bb1d
[ "Apache-2.0" ]
null
null
null
package com.loven.myshop.plus.business.reg.controller.v1; import com.loven.myshop.plus.business.reg.dto.RegisterInfo; import com.loven.myshop.plus.common.constant.CodeStatus; import com.loven.myshop.plus.provider.admin.service.domain.UmsAdmin; import com.loven.myshop.plus.business.reg.service.RegisterService; import com.loven.myshop.plus.common.consumer.utils.ValidateUtils; import com.loven.myshop.plus.common.dto.ResponseResult; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import java.util.List; /** * 接收、处理注册请求 * * @author loven. * @date 2020/5/20. */ @RestController public class RegisterController { @Autowired private RegisterService registerService; @PostMapping("register") public ResponseResult<Object> register(@Valid @RequestBody RegisterInfo info, Errors errors){ String errorString = ValidateUtils.getErrors(errors); if(StringUtils.isNotBlank(errorString)){ return ResponseResult.fail(CodeStatus.ILLEGAL_PARAMS, errorString); } else{ UmsAdmin admin = new UmsAdmin(); admin.setUsername(info.getUsername()); admin.setPassword(info.getPassword()); return registerService.register(admin); } } }
34.431818
97
0.750495
145c8c0fd67447c4bec6277f84812afcda0f1574
6,181
ts
TypeScript
src/helpers/incidents.ts
Nirmitjatana/cli
35bef580627221af8eab446e6f6bb2703b52915b
[ "MIT" ]
null
null
null
src/helpers/incidents.ts
Nirmitjatana/cli
35bef580627221af8eab446e6f6bb2703b52915b
[ "MIT" ]
null
null
null
src/helpers/incidents.ts
Nirmitjatana/cli
35bef580627221af8eab446e6f6bb2703b52915b
[ "MIT" ]
null
null
null
import {dump, load} from 'js-yaml' import {readFile, ensureFile, appendFile, writeFile} from 'fs-extra' import path from 'path' import {Incidents, MemoizedIncidents, UppConfig} from '../interfaces' import slugify from '@sindresorhus/slugify' import {commit} from './git' import {getConfig} from './config' import {infoErrorLogger} from './log' let __memoizedIncidents: MemoizedIncidents | undefined const initMemoizedIncidents = () => { if (__memoizedIncidents) return __memoizedIncidents = {} as MemoizedIncidents } export const getIncidents = async (): Promise<MemoizedIncidents> => { initMemoizedIncidents() if (__memoizedIncidents?.incidents) return __memoizedIncidents await ensureFile('.incidents.yml') let incidents = load(await readFile('.incidents.yml', 'utf8')) as Incidents if (!incidents) { incidents = { useID: 1, incidents: {}, } as Incidents await writeFile('.incidents.yml', dump(incidents)) const config = await getConfig() commit('$PREFIX Create incidents.yml' .replace('$PREFIX', config.incidentCommitPrefixOpen || '⭕'), (config.commitMessages || {}).commitAuthorName, (config.commitMessages || {}).commitAuthorEmail, '.incidents.yml') } /** __memoizedIncidents is already initialized */ __memoizedIncidents = {...incidents, indexes: {}} return __memoizedIncidents! } export const getIndexes = async (label: string): Promise<number[]> => { await getIncidents() if (__memoizedIncidents?.indexes[label]) return __memoizedIncidents?.indexes[label] const indexes: number[] = [] Object.keys(__memoizedIncidents!.incidents).forEach(id => { if (__memoizedIncidents!.incidents[Number(id)].labels?.includes(label)) indexes.push(Number(id)) }) __memoizedIncidents!.indexes[label] = indexes return indexes } export const createIncident = async (site: UppConfig['sites'][0], meta: {willCloseAt?: number; slug?: string; author: string; assignees: string[]; labels: string[]}, title: string, desc: string): Promise<void> => { const slug = meta.slug ?? site.slug ?? slugify(site.name) const incidents = await getIncidents() const id = incidents.useID const now = Date.now() // write to .incidents.yml incidents.incidents[id] = { siteURL: site.urlSecretText || site.url, slug: slug, createdAt: now, willCloseAt: meta.willCloseAt, status: 'open', title, labels: meta.labels, } incidents.useID = id + 1 meta.labels.forEach(label => { if (incidents.indexes[label]) incidents.indexes[label].push(id) }) __memoizedIncidents = incidents await writeFile('.incidents.yml', dump({ useID: incidents.useID, incidents: incidents.incidents, })) // write to incidents/slugified-site-folder/$id-$title.md const mdPath = path.join('incidents', `${id}# ${title}.md`) await ensureFile(mdPath) const content = `--- id: ${id} assignees: ${meta.assignees?.join(', ')} labels: ${meta.labels.join(', ')} --- # ${title} <!--start:commment author:${meta.author} last_modified:${now}--> ${desc} <!--end:comment --> --- ` await writeFile(mdPath, content) const config = await getConfig() infoErrorLogger.info(`.incidents.yml ${mdPath}`) commit('$PREFIX Create Issue #$ID' .replace('$PREFIX', config.incidentCommitPrefixOpen || '⭕') .replace('$ID', id.toString(10)), (config.commitMessages || {}).commitAuthorName, (config.commitMessages || {}).commitAuthorEmail, `.incidents.yml "${mdPath}"`) } export const closeMaintenanceIncidents = async () => { // Slug is not needed as a parameter, since newly added site will not have any issue // if it does, it must already be in .incidents.yml await getIncidents() const now = Date.now() const ongoingMaintenanceEvents: {incident: Incidents['incidents'][0]; id: number}[] = [] const indexes = await getIndexes('maintenance') let hasDelta = false indexes.forEach(id => { const status = __memoizedIncidents!.incidents[id].status if (status === 'open') { const willCloseAt = __memoizedIncidents!.incidents[id].willCloseAt if (willCloseAt && willCloseAt < now) { __memoizedIncidents!.incidents[id].closedAt = now __memoizedIncidents!.incidents[id].status = 'closed' hasDelta = true } ongoingMaintenanceEvents.push({ id: id, incident: __memoizedIncidents!.incidents[id], }) } }) if (hasDelta) { await writeFile('.incidents.yml', dump({ useID: __memoizedIncidents?.useID, incidents: __memoizedIncidents?.incidents, })) // Commit changes const config = await getConfig() commit('$PREFIX Close maintenance issues'.replace('$PREFIX', config.incidentCommitPrefixClose || '📛'), (config.commitMessages || {}).commitAuthorName, (config.commitMessages || {}).commitAuthorEmail, '.incidents.yml') } return ongoingMaintenanceEvents } export const closeIncident = async (id: number) => { await getIncidents() __memoizedIncidents!.incidents[id].closedAt = Date.now() __memoizedIncidents!.incidents[id].status = 'closed' await writeFile('.incidents.yml', dump({ useID: __memoizedIncidents?.useID, incidents: __memoizedIncidents?.incidents, })) const config = await getConfig() commit('$PREFIX Close #$ID' .replace('$PREFIX', config.incidentCommitPrefixClose || '📛') .replace('$ID', id.toString(10)), (config.commitMessages || {}).commitAuthorName, (config.commitMessages || {}).commitAuthorEmail, '.incidents.yml') } export const createComment = async (meta: {slug: string; id: number; title: string; author: string}, comment: string) => { const filePath = path.join('incidents', `${meta.id}# ${meta.title}.md`) await appendFile(filePath, ` <!--start:commment author:${meta.author} last_modified:${Date.now()}--> ${comment} <!--end:comment --> --- `) const config = await getConfig() commit('$PREFIX Comment in #$ID by $AUTHOR' .replace('$PREFIX', config.incidentCommentPrefix || '💬') .replace('$AUTHOR', meta.author) .replace('$ID', meta.id.toString(10)), (config.commitMessages || {}).commitAuthorName, (config.commitMessages || {}).commitAuthorEmail, `"${filePath}"`) }
34.530726
214
0.684841
cddf04769d75e0cf6001e3f171a4f609fb193480
3,786
cs
C#
src/L2-foundation/BoSSS.Foundation.XDG/Quadrature/BruteForceSubdivisionStrategy.cs
FDYdarmstadt/BoSSS
974f3eee826424a213e68d8d456d380aeb7cd7e9
[ "Apache-2.0" ]
22
2017-06-08T05:53:17.000Z
2021-05-25T13:12:17.000Z
src/L2-foundation/BoSSS.Foundation.XDG/Quadrature/BruteForceSubdivisionStrategy.cs
leyel/BoSSS
39f58a1a64a55e44f51384022aada20a5b425230
[ "Apache-2.0" ]
1
2020-07-20T15:32:56.000Z
2020-07-20T15:34:22.000Z
src/L2-foundation/BoSSS.Foundation.XDG/Quadrature/BruteForceSubdivisionStrategy.cs
leyel/BoSSS
39f58a1a64a55e44f51384022aada20a5b425230
[ "Apache-2.0" ]
12
2018-01-05T19:52:35.000Z
2021-05-07T07:49:27.000Z
/* ======================================================================= Copyright 2017 Technische Universitaet Darmstadt, Fachgebiet fuer Stroemungsdynamik (chair of fluid dynamics) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ using System.Collections.Generic; using System.Linq; using BoSSS.Foundation.Grid; using ilPSP.Tracing; using BoSSS.Foundation.Grid.Classic; using BoSSS.Foundation.Grid.RefElements; namespace BoSSS.Foundation.XDG.Quadrature.Subdivision { /// <summary> /// Subdivision strategy that blindly subdivides a simplex into /// sub-simplices up to a given level. As a result, the subdivisions are /// the same for all elements (i.e., cells or edges). /// </summary> public class BruteForceSubdivisionStrategy : ISubdivisionStrategy { /// <summary> /// The number of subdivisions of the original simplex to perform. /// </summary> private readonly int numberOfSubdivisions; /// <summary> /// Initializes the strategy. /// </summary> /// <param name="refElement"> /// The simplex to be subdivided. /// </param> /// <param name="numberOfSubdivisions"> /// The number of subdivisions, see /// <see cref="Grid.RefElement.SubdivisionTree"/>. /// </param> public BruteForceSubdivisionStrategy(RefElement refElement, int numberOfSubdivisions) { this.RefElement = refElement; this.numberOfSubdivisions = numberOfSubdivisions; } #region ISubdivisionStrategy Members /// <summary> /// The simplex to be subdivided. /// </summary> public RefElement RefElement { get; private set; } /// <summary> /// Uses <see cref="Grid.RefElement.SubdivisionTree"/> to create the brute /// force subdivision which is the same for all cells. As a result, the /// chunks of <paramref name="mask"/> are not altered. /// </summary> /// <param name="mask"> /// <see cref="ISubdivisionStrategy.GetSubdivisionNodes"/> /// </param> /// <returns> /// <see cref="ISubdivisionStrategy.GetSubdivisionNodes"/> /// </returns> /// <remarks> /// Currently, the nodes returned by /// <see cref="Grid.RefElement.SubdivisionTree"/> are unnecessarily /// boxed by this method. This should be changed by changing the return /// type of <see cref="Grid.RefElement.SubdivisionTree"/> at some /// point. /// </remarks> public IEnumerable<KeyValuePair<Chunk, IEnumerable<SubdivisionNode>>> GetSubdivisionNodes(ExecutionMask mask) { using (new FuncTrace()) { RefElement.SubdivisionTreeNode[] leaves = RefElement.GetSubdivisionTree(numberOfSubdivisions).GetLeaves(); foreach (Chunk chunk in mask) { yield return new KeyValuePair<Chunk, IEnumerable<SubdivisionNode>>( chunk, leaves.Select((leave) => new SubdivisionNode(leave.TrafoFromRoot, true))); } } } #endregion } }
39.4375
123
0.609086
842dfb1582173d77f0451a08a309ad9ae0cc076e
120
csx
C#
src/FunConcurrency/src/.paket/load/net461/System.Reflection.csx
markpattison/parallel-patterns
1990be216d0dfaf45a8b8297d3693d1757b5916e
[ "MIT" ]
14
2019-04-29T12:08:01.000Z
2021-11-15T10:42:19.000Z
src/FunConcurrency/src/.paket/load/net461/System.Reflection.csx
markpattison/parallel-patterns
1990be216d0dfaf45a8b8297d3693d1757b5916e
[ "MIT" ]
null
null
null
src/FunConcurrency/src/.paket/load/net461/System.Reflection.csx
markpattison/parallel-patterns
1990be216d0dfaf45a8b8297d3693d1757b5916e
[ "MIT" ]
5
2019-04-29T08:05:29.000Z
2021-04-30T15:18:17.000Z
namespace PaketLoadScripts #load "System.IO.csx" #load "System.Reflection.Primitives.csx" #load "System.Runtime.csx"
24
41
0.775
ef776e21c81edd6b02f6962a10ed3a493ac44c71
4,025
h
C
Utilities/LjsFileUtilities.h
jmoody/LJS
85851d13783e8ec4605c6aa4c01deaa8562c29e6
[ "BSD-3-Clause" ]
8
2015-04-26T21:34:41.000Z
2018-04-23T07:40:31.000Z
Utilities/LjsFileUtilities.h
jmoody/LJS
85851d13783e8ec4605c6aa4c01deaa8562c29e6
[ "BSD-3-Clause" ]
null
null
null
Utilities/LjsFileUtilities.h
jmoody/LJS
85851d13783e8ec4605c6aa4c01deaa8562c29e6
[ "BSD-3-Clause" ]
2
2015-07-17T12:07:58.000Z
2020-11-04T06:36:29.000Z
// Copyright 2011 The Little Joy Software Company. All rights reserved. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in // the documentation and/or other materials provided with the // distribution. // * Neither the name of the Little Joy Software nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY LITTLE JOY SOFTWARE ''AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LITTLE JOY SOFTWARE BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN // IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #import <Foundation/Foundation.h> extern NSString *LjsFileUtilitiesErrorDomain; extern NSString *LjsFileUtilitiesFileOrDirectoryErrorUserInfoKey; typedef enum : NSUInteger { kLjsFileUtilitiesErrorCodeRead = 911, kLjsFileUtilitiesErrorCodeWrite, kLjsFileUtilitiesErrorCodeFileDoesNotExist } LjsFileUtilitiesErrorCode; @interface LjsFileUtilities : NSObject + (NSString *) findDocumentDirectory; + (NSString *) findLibraryDirectoryForUserp:(BOOL) forUser; + (NSString *) findPreferencesDirectoryForUserp:(BOOL) forUser; + (NSString *) findCoreDataStoreDirectoryForUserp:(BOOL) forUser; #if !TARGET_OS_IPHONE + (NSString *)findApplicationSupportDirectoryForUserp:(BOOL) forUser; #endif + (BOOL) ensureSaveDirectory:(NSString *) path existsWithManager:(NSFileManager *) fileManager; + (BOOL) ensureDirectory:(NSString *) directoryPath error:(NSError *__autoreleasing *) error; + (NSString *) parentDirectoryForPath:(NSString *) childPath; #if !TARGET_OS_IPHONE + (NSString *) pathFromOpenPanelWithPrompt:(NSString *) aPrompt title:(NSString *) aTitle lastDirectory:(NSString *) aLastDirectory fallBackDirectory:(NSString *) fallbackDirectory defaultsKeyOrNil:(NSString *) aDefaultsKeyOrNil; #endif + (NSString *) lastDirectoryPathWithDefaultsKey:(NSString *) aDefaultsKey fallbackDirectory:(NSString *) aFallbackDirectory; + (BOOL) writeDictionary:(NSDictionary *) aDict toFile:(NSString *) aPath error:(NSError *__autoreleasing *) error; + (BOOL) writeDictionary:(NSDictionary *) aDict toFile:(NSString *) aPath ensureDirectories:(BOOL) aShouldCreateDirectories error:(NSError *__autoreleasing *) error; + (NSDictionary *) readDictionaryFromFile:(NSString *) aPath error:(NSError *__autoreleasing *) error; + (BOOL) writeArray:(NSArray *) aArray toFile:(NSString *) aPath error:(NSError *__autoreleasing *) error; + (BOOL) writeArray:(NSArray *) aArray toFile:(NSString *) aPath ensureDirectories:(BOOL) aShouldCreateDirectories error:(NSError *__autoreleasing *) error; + (NSArray *) readArrayFromFile:(NSString *) aPath error:(NSError *__autoreleasing *) error; + (NSArray *) readLinesFromFile:(NSString *) aPath error:(NSError *__autoreleasing *) error; @end
43.27957
115
0.728944
85a5b557c576420071a6e01995d3e67aec51b2aa
6,034
dart
Dart
flutter-hms-site/example/lib/screens/text_search_screen.dart
MilosKarakas/hms-flutter-plugin
7e08c137a0c4549b7723cf74970ccb6329857539
[ "Apache-2.0" ]
1
2021-04-02T02:37:54.000Z
2021-04-02T02:37:54.000Z
flutter-hms-site/example/lib/screens/text_search_screen.dart
MilosKarakas/hms-flutter-plugin
7e08c137a0c4549b7723cf74970ccb6329857539
[ "Apache-2.0" ]
null
null
null
flutter-hms-site/example/lib/screens/text_search_screen.dart
MilosKarakas/hms-flutter-plugin
7e08c137a0c4549b7723cf74970ccb6329857539
[ "Apache-2.0" ]
1
2022-03-18T18:44:03.000Z
2022-03-18T18:44:03.000Z
/* Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import 'dart:developer'; import 'package:flutter/material.dart'; import 'package:huawei_site/model/coordinate.dart'; import 'package:huawei_site/model/hwlocation_type.dart'; import 'package:huawei_site/model/location_type.dart'; import 'package:huawei_site/model/text_search_request.dart'; import 'package:huawei_site/model/text_search_response.dart'; import 'package:huawei_site/search_service.dart'; import 'package:huawei_site_example/screens/home_screen.dart'; import '../keys.dart'; import '../widgets/custom_button.dart'; import '../widgets/custom_text_form_field.dart'; class TextSearchScreen extends StatefulWidget { static const String id = 'text_search_screen'; @override _TextSearchScreenState createState() => _TextSearchScreenState(); } class _TextSearchScreenState extends State<TextSearchScreen> { final TextEditingController _queryTextController = TextEditingController(text: "Eiffel Tower"); final TextEditingController _languageTextController = TextEditingController(text: "en"); final TextEditingController _countryTextController = TextEditingController(text: "FR"); final TextEditingController _latTextController = TextEditingController(text: "48.893478"); final TextEditingController _lngTextController = TextEditingController(text: "2.334595"); final TextEditingController _radiusTextController = TextEditingController(text: "5000"); final TextEditingController _pageIndexTextController = TextEditingController(text: "1"); final TextEditingController _pageSizeTextController = TextEditingController(text: "20"); final TextSearchRequest _request = TextSearchRequest(); String _results; SearchService _searchService; @override void initState() { super.initState(); initService(); _results = ""; } void initService() async { _searchService = await SearchService.create(HomeScreen.API_KEY); } void runSearch() async { _request.query = _queryTextController.text; _request.location = Coordinate( lat: double.parse(_latTextController.text), lng: double.parse(_lngTextController.text), ); _request.language = _languageTextController.text; _request.countryCode = _countryTextController.text; _request.pageIndex = int.parse(_pageIndexTextController.text); _request.pageSize = int.parse(_pageSizeTextController.text); _request.radius = int.parse(_radiusTextController.text); _request.hwPoiType = HwLocationType.TOWER; _request.location = Coordinate(lat: 48.85757246679441, lng: 2.2924174770714916); _request.poiType = LocationType.TOURIST_ATTRACTION; try { TextSearchResponse response = await _searchService.textSearch(_request); setState(() { _results = response.toJson(); log(_results); }); } catch (e) { setState(() { _results = e.toString(); }); } } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Text Search'), ), body: SingleChildScrollView( child: Column( children: <Widget>[ Container( child: Padding( padding: const EdgeInsets.only(left: 15, right: 15, top: 15), child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, children: <Widget>[ CustomTextFormField( labelText: "Query Text", controller: _queryTextController, ), CustomTextFormField( labelText: "Language", controller: _languageTextController, ), CustomTextFormField( labelText: "Country Code", controller: _countryTextController, ), CustomTextFormField( labelText: "Latitude", controller: _latTextController, ), CustomTextFormField( labelText: "Longitude", controller: _lngTextController, ), CustomTextFormField( labelText: "Radius", controller: _radiusTextController, ), CustomTextFormField( labelText: "PageIndex", controller: _pageIndexTextController, ), CustomTextFormField( labelText: "PageSize", controller: _pageSizeTextController, ), CustomButton( key: Key(Keys.SEARCH_TEXT), text: "Search", onPressed: () { runSearch(); }, ), ], ), ), ), Container( child: Text( _results, key: Key(Keys.RESULT_TEXT), style: TextStyle( fontSize: 12.0, color: Colors.black, ), ), ), ], ), ), ); } }
34.284091
78
0.598774
1c04a7d1ae3bf5e8e07dc752a1d116d9b068572a
440
sql
SQL
GIPrva/dbo/Views/v_Link_BikeUse.sql
robhubi/GIPrva
d70a1ea94bbf6a2c0c3d26a55161ce7e11819c90
[ "MIT" ]
1
2021-12-08T10:46:44.000Z
2021-12-08T10:46:44.000Z
GIPrva/dbo/Views/v_Link_BikeUse.sql
robhubi/GIPrva
d70a1ea94bbf6a2c0c3d26a55161ce7e11819c90
[ "MIT" ]
null
null
null
GIPrva/dbo/Views/v_Link_BikeUse.sql
robhubi/GIPrva
d70a1ea94bbf6a2c0c3d26a55161ce7e11819c90
[ "MIT" ]
null
null
null
CREATE VIEW dbo.v_Link_BikeUse AS SELECT LINK_ID, (ACCESS_TOW | ACCESS_BKW & 0x2) / 2 AS cACC_BIKE, ((ACCESS_TOW & 0x2) - (ACCESS_BKW & 0x2)) / 2 AS cACC_BIKE_ONEWAY, ACCESS_TOW | ACCESS_BKW & 0x1 AS cACC_Hike, (ACCESS_TOW | ACCESS_BKW & 0x4) / 4 AS cACC_Car, ((ACCESS_TOW & 0x4) - (ACCESS_BKW & 0x4)) / 4 AS cACC_Car_Oneway, ACCESS_TOW, ACCESS_BKW, cLONx100, cLATx100, LINE_GEO FROM dbo.Link
40
71
0.656818
3d0d45e84f5fa40d3779539537120723d7ecf9e8
12,646
lua
Lua
src/StarterGui/equipment.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
91
2020-10-28T23:25:05.000Z
2022-03-20T23:01:32.000Z
src/StarterGui/equipment.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
null
null
null
src/StarterGui/equipment.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
32
2020-10-29T00:03:51.000Z
2022-03-30T00:48:42.000Z
local module = {} local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage.modules) local network = modules.load("network") local utilities = modules.load("utilities") local mapping = modules.load("mapping") local enchantment = modules.load("enchantment") local itemData = require(replicatedStorage:WaitForChild("itemData")) local itemAttributes = require(replicatedStorage:WaitForChild("itemAttributes")) local menu = script.Parent.gameUI.menu_equipment local content = menu.content local viewport = menu.character.ViewportFrame local player = game.Players.LocalPlayer function module.show() menu.Visible = not menu.Visible end function module.hide() menu.Visible = false end menu.close.Activated:connect(module.hide) local equipmentSlotPairing = {} local lastSelected function module.init(Modules) local function getInventoryCountLookupTableByItemId() local lookupTable = {} local inventoryLastGot = network:invoke("getCacheValueByNameTag", "inventory") for _, inventorySlotData in pairs(inventoryLastGot) do if lookupTable[inventorySlotData.id] then lookupTable[inventorySlotData.id] = lookupTable[inventorySlotData.id] + (inventorySlotData.stacks or 1) else lookupTable[inventorySlotData.id] = inventorySlotData.stacks or 1 end end return lookupTable end local function onInventoryItemMouseEnter(inventoryItem) lastSelected = inventoryItem local inventorySlotData = equipmentSlotPairing[inventoryItem] if inventorySlotData then local itemBaseData = itemData[inventorySlotData.id] if itemBaseData then network:invoke("populateItemHoverFrame", itemBaseData, "equipment", inventorySlotData) end end end local function onInventoryItemMouseLeave(inventoryItem) if lastSelected == inventoryItem then -- clears last selected network:invoke("populateItemHoverFrame") end end local function getEquipmentDataByEquipmentPosition(equipment, equipmentPosition) for _, equipmentData in pairs(equipment) do if equipmentData.position == equipmentPosition then return equipmentData end end end local function int__updateEquipmentFrame(equipmentDataCollection) equipmentDataCollection = equipmentDataCollection or network:invoke("getCacheValueByNameTag", "equipment") -- reset the previous slot pairing equipmentSlotPairing = {} -- update current equipment slots for _, equipmentSlotData in pairs(equipmentDataCollection) do local positionName = mapping.getMappingByValue("equipmentPosition", equipmentSlotData.position) if positionName and equipmentSlotData.id and content:FindFirstChild(positionName) then local itemBaseData = itemData[equipmentSlotData.id] local itemButton = content[positionName].equipItemButton if itemBaseData then itemButton.Image = itemBaseData.image itemButton.ImageColor3 = Color3.new(1,1,1) if equipmentSlotData.dye then itemButton.ImageColor3 = Color3.fromRGB(equipmentSlotData.dye.r, equipmentSlotData.dye.g, equipmentSlotData.dye.b) end equipmentSlotPairing[itemButton] = equipmentSlotData itemButton.Parent.frame.Visible = true if itemButton.Parent:FindFirstChild("icon") then itemButton.Parent.icon.Visible = false end itemButton.Parent.ImageTransparency = 0 -- itemButton.Parent.shadow.ImageTransparency = 0 itemButton.Parent.title.TextTransparency = 0 itemButton.Parent.title.TextStrokeTransparency = 0.2 local titleColor, itemTier if equipmentSlotData then titleColor, itemTier = Modules.itemAcquistion.getTitleColorForInventorySlotData(equipmentSlotData) end local inventoryItem = itemButton.Parent inventoryItem.attribute.Visible = false if equipmentSlotData.attribute then local attributeData = itemAttributes[equipmentSlotData.attribute] if attributeData and attributeData.color then inventoryItem.attribute.ImageColor3 = attributeData.color inventoryItem.attribute.Visible = true end end inventoryItem.stars.Visible = false local upgrades = equipmentSlotData.successfulUpgrades if upgrades then for i, child in pairs(inventoryItem.stars:GetChildren()) do if child:IsA("ImageLabel") then child.ImageColor3 = titleColor or Color3.new(1,1,1) child.Visible = false elseif child:IsA("TextLabel") then child.TextColor3 = titleColor or Color3.new(1,1,1) child.Visible = false end end inventoryItem.stars.Visible = true if upgrades <= 3 then for i,star in pairs(inventoryItem.stars:GetChildren()) do local score = tonumber(star.Name) if score then star.Visible = score <= upgrades end end inventoryItem.stars.exact.Visible = false else inventoryItem.stars["1"].Visible = true inventoryItem.stars.exact.Visible = true inventoryItem.stars.exact.Text = upgrades end inventoryItem.stars.Visible = true end itemButton.Parent.shine.Visible = titleColor ~= nil and itemTier and itemTier > 1 Modules.fx.setFlash(itemButton.Parent.frame, itemButton.Parent.shine.Visible) itemButton.Parent.frame.ImageColor3 = (itemTier and itemTier > 1 and titleColor) or Color3.fromRGB(106, 105, 107) itemButton.Parent.shine.ImageColor3 = titleColor or Color3.fromRGB(179, 178, 185) if equipmentSlotData.position == mapping.equipmentPosition.weapon then local arrowEqpData = getEquipmentDataByEquipmentPosition(equipmentDataCollection, mapping.equipmentPosition.arrow) local weaponEqpData = getEquipmentDataByEquipmentPosition(equipmentDataCollection, mapping.equipmentPosition.weapon) if weaponEqpData and itemData[weaponEqpData.id].equipmentType == "bow" then if arrowEqpData then local lut = getInventoryCountLookupTableByItemId() content.weapon.ammo.amount.Text = tostring(lut[arrowEqpData.id] or 0) content.weapon.ammo.icon.Image = itemData[arrowEqpData.id].image content.weapon.ammo.Visible = true else content.weapon.ammo.Visible = false end else content.weapon.ammo.Visible = false end end end end end -- reset untouched slots to blank image for _, equipmentSlotUI in pairs(content:GetChildren()) do if equipmentSlotUI:FindFirstChild("frame") and not equipmentSlotPairing[equipmentSlotUI.equipItemButton] then equipmentSlotUI.equipItemButton.Image = "" local itemButton = equipmentSlotUI itemButton.frame.Visible = false itemButton.shine.Visible = false if itemButton:FindFirstChild("icon") then itemButton.icon.Visible = true end itemButton.stars.Visible = false itemButton.attribute.Visible = false itemButton.ImageTransparency = 0 -- itemButton.shadow.ImageTransparency = 0.4 itemButton.title.TextTransparency = 0.6 itemButton.title.TextStrokeTransparency = 0.6 end end if viewport:FindFirstChild("entity") then viewport.entity:Destroy() end if viewport:FindFirstChild("entity2") then viewport.entity2:Destroy() end local camera = viewport.CurrentCamera if camera == nil then camera = Instance.new("Camera") camera.Parent = viewport viewport.CurrentCamera = camera end local client = game.Players.LocalPlayer local character = client.Character local mask = viewport.characterMask local characterAppearanceData = {} characterAppearanceData.equipment = network:invoke("getCacheValueByNameTag", "equipment") characterAppearanceData.accessories = network:invoke("getCacheValueByNameTag", "accessories") local characterRender = network:invoke("createRenderCharacterContainerFromCharacterAppearanceData",mask, characterAppearanceData or {}, client) characterRender.Parent = workspace.CurrentCamera local animationController = characterRender.entity:WaitForChild("AnimationController") local currentEquipment = network:invoke("getCurrentlyEquippedForRenderCharacter", characterRender.entity) local weaponType do if currentEquipment["1"] then weaponType = currentEquipment["1"].baseData.equipmentType end end local track = network:invoke("getMovementAnimationForCharacter", animationController, "idling", weaponType, nil) if track then spawn(function() if characterRender then local entity = characterRender.entity -- entity.Parent = viewport -- characterRender:Destroy() local focus = CFrame.new(entity.PrimaryPart.Position + entity.PrimaryPart.CFrame.lookVector * 6.5, entity.PrimaryPart.Position) * CFrame.new(-1,0,0) camera.CFrame = CFrame.new(focus.p + Vector3.new(0,1.5,0), entity.PrimaryPart.Position + Vector3.new(0,0.5,0)) end if typeof(track) == "Instance" then track:Play() elseif typeof(track) == "table" then for _, obj in pairs(track) do obj:Play() end end while true do wait(0.1) if typeof(track) == "Instance" then if track.Length > 0 then break end elseif typeof(track) == "table" then local isGood = true for ii, obj in pairs(track) do if track.Length == 0 then isGood = false end end if isGood then break end end end if characterRender then local entity = characterRender.entity entity.Parent = viewport characterRender:Destroy() --[[ local focus = CFrame.new(entity.PrimaryPart.Position + entity.PrimaryPart.CFrame.lookVector * 6.3, entity.PrimaryPart.Position) * CFrame.new(-3,0,0) camera.CFrame = CFrame.new(focus.p + Vector3.new(0,1.5,0), entity.PrimaryPart.Position + Vector3.new(0,0.5,0)) ]] end end) else local track = animationController:LoadAnimation(mask.idle) track.Looped = true track.Priority = Enum.AnimationPriority.Idle track:Play() end -- local track = animationController:LoadAnimation(mask.idle) -- track.Looped = true -- track.Priority = Enum.AnimationPriority.Idle -- track:Play() end local function onGetEquipmentSlotDataByEquipmentSlotUI(equipmentSlotUI) return equipmentSlotPairing[equipmentSlotUI] end local levels = Modules.levels local tween = Modules.tween local function onPropogationRequestToSelf(propogationNameTag, propogationValue) if propogationNameTag == "equipment" then int__updateEquipmentFrame(propogationValue) end end module.update = function(...) int__updateEquipmentFrame(...) end local function main() network:connect("propogationRequestToSelf", "Event", onPropogationRequestToSelf) network:create("getEquipmentSlotDataByEquipmentSlotUI", "BindableFunction", "OnInvoke", onGetEquipmentSlotDataByEquipmentSlotUI) for _, item in pairs(menu.content:GetChildren()) do if item:FindFirstChild("equipItemButton") then item.equipItemButton.MouseEnter:connect(function() onInventoryItemMouseEnter(item.equipItemButton) end) item.equipItemButton.MouseLeave:connect(function() onInventoryItemMouseLeave(item.equipItemButton) end) item.equipItemButton.SelectionGained:connect(function() onInventoryItemMouseEnter(item.equipItemButton) end) item.equipItemButton.SelectionLost:connect(function() onInventoryItemMouseLeave(item.equipItemButton) end) item.equipItemButton.Activated:connect(function() if Modules.inventory.isEnchantingEquipment then Modules.inventory.enchantItem(item.equipItemButton) end end) end end end main() -- postInit spawn(function() module.update() print(1) network:connect("signal_isEnchantingEquipmentSet", "Event", function(value, inventorySlotData_enchantment) for _, equipmentButton in pairs(menu.content:GetChildren()) do if equipmentButton:FindFirstChild("equipItemButton") then if value and inventorySlotData_enchantment then local equipmentSlotData = equipmentSlotPairing[equipmentButton.equipItemButton] if equipmentSlotData then equipmentButton.blocked.Visible = false local equipmentBaseData = itemData[equipmentSlotData.id] local itemBaseData_enchantment = itemData[inventorySlotData_enchantment.id] local cost = itemBaseData_enchantment.upgradeCost or 1 local max = equipmentBaseData.maxUpgrades local canEnchant, indexToRemove = enchantment.enchantmentCanBeAppliedToItem(inventorySlotData_enchantment, equipmentSlotData) local blocked = not canEnchant equipmentButton.blocked.Visible = blocked end else equipmentButton.blocked.Visible = false end end end end) end) end return module
34.271003
154
0.746402
c9eb706b9496ec866386aaa68bfbab2e99446b9c
3,200
ts
TypeScript
projects/storefrontlib/src/cms-components/misc/icon/icon-component.spec.ts
skyyuweiwen/spa-cloned
9f0fc77192c9589dd179f59c1d14c7583adc89b0
[ "Apache-2.0" ]
null
null
null
projects/storefrontlib/src/cms-components/misc/icon/icon-component.spec.ts
skyyuweiwen/spa-cloned
9f0fc77192c9589dd179f59c1d14c7583adc89b0
[ "Apache-2.0" ]
null
null
null
projects/storefrontlib/src/cms-components/misc/icon/icon-component.spec.ts
skyyuweiwen/spa-cloned
9f0fc77192c9589dd179f59c1d14c7583adc89b0
[ "Apache-2.0" ]
null
null
null
import { Component, Renderer2 } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { IconLoaderService } from './icon-loader.service'; import { IconModule } from './icon.module'; @Component({ selector: 'cx-icon-test', template: '<cx-icon type="shopping-cart"></cx-icon>', }) export class MockIconTestComponent {} export class MockIconFontLoaderService { useSvg() { return false; } getStyleClasses(iconType) { return [iconType]; } } export class MockSvgIconLoaderService { useSvg() { return true; } getSvgPath(type: string) { return 'icon/path.svg#' + type; } } describe('IconComponent', () => { let component: MockIconTestComponent; let fixture: ComponentFixture<MockIconTestComponent>; describe('font based icons', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [IconModule], declarations: [MockIconTestComponent], providers: [ Renderer2, { provide: IconLoaderService, useClass: MockIconFontLoaderService }, ], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(MockIconTestComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should be created', () => { expect(component).toBeTruthy(); }); it('should not render an inline svg object', () => { const debugElement = fixture.debugElement; const element = debugElement.query(By.css('svg')); expect(element).toBeFalsy(); }); it('should render the icon type in the classlist', () => { const debugElement = fixture.debugElement; const element = debugElement.query(By.css('cx-icon')); expect(element.nativeElement.classList[0]).toEqual('shopping-cart'); }); }); }); describe('IconComponent', () => { let component: MockIconTestComponent; let fixture: ComponentFixture<MockIconTestComponent>; describe('SVG based icons', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [IconModule], declarations: [MockIconTestComponent], providers: [ Renderer2, { provide: IconLoaderService, useClass: MockSvgIconLoaderService }, ], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(MockIconTestComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should be created', () => { expect(component).toBeTruthy(); }); it('should render an inline svg object', () => { const debugElement = fixture.debugElement; const element = debugElement.query(By.css('svg')); expect(element).toBeTruthy(); }); it('should render an svg element that uses a link to an external SVG file', () => { const debugElement = fixture.debugElement; const element = debugElement.query(By.css('svg use')); expect(element.nativeElement.attributes['xlink:href'].value).toBe( 'icon/path.svg#shopping-cart' ); }); }); });
28.318584
87
0.638438
7d6ca647a49a256aef8ed2c2aeb55e0160f9e82b
1,427
lua
Lua
gui/textbox.lua
bizzfuzz/house
03c00ff90e9b8581a493c5b42a229a3ed9104cd9
[ "MIT" ]
null
null
null
gui/textbox.lua
bizzfuzz/house
03c00ff90e9b8581a493c5b42a229a3ed9104cd9
[ "MIT" ]
null
null
null
gui/textbox.lua
bizzfuzz/house
03c00ff90e9b8581a493c5b42a229a3ed9104cd9
[ "MIT" ]
null
null
null
TextBox = Class { init = function(self, label,x,y,w,h) self.x,self.y=x,y self.label=label self.width = w or 200 self.height = h or 80 self.value='' self.set=false self.active=false end; draw = function(self) if self.active then rbox(self.x-5,self.y-5,self.width+5,self.height+5) end box(self.x,self.y,self.width,self.height) love.graphics.print(self.label, self.x+20, self.y+10) love.graphics.print(self.value, self.x+20, self.y+40) end; backspace = function(self) local utf8 = require("utf8") -- get the byte offset to the last UTF-8 character in the string. local byteoffset = utf8.offset(self.value, -1) if byteoffset then -- remove the last UTF-8 character. self.value = string.sub(self.value, 1, byteoffset-1) end end; textinput = function(self,t) self.value = self.value..t end; keypressed = function(self,key) if self.active then if key=='backspace' then self:backspace() elseif key=='return' then self.set=true end end end; mousepressed = function(self,x,y) if colliding(x,y,self) and not self.active then self.active=true return end self.active=false end; }
28.54
73
0.553609
9fed4bbc78710f68c6a6c129f348d88062a6fdd1
887
py
Python
core/preprocessing/base.py
mamalmaleki/machine-learning-a-z
22d812c72e3d1790e7b9d0979a5b07f249168a5f
[ "MIT" ]
null
null
null
core/preprocessing/base.py
mamalmaleki/machine-learning-a-z
22d812c72e3d1790e7b9d0979a5b07f249168a5f
[ "MIT" ]
null
null
null
core/preprocessing/base.py
mamalmaleki/machine-learning-a-z
22d812c72e3d1790e7b9d0979a5b07f249168a5f
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split class BasePreprocessor(): def __init__(self, file_name): self._dataset = pd.read_csv(file_name) self._x = self._dataset.iloc[:, :-1].values self._y = self._dataset.iloc[:, -1].values def get_dataset(self): return self._dataset def get_x(self): return self._x def get_y(self): return self._y def train(self, test_size=0.2): self._x_train, self._x_test, self._y_train, self._y_test \ = train_test_split(self._x, self._y, test_size=test_size) def get_x_train(self): return self._x_train def get_x_test(self): return self._x_test def get_y_train(self): return self._y_train def get_y_test(self): return self._y_train class SimplePreprocessor(BasePreprocessor): pass
22.74359
69
0.655017
e82f4676635e8b0699c81bc751ca2c702afcb145
9,469
cs
C#
Assets/scripts/GenerateMesh.cs
rystills/procedural-mesh-generator
f9177fb4650126c4bb1c2ee405d580e27369cd37
[ "Apache-2.0" ]
8
2017-05-15T20:08:18.000Z
2021-06-24T04:52:00.000Z
Assets/scripts/GenerateMesh.cs
rystills/procedural-mesh-generator
f9177fb4650126c4bb1c2ee405d580e27369cd37
[ "Apache-2.0" ]
9
2017-02-09T07:28:36.000Z
2017-02-23T03:48:35.000Z
Assets/scripts/GenerateMesh.cs
rystills/procedural-mesh-generator
f9177fb4650126c4bb1c2ee405d580e27369cd37
[ "Apache-2.0" ]
2
2017-10-25T11:44:56.000Z
2021-11-14T14:51:43.000Z
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; public class GenerateMesh : MonoBehaviour { public Material material; public Material material2; public List<int> triangles; public VertexDict vertDict; public List<Vector3> vertices; public List<Vector2> uvs; public List<Vector3> normals; Texture2D debugTex; void Awake() { //new mesh lists triangles = new List<int>(); vertDict = new VertexDict(); vertices = new List<Vector3>(); uvs = new List<Vector2>(); normals = new List<Vector3>(); //build debug texture as a fallback if no material is supplied debugTex = new Texture2D(2, 2); debugTex.SetPixel(0, 0, Color.red); debugTex.SetPixel(1, 0, Color.magenta); debugTex.SetPixel(0, 1, Color.blue); debugTex.SetPixel(1, 1, Color.cyan); debugTex.wrapMode = TextureWrapMode.Repeat; debugTex.Apply(); } //utility functions //rotate quaternion quat on axis rotAxis by amount public Quaternion rotateQuaternion(Quaternion quat, Vector3 rotAxis, float amount) { return quat * Quaternion.Euler(rotAxis * amount); } //return Quaternion quat rotated by 180 degrees to face in the opposite direction (useful for flipping normals) public Quaternion flipQuaternion(Quaternion quat) { return (new Quaternion(1, 0, 0, 0)) * quat; } //find and return the rotation of the vertex which corresponds to vertIndex public VertexData getVertData(int vertIndex) { VertexData vert = vertDict.getVert(vertices[vertIndex], normals[vertIndex]); if (vert != null) { return vert; } throw new System.Exception("error: vertex #" + vertIndex + " not found in vertDict"); } //return the normal vector between vectors a,b,c public Vector3 calculateNormal(Vector3 a, Vector3 b, Vector3 c) { Vector3 side1 = b - a; Vector3 side2 = c - a; Vector3 perp = Vector3.Cross(side1, side2); return perp / perp.magnitude; } //core generators //create an additional quad from position[] of size quadsize in direction dir (returns ending position) public Vector3 propagateQuad(Vector3 pos, Quaternion dir, float width, float extents, bool flip = false, float vertSmoothnessThreshold = 0, string uvMode = "per face") { //calculate forward and left vectors from rotation Quaternion Vector3 forwardDir = dir * Vector3.forward; Vector3 leftDir = rotateQuaternion(dir, new Vector3(1, 0, 0), 90) * Vector3.forward; //calculate 3 remaining positions from forward and left vectors Vector3 topRightPos = pos + (forwardDir.normalized * width); Vector3 botLeftPos = pos + (leftDir.normalized * extents); Vector3 topLeftPos = botLeftPos + (forwardDir.normalized * width); return generateQuad(pos, flip ? botLeftPos : topRightPos, flip ? topRightPos : botLeftPos, topLeftPos, vertSmoothnessThreshold, flip? "topRight" : "botLeft", uvMode); } public Vector3 generateQuad(Vector3 botRightPos, Vector3 topRightPos, Vector3 botLeftPos, Vector3? topLeftPos = null, float vertSmoothnessThreshold = 0, string returnPos = "botLeft", string uvMode = "per face") { //calculate normal dir Vector3 normal = calculateNormal(botRightPos, topRightPos, botLeftPos); //generate botRight vert VertexData botRightVert = vertDict.getVert(botRightPos, normal); if (botRightVert == null) { botRightVert = addVert(botRightPos, normal, vertSmoothnessThreshold); addUV(botRightVert, botRightPos, topRightPos, botLeftPos, uvMode); } //generate topRight vert VertexData topRightVert = vertDict.getVert(topRightPos, normal); if (topRightVert == null) { topRightVert = addVert(topRightPos, normal, vertSmoothnessThreshold); addUV(topRightVert, botRightPos, topRightPos, botLeftPos, uvMode); } //generate botLeft vert VertexData botLeftVert = vertDict.getVert(botLeftPos, normal); if (botLeftVert == null) { botLeftVert = addVert(botLeftPos, normal, vertSmoothnessThreshold); addUV(botLeftVert, botRightPos, topRightPos, botLeftPos, uvMode); } //generate topLeft vert, if it exists (otherwise we are just going to build one tri) VertexData topLeftVert = null; if (topLeftPos.HasValue) { topLeftVert = vertDict.getVert(topLeftPos.Value, normal); if (topLeftVert == null) { topLeftVert = addVert(topLeftPos.Value, normal, vertSmoothnessThreshold); addUV(topLeftVert, botRightPos, topRightPos, botLeftPos, uvMode); } } //generate the necessary tris (because this method adds a single quad, we need two new triangles, or 6 points in our list of tris) //first new tri addTri(botRightVert, topRightVert, botLeftVert); //second new tri if (topLeftVert != null) { addTri(topRightVert, topLeftVert, botLeftVert); } return returnPos == "botLeft" ? botLeftPos : topRightPos; } //tri modifiers //simple helper method to add 3 points to the triangles list public void addTri(VertexData vert1, VertexData vert2, VertexData vert3, bool flip = false, bool addTriangleIndices = true) { triangles.Add(flip ? vert3.verticesIndex : vert1.verticesIndex); triangles.Add(vert2.verticesIndex); triangles.Add(flip ? vert1.verticesIndex : vert3.verticesIndex); if (addTriangleIndices) { //add a triangles index to each vert vert1.addTriangleIndex(triangles.Count - (flip ? 1 : 3)); vert1.addTriangleIndex(triangles.Count - 2); vert1.addTriangleIndex(triangles.Count - (flip ? 3 : 1)); } } //vert modifiers //add a new vert with corresponding UVs if xPos,yPos does not already contain one, and add this vert's position in vertices to vertIndicesAxes public VertexData addVert(Vector3 pos, Vector3 normal, float vertSmoothnessthreshold) { //if vert already exists, return it. if not, create it first VertexData newVert = vertDict.getVert(pos, normal); if (newVert == null) { vertices.Add(pos); normals.Add(normal); newVert = vertDict.addVert(vertices.Count - 1, pos, normal); } return newVert; } //UV modifiers //calculate UV for point pos given points a,b,c (pos will typically be equivalent to one of these 3 points) public void addUV(VertexData vertData, Vector3 a, Vector3 b, Vector3 c, string uvMode, bool flip = false) { if (flip) { //change the vertex order when flipping, so that normals are flipped as well Vector3 d = c; c = b; b = d; } Vector3 pos = vertices[vertData.verticesIndex]; if (uvMode == "per face") { uvs.Add(pos == a ? new Vector2(0, 0) : pos == b ? new Vector2(0, 1) : pos == c ? new Vector2(1, 0) : new Vector2(1, 1)); } else if (uvMode == "per face merge duplicates") { //hacky, legacy solution to UV mapping a line of quads with merged verts int id = vertData.verticesIndex; if (id <= 3) { id = 0; } else { id = ((int)((id - 2) / 2)); } uvs.Add(pos == a ? new Vector2(id, id) : pos == b ? new Vector2(id, id + 1) : pos == c ? new Vector2(id + 1, id) : new Vector2(id + 1, id + 1)); } } //normal modifiers //average the normals of verts which have the same position, to create smooth lighting public void averageNormals() { foreach (Dictionary<Quaternion, VertexData> dict in vertDict.verts.Values) { //loop over all verts in each group VertexData[] curVerts = dict.Values.ToArray(); Vector3[] newNormals = new Vector3[curVerts.Length]; for (int r = 0; r < curVerts.Length; ++r) { //loop over all other verts and average with this vert if within max normal difference Vector3 avgNormal = new Vector3(0, 0, 0); int vertsAveraged = 0; for (int i = 0; i < curVerts.Length; ++i) { //calculate average normal if (Vector3.Angle(normals[curVerts[i].verticesIndex], normals[curVerts[r].verticesIndex]) <= VertexDict.normalAverageMaxDifference + VertexDict.smoothnessFloatTolerance) { avgNormal += normals[curVerts[i].verticesIndex]; vertsAveraged++; } } newNormals[r] = avgNormal / (float)vertsAveraged; } for (int i = 0; i < newNormals.Length; ++i) { //apply all new normals at the end, so later normal calculations are not swayed by earlier normal calculations normals[curVerts[i].verticesIndex] = newNormals[i]; } } } //construct the new mesh, and attach the appropriate components public void finalizeMesh(bool useUnityNormals = false, bool smoothNormals = true, bool calculateBounds = false, bool calculateCollider = false) { Mesh mesh = new Mesh(); MeshFilter meshFilter = gameObject.GetComponent<MeshFilter>(); if (!meshFilter) { meshFilter = gameObject.AddComponent<MeshFilter>(); } meshFilter.mesh = mesh; mesh.vertices = vertices.ToArray(); mesh.triangles = triangles.ToArray(); mesh.uv = uvs.ToArray(); if (calculateBounds) { meshFilter.mesh.RecalculateBounds(); } if (useUnityNormals) { meshFilter.mesh.RecalculateNormals(); } else { if (smoothNormals) { averageNormals(); } meshFilter.mesh.normals = normals.ToArray(); } MeshRenderer meshRenderer = gameObject.GetComponent<MeshRenderer>(); if (!meshRenderer) { meshRenderer = gameObject.AddComponent<MeshRenderer>(); } Renderer renderer = meshRenderer.GetComponent<Renderer>(); renderer.material.color = Color.blue; MeshCollider meshCollider = gameObject.GetComponent<MeshCollider>(); if (calculateCollider) { if (!meshCollider) { meshCollider = gameObject.AddComponent<MeshCollider>(); } meshCollider.sharedMesh = mesh; } if (material) { renderer.material = material; } else { renderer.material.mainTexture = debugTex; renderer.material.color = Color.white; } } }
39.128099
213
0.718555
38ad43c3d3bedc8d7afb60fe711b943dd4b2acfb
1,261
php
PHP
src/Model/Validator/InValidator.php
Stratafw/strata
5ce649779471ebc5aa7d70b21ce74ab48457c57f
[ "MIT" ]
null
null
null
src/Model/Validator/InValidator.php
Stratafw/strata
5ce649779471ebc5aa7d70b21ce74ab48457c57f
[ "MIT" ]
1
2015-04-28T19:09:54.000Z
2015-04-28T19:09:54.000Z
src/Model/Validator/InValidator.php
Stratafw/strata
5ce649779471ebc5aa7d70b21ce74ab48457c57f
[ "MIT" ]
null
null
null
<?php namespace Strata\Model\Validator; use Exception; class InValidator extends Validator { /** * {@inheritdoc} */ public function init() { $this->setMessage(__("This is not a valid selection.", $this->getTextdomain())); } /** * {@inheritdoc} */ public function test($value, $context) { // We are not validating for the equivalent of required. if (empty($value)) { return true; } $allowed = $this->getAllowedValues(); return in_array((int)$value, array_keys($allowed)); } public function configure($values) { // Prevent parent configure() to make sure // the indexes don't normalize if (is_array($values)) { $this->configuration = $values; } } private function getAllowedValues() { $configuration = $this->configuration; if (is_array($configuration)) { if (count($configuration) === 1 && is_callable(reset($configuration))) { return call_user_func(reset($configuration)); } return $configuration; } throw new Exception("InValidator received an incorrect type of allowed object."); } }
22.517857
89
0.565424
0364b167b5aa155d9e7277d875610bc905f49d52
5,574
rb
Ruby
lib/msfrpc-simple/module_mapper.rb
pwnieexpress/msfrpc-simple
751460d0eceb23c486ca7113928a13525a8a1311
[ "BSD-3-Clause" ]
2
2016-01-12T17:54:37.000Z
2020-03-25T05:21:41.000Z
lib/msfrpc-simple/module_mapper.rb
pentestify/msfrpc-simple
24e4f1536ef8facddaf08e304a340c0903762a37
[ "BSD-3-Clause" ]
null
null
null
lib/msfrpc-simple/module_mapper.rb
pentestify/msfrpc-simple
24e4f1536ef8facddaf08e304a340c0903762a37
[ "BSD-3-Clause" ]
2
2015-09-17T03:29:17.000Z
2020-03-25T05:21:42.000Z
module Msf module RPC module Simple module ModuleMapper # Public: Get all discovery modules, given a host endpoint # # This method may seem poorly abstracted but you must pass in an IP address # in order to compensate for the different ways that modules accept an # endpoint. For example, scanners need an RHOSTS option, while most other # modules will accept a RHOST option. # # Returns a list of hashes, each one containing: # [ # { :ip_address, # :port_num, # :protocol, # :transport, # :modules_and_options => [ { :module_name, :module_option_string }, ...], # }, ... # ] def self.get_discovery_modules_for_endpoints(endpoints) # # Iterate through the endpoints, assigning modules # endpoints_with_modules = [] endpoints.each do |endpoint| endpoints_with_modules << get_discovery_modules_for_endpoint(endpoint) end endpoints_with_modules end # Public: Returns all discovery modules for a singular endpoint # # An endpoint looks like: # # { :ip_address, # :port_num, # :protocol, # :transport, # :modules_and_options => [ { :module_name, :module_option_string }, ...], # } # # Returns the endpoint object def self.get_discovery_modules_for_endpoint(endpoint) # If we have an unknown protocol, fall back to guessing by port endpoint[:protocol] = get_protocol_by_port_num(endpoint) unless endpoint[:protocol] # Start out with an empty modules_and_options array endpoint[:modules_and_options] = [] # Now iterate through our protocols, assigning modules & optionss # # FTP # if endpoint[:protocol] == "FTP" endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/ftp/ftp_version", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } # # TELNET # elsif endpoint[:protocol] == "TELNET" endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/telnet/telnet_version", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } # # HTTP # elsif endpoint[:protocol] == "HTTP" endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/http/http_version", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } # # SNMP # elsif endpoint[:protocol] == "SNMP" endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/snmp/snmp_enum", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/snmp/snmp_enumshares", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/snmp/snmp_enumusers", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } # # HTTPS # elsif endpoint[:protocol] == "HTTPS" endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/http/http_version", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } endpoint[:modules_and_options] << { :module_name => "auxiliary/scanner/http/cert", :module_option_string => "RHOSTS #{endpoint[:ip_address]}, RPORT #{endpoint[:port_num]}" } # # Unknown protocol # else end # Return the modified endpoint endpoint end # Public: Returns a guessed protocol based on transport and port num # # Returns a protocol (string) def self.get_protocol_by_port_num(endpoint) #return endpoint[:protocol] unless endpoint[:protocol] == nil protocol = nil if endpoint[:transport] == "TCP" if endpoint[:port_num] == 21 protocol = "FTP" elsif endpoint[:port_num] == 23 protocol = "TELNET" elsif endpoint[:port_num] == 80 protocol = "HTTP" elsif endpoint[:port_num] == 443 protocol = "HTTPS" elsif endpoint[:port_num] == 8080 protocol = "HTTP" end elsif endpoint[:transport] == "UDP" if endpoint[:port_num] == 161 protocol = "SNMP" end else raise "Unknown Transport" end protocol end end end end end
37.409396
106
0.518299
0db91720d5a279b2cd5cf5663f449ed0aeffe48f
2,063
dart
Dart
test/hydrated_bloc_storage_test.dart
misterfourtytwo/hydrated_bloc
ff623a2f975a35d99049a3e7ef132c50434ecdbe
[ "MIT" ]
null
null
null
test/hydrated_bloc_storage_test.dart
misterfourtytwo/hydrated_bloc
ff623a2f975a35d99049a3e7ef132c50434ecdbe
[ "MIT" ]
null
null
null
test/hydrated_bloc_storage_test.dart
misterfourtytwo/hydrated_bloc
ff623a2f975a35d99049a3e7ef132c50434ecdbe
[ "MIT" ]
null
null
null
import 'dart:io'; import 'dart:convert'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:hydrated_bloc/hydrated_bloc.dart'; void main() { group('HydratedBlocStorage', () { const MethodChannel channel = MethodChannel('plugins.flutter.io/path_provider'); String response = '.'; HydratedBlocStorage hydratedStorage; channel.setMockMethodCallHandler((MethodCall methodCall) async { return response; }); tearDown(() { hydratedStorage.clear(); }); group('read', () { test('returns null when file does not exist', () async { hydratedStorage = await HydratedBlocStorage.getInstance(); expect( hydratedStorage.read('CounterBloc'), isNull, ); }); test('returns correct value when file exists', () async { File('./.hydrated_bloc.json').writeAsStringSync(json.encode({ "CounterBloc": {"value": 4} })); hydratedStorage = await HydratedBlocStorage.getInstance(); expect(hydratedStorage.read('CounterBloc')['value'] as int, 4); }); }); group('write', () { test('writes to file', () async { hydratedStorage = await HydratedBlocStorage.getInstance(); await Future.wait(<Future<void>>[ hydratedStorage.write('CounterBloc', json.encode({"value": 4})), ]); expect(hydratedStorage.read('CounterBloc'), '{"value":4}'); }); }); group('clear', () { test('calls deletes file, clears storage, and resets instance', () async { hydratedStorage = await HydratedBlocStorage.getInstance(); await Future.wait(<Future<void>>[ hydratedStorage.write('CounterBloc', json.encode({"value": 4})), ]); expect(hydratedStorage.read('CounterBloc'), '{"value":4}'); await hydratedStorage.clear(); expect(hydratedStorage.read('CounterBloc'), isNull); expect(File('./.hydrated_bloc.json').existsSync(), false); }); }); }); }
31.257576
80
0.614639
c6b714b1307ffae42b91d2acf7253e138b1d3278
16,500
py
Python
sppas/sppas/src/anndata/anndataexc.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/anndataexc.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/anndataexc.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ analysis ___/ | | | | ___/ of speech http://www.sppas.org/ Use of this software is governed by the GNU Public License, version 3. SPPAS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SPPAS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SPPAS. If not, see <http://www.gnu.org/licenses/>. This banner notice must not be removed. --------------------------------------------------------------------- src.anndata.anndataexc.py ~~~~~~~~~~~~~~~~~~~~~~~~~~ Exceptions for anndata package. :author: Brigitte Bigi :organization: Laboratoire Parole et Langage, Aix-en-Provence, France :contact: [email protected] :license: GPL, v3 :copyright: Copyright (C) 2011-2018 Brigitte Bigi """ from sppas.src.config import sg from sppas.src.config import error # ----------------------------------------------------------------------- class AnnDataError(Exception): """:ERROR 1000:. No annotated data file is defined. """ def __init__(self): self.parameter = error(1000) + (error(1000, "anndata")) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataEqError(Exception): """:ERROR 1010:. Values are expected to be equals but are {:s!s} and {:s!s}. """ def __init__(self, v1, v2): self.parameter = error(1010) + \ (error(1010, "anndata")).format(v1, v2) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataTypeError(TypeError): """:ERROR 1100:. {!s:s} is not of the expected type '{:s}'. """ def __init__(self, rtype, expected): self.parameter = error(1100) + \ (error(1100, "anndata")).format(rtype, expected) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnUnkTypeError(TypeError): """:ERROR 1050:. {!s:s} is not a valid type. """ def __init__(self, rtype): self.parameter = error(1050) + \ (error(1050, "anndata")).format(rtype) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataIndexError(IndexError): """:ERROR 1200:. Invalid index value {:d}. """ def __init__(self, index): self.parameter = error(1200) + \ (error(1200, "anndata")).format(index) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataEqTypeError(TypeError): """:ERROR 1105:. {!s:s} is not of the same type as {!s:s}. """ def __init__(self, obj, obj_ref): self.parameter = error(1105) + \ (error(1105, "anndata")).format(obj, obj_ref) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataValueError(ValueError): """:ERROR 1300:. Invalid value '{!s:s}' for '{!s:s}'. """ def __init__(self, data_name, value): self.parameter = error(1300) + \ (error(1300, "anndata")).format(value, data_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataNegValueError(ValueError): """:ERROR 1310:. Expected a positive value. Got '{:f}'. """ def __init__(self, value): self.parameter = error(1310) + \ (error(1310, "anndata")).format(value) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AnnDataKeyError(KeyError): """:ERROR 1250:. Invalid key '{!s:s}' for data '{!s:s}'. """ def __init__(self, data_name, value): self.parameter = error(1250) + \ (error(1250, "anndata")).format(value, data_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class IntervalBoundsError(ValueError): """:ERROR 1120:. The begin must be strictly lesser than the end in an interval. Got: [{:s};{:s}]. """ def __init__(self, begin, end): self.parameter = error(1120) + \ (error(1120, "anndata")).format(begin, end) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class CtrlVocabContainsError(ValueError): """:ERROR 1130:. {:s} is not part of the controlled vocabulary. """ def __init__(self, tag): self.parameter = error(1130) + \ (error(1130, "anndata")).format(tag) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class CtrlVocabSetTierError(ValueError): """:ERROR 1132:. The controlled vocabulary {:s} can't be associated to the tier {:s}. """ def __init__(self, vocab_name, tier_name): self.parameter = error(1132) + \ (error(1132, "anndata")).format(vocab_name, tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TierAppendError(ValueError): """:ERROR 1140:. Can't append annotation. Current end {!s:s} is highest than the given one {!s:s}. """ def __init__(self, cur_end, ann_end): self.parameter = error(1140) + \ (error(1140, "anndata")).format(cur_end, ann_end) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TierAddError(ValueError): """:ERROR 1142:. Can't add annotation. An annotation with the same location is already in the tier at index {:d}. """ def __init__(self, index): self.parameter = error(1142) + \ (error(1142, "anndata")).format(index) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TierHierarchyError(ValueError): """:ERROR 1144:. Attempt a modification in tier '{:s}' that invalidates its hierarchy. """ def __init__(self, name): self.parameter = error(1144) + \ (error(1144, "anndata")).format(name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TrsAddError(ValueError): """:ERROR 1150:. Can't add: '{:s}' is already in '{:s}'. """ def __init__(self, tier_name, transcription_name): self.parameter = error(1150) + \ (error(1150, "anndata")).format( tier_name, transcription_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TrsRemoveError(ValueError): """:ERROR 1152:. Can't remove: '{:s}' is not in '{:s}'. """ def __init__(self, tier_name, transcription_name): self.parameter = error(1152) + \ (error(1152, "anndata")).format(tier_name, transcription_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TrsInvalidTierError(ValueError): """:ERROR 1160:. {:s} is not a tier of {:s}. It can't be included in its hierarchy. """ def __init__(self, tier_name, transcription_name): self.parameter = error(1160) + \ (error(1160, "anndata")).format(tier_name, transcription_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class HierarchyAlignmentError(ValueError): """:ERROR 1170:. Can't create a time alignment between tiers: '{:s}' is not a superset of '{:s}'." """ def __init__(self, parent_tier_name, child_tier_name): self.parameter = error(1170) + \ (error(1170, "anndata")).format(parent_tier_name, child_tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class HierarchyAssociationError(ValueError): """:ERROR 1172:. Can't create a time association between tiers: '{:s}' and '{:s}' are not supersets of each other. """ def __init__(self, parent_tier_name, child_tier_name): self.parameter = error(1172) + \ (error(1172, "anndata")).format(parent_tier_name, child_tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class HierarchyParentTierError(ValueError): """:ERROR 1174:. The tier can't be added into the hierarchy: '{:s}' has already a link of type {:s} with its parent tier '{:s}'. """ def __init__(self, child_tier_name, parent_tier_name, link_type): self.parameter = error(1174) + \ (error(1174, "anndata")).format(child_tier_name, parent_tier_name, link_type) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class HierarchyChildTierError(ValueError): """:ERROR 1176:. The tier '{:s}' can't be added into the hierarchy: a tier can't be its own child. """ def __init__(self, tier_name): self.parameter = error(1176) + \ (error(1176, "anndata")).format(tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class HierarchyAncestorTierError(ValueError): """:ERROR 1178:. The tier can't be added into the hierarchy: '{:s}' is an ancestor of '{:s}'. """ def __init__(self, child_tier_name, parent_tier_name): self.parameter = error(1178) + \ (error(1178, "anndata")).format(child_tier_name, parent_tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- # AIO # ----------------------------------------------------------------------- class AioError(IOError): """:ERROR 1400:. No such file: '{!s:s}'. """ def __init__(self, filename): self.parameter = error(1400) + \ (error(1400, "anndata")).format(filename) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioEncodingError(UnicodeDecodeError): """:ERROR 1500:. The file {filename} contains non {encoding} characters: {error}. """ def __init__(self, filename, error_msg, encoding=sg.__encoding__): self.parameter = error(1500) + \ (error(1500, "anndata")).format(filename=filename, error=error_msg, encoding=encoding) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioFileExtensionError(IOError): """:ERROR 1505:. Fail formats: unrecognized extension for file {:s}. """ def __init__(self, filename): self.parameter = error(1505) + \ (error(1505, "anndata")).format(filename) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioMultiTiersError(IOError): """:ERROR 1510:. The file format {!s:s} does not support multi-tiers. """ def __init__(self, file_format): self.parameter = error(1510) + \ (error(1510, "anndata")).format(file_format) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioNoTiersError(IOError): """:ERROR 1515:. The file format {!s:s} does not support to save no tiers. """ def __init__(self, file_format): self.parameter = error(1515) + \ (error(1515, "anndata")).format(file_format) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioLineFormatError(IOError): """:ERROR 1520:. Unexpected format string at line {:d}: '{!s:s}'. """ def __init__(self, number, line): self.parameter = error(1520) + \ (error(1520, "anndata")).format(number, line) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioFormatError(IOError): """:ERROR 1521:. Unexpected format about '{!s:s}'. """ def __init__(self, line): self.parameter = error(1521) + \ (error(1521, "anndata")).format(line) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioEmptyTierError(IOError): """:ERROR 1525:. The file format {!s:s} does not support to save empty tiers: {:s}. """ def __init__(self, file_format, tier_name): self.parameter = error(1525) + \ (error(1525, "anndata")).format(file_format, tier_name) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class AioLocationTypeError(TypeError): """:ERROR 1530:. The file format {!s:s} does not support tiers with {:s}. """ def __init__(self, file_format, location_type): self.parameter = error(1530) + \ (error(1530, "anndata")).format(file_format, location_type) def __str__(self): return repr(self.parameter) # ----------------------------------------------------------------------- class TagValueError(ValueError): """:ERROR 1190:. {!s:s} is not a valid tag. """ def __init__(self, tag_str): self.parameter = error(1190) + \ (error(1190, "anndata")).format(tag_str) def __str__(self): return repr(self.parameter)
26.066351
79
0.464667
f9acb47ead73f73361d30cd6648ed347c78c3214
939
html
HTML
towel_foundation/templates/towel/_form_item.html
barseghyanartur/towel-foundation
a2bcb066ff321a13b7cb6284bb09945a837156c1
[ "BSD-3-Clause" ]
1
2019-02-11T14:55:08.000Z
2019-02-11T14:55:08.000Z
towel_foundation/templates/towel/_form_item.html
barseghyanartur/towel-foundation
a2bcb066ff321a13b7cb6284bb09945a837156c1
[ "BSD-3-Clause" ]
1
2019-02-11T18:39:46.000Z
2019-02-11T18:39:46.000Z
towel_foundation/templates/towel/_form_item.html
barseghyanartur/towel-foundation
a2bcb066ff321a13b7cb6284bb09945a837156c1
[ "BSD-3-Clause" ]
2
2015-09-07T09:19:50.000Z
2019-02-11T14:54:17.000Z
{% load foundation_tags %} <div class="{{ additional_classes|default:'' }} {{ item.field.required|yesno:'required,' }} {{ item.errors|yesno:'error,' }} type-{{ type_class }} field-{{ item.name }}" {% if 'date' in type_class %}data-date-format="{% date_format %}"{% endif %} > {% if "hidden" in type_class %} {{ item }} {% elif is_checkbox %} <label for="{{ item.auto_id }}" class="checkbox"> {{ item }} {{ item.label }} {% if item.field.help_text %} <span>{{ item.field.help_text }}</span> {% endif %} </label> {% else %} <label for="{{ item.auto_id }}"> {{ item.label }} {% if item.field.help_text %} <span>{{ item.field.help_text }}</span> {% endif %} </label> {{ item }} {% if item.errors %} <small class="error"> {% for error in item.errors %}{{ error }}<br>{% endfor %} </small> {% endif %} {% endif %} </div>
30.290323
166
0.518637
e29ffbca8d4642949bec32a2f586fdd560922189
1,864
js
JavaScript
v1.js
alpcoskun/nduuid
b24deeb5af853a43090720ddfc2562dbbf38731e
[ "MIT" ]
2
2019-08-12T13:38:06.000Z
2021-01-26T15:22:31.000Z
v1.js
alpcoskun/nduuid
b24deeb5af853a43090720ddfc2562dbbf38731e
[ "MIT" ]
null
null
null
v1.js
alpcoskun/nduuid
b24deeb5af853a43090720ddfc2562dbbf38731e
[ "MIT" ]
null
null
null
const { randomBytes } = require('crypto'); const hexBytes = require('./hexBytes'); let id; let _clockseq; let prevMSecs = 0; let prevNSecs = 0; // Inspired by https://github.com/kelektiv/node-uuid /** * @returns {String} uuid v1 without dashes */ function v1() { const r = []; let i = 0; let node = id; let clockseq = _clockseq; if (node == null || clockseq == null) { let seeds = randomBytes(16); if (node == null) node = id = [ seeds[0] | 0x01, seeds[1], seeds[2], seeds[3], seeds[4], seeds[5] ]; if (clockseq == null) clockseq = _clockseq = ((seeds[6] << 8) | seeds[7]) & 0x3fff; } let mSecs = new Date().getTime(); let nSecs = prevNSecs + 1; let dt = mSecs - prevMSecs + (nSecs - prevNSecs) / 10000; if (dt < 0) clockseq = (clockseq + 1) & 0x3fff; if (dt < 0 || mSecs > prevMSecs) nSecs = 0; prevMSecs = mSecs; prevNSecs = nSecs; _clockseq = clockseq; mSecs += 12219292800000; let tl = ((mSecs & 0xfffffff) * 10000 + nSecs) % 0x100000000; r[i++] = (tl >>> 24) & 0xff; r[i++] = (tl >>> 16) & 0xff; r[i++] = (tl >>> 8) & 0xff; r[i++] = tl & 0xff; let tmh = (mSecs / 0x100000000 * 10000) & 0xfffffff; r[i++] = (tmh >>> 8) & 0xff; r[i++] = tmh & 0xff; r[i++] = ((tmh >>> 24) & 0xf) | 0x10; r[i++] = (tmh >>> 16) & 0xff; r[i++] = (clockseq >>> 8) | 0x80; r[i++] = clockseq & 0xff; for (let n = 0; n < 6; ++n) r[i + n] = node[n]; return ( hexBytes[r[0]] + hexBytes[r[1]] + hexBytes[r[2]] + hexBytes[r[3]] + hexBytes[r[4]] + hexBytes[r[5]] + hexBytes[r[6]] + hexBytes[r[7]] + hexBytes[r[8]] + hexBytes[r[9]] + hexBytes[r[10]] + hexBytes[r[11]] + hexBytes[r[12]] + hexBytes[r[13]] + hexBytes[r[14]] + hexBytes[r[15]] ); } module.exports = v1;
20.26087
67
0.513948
79e0b727f3d68d5a32f3a7fce8854be43fb05c68
5,775
php
PHP
resources/views/layouts/navigation.blade.php
rodrixcornell/webapp-laravel
f4782eb3262d954047758f2972574ae116953637
[ "MIT" ]
null
null
null
resources/views/layouts/navigation.blade.php
rodrixcornell/webapp-laravel
f4782eb3262d954047758f2972574ae116953637
[ "MIT" ]
null
null
null
resources/views/layouts/navigation.blade.php
rodrixcornell/webapp-laravel
f4782eb3262d954047758f2972574ae116953637
[ "MIT" ]
null
null
null
<nav class="navbar navbar-expand-md navbar-dark bg-dark shadow-sm"> <div class="container"> <a class="navbar-brand" href="{{ url('/') }}"> <svg viewBox="0 0 316 316" xmlns="http://www.w3.org/2000/svg" width="30" height="30" class="d-inline-block align-top"> <path d="M305.8 81.125C305.77 80.995 305.69 80.885 305.65 80.755C305.56 80.525 305.49 80.285 305.37 80.075C305.29 79.935 305.17 79.815 305.07 79.685C304.94 79.515 304.83 79.325 304.68 79.175C304.55 79.045 304.39 78.955 304.25 78.845C304.09 78.715 303.95 78.575 303.77 78.475L251.32 48.275C249.97 47.495 248.31 47.495 246.96 48.275L194.51 78.475C194.33 78.575 194.19 78.725 194.03 78.845C193.89 78.955 193.73 79.045 193.6 79.175C193.45 79.325 193.34 79.515 193.21 79.685C193.11 79.815 192.99 79.935 192.91 80.075C192.79 80.285 192.71 80.525 192.63 80.755C192.58 80.875 192.51 80.995 192.48 81.125C192.38 81.495 192.33 81.875 192.33 82.265V139.625L148.62 164.795V52.575C148.62 52.185 148.57 51.805 148.47 51.435C148.44 51.305 148.36 51.195 148.32 51.065C148.23 50.835 148.16 50.595 148.04 50.385C147.96 50.245 147.84 50.125 147.74 49.995C147.61 49.825 147.5 49.635 147.35 49.485C147.22 49.355 147.06 49.265 146.92 49.155C146.76 49.025 146.62 48.885 146.44 48.785L93.99 18.585C92.64 17.805 90.98 17.805 89.63 18.585L37.18 48.785C37 48.885 36.86 49.035 36.7 49.155C36.56 49.265 36.4 49.355 36.27 49.485C36.12 49.635 36.01 49.825 35.88 49.995C35.78 50.125 35.66 50.245 35.58 50.385C35.46 50.595 35.38 50.835 35.3 51.065C35.25 51.185 35.18 51.305 35.15 51.435C35.05 51.805 35 52.185 35 52.575V232.235C35 233.795 35.84 235.245 37.19 236.025L142.1 296.425C142.33 296.555 142.58 296.635 142.82 296.725C142.93 296.765 143.04 296.835 143.16 296.865C143.53 296.965 143.9 297.015 144.28 297.015C144.66 297.015 145.03 296.965 145.4 296.865C145.5 296.835 145.59 296.775 145.69 296.745C145.95 296.655 146.21 296.565 146.45 296.435L251.36 236.035C252.72 235.255 253.55 233.815 253.55 232.245V174.885L303.81 145.945C305.17 145.165 306 143.725 306 142.155V82.265C305.95 81.875 305.89 81.495 305.8 81.125ZM144.2 227.205L100.57 202.515L146.39 176.135L196.66 147.195L240.33 172.335L208.29 190.625L144.2 227.205ZM244.75 114.995V164.795L226.39 154.225L201.03 139.625V89.825L219.39 100.395L244.75 114.995ZM249.12 57.105L292.81 82.265L249.12 107.425L205.43 82.265L249.12 57.105ZM114.49 184.425L96.13 194.995V85.305L121.49 70.705L139.85 60.135V169.815L114.49 184.425ZM91.76 27.425L135.45 52.585L91.76 77.745L48.07 52.585L91.76 27.425ZM43.67 60.135L62.03 70.705L87.39 85.305V202.545V202.555V202.565C87.39 202.735 87.44 202.895 87.46 203.055C87.49 203.265 87.49 203.485 87.55 203.695V203.705C87.6 203.875 87.69 204.035 87.76 204.195C87.84 204.375 87.89 204.575 87.99 204.745C87.99 204.745 87.99 204.755 88 204.755C88.09 204.905 88.22 205.035 88.33 205.175C88.45 205.335 88.55 205.495 88.69 205.635L88.7 205.645C88.82 205.765 88.98 205.855 89.12 205.965C89.28 206.085 89.42 206.225 89.59 206.325C89.6 206.325 89.6 206.325 89.61 206.335C89.62 206.335 89.62 206.345 89.63 206.345L139.87 234.775V285.065L43.67 229.705V60.135ZM244.75 229.705L148.58 285.075V234.775L219.8 194.115L244.75 179.875V229.705ZM297.2 139.625L253.49 164.795V114.995L278.85 100.395L297.21 89.825V139.625H297.2Z" /> </svg> {{ str_replace('_', ' ',config('app.name', 'Laravel')) }} </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <!-- Left Side Of Navbar --> <ul class="navbar-nav mr-auto"> @auth <li class="nav-item active"> <a class="nav-link" href="#">Home<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="#">Action</a> <a class="dropdown-item" href="#">Another action</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="#">Something else here</a> </div> </li> <li class="nav-item"> <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a> </li> @endauth </ul> <!-- Right Side Of Navbar --> <ul class="navbar-nav ml-auto"> <!-- Authentication Links --> @guest @if (Route::has('login')) <li class="nav-item"> <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a> </li> @endif @if (Route::has('register')) <li class="nav-item"> <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a> </li> @endif @else <li class="nav-item dropdown"> <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre> {{ Auth::user()->name }} </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> {{ __('Logout') }} </a> <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none"> @csrf </form> </div> </li> @endguest </ul> </div> </div> </nav>
72.1875
2,952
0.670649
5bd45961f53eca9ba6e10c1c146a5efe816d156d
93
dart
Dart
lib/services/measures/main.dart
google-dsc-comp/tailor_made
f9abdfd24554fc52cf52c6f8fc6b1341b5f00d63
[ "MIT" ]
260
2018-04-14T18:05:49.000Z
2022-03-23T06:34:09.000Z
lib/services/measures/main.dart
jahanzeb-j/tailor_made
f9abdfd24554fc52cf52c6f8fc6b1341b5f00d63
[ "MIT" ]
10
2018-07-14T07:20:51.000Z
2020-04-09T05:38:47.000Z
lib/services/measures/main.dart
jahanzeb-j/tailor_made
f9abdfd24554fc52cf52c6f8fc6b1341b5f00d63
[ "MIT" ]
97
2018-05-03T10:36:18.000Z
2022-03-24T22:10:43.000Z
export './measures.dart'; export './measures_impl.dart'; export './measures_mock_impl.dart';
23.25
35
0.741935
05ab679cdaaa5f7af0c0934683e01ee3b70733ac
251
rb
Ruby
app/models/landing_tool/concerns/archivable.rb
pokrovskyy/landing-tool
7d0c6de1d3d9d845d558e085434da063d6447562
[ "MIT" ]
null
null
null
app/models/landing_tool/concerns/archivable.rb
pokrovskyy/landing-tool
7d0c6de1d3d9d845d558e085434da063d6447562
[ "MIT" ]
null
null
null
app/models/landing_tool/concerns/archivable.rb
pokrovskyy/landing-tool
7d0c6de1d3d9d845d558e085434da063d6447562
[ "MIT" ]
null
null
null
module LandingTool module Concerns::Archivable def archive! update_attribute(:archived_at, DateTime.now) end def unarchive! update_attribute(:archived_at, nil) end def archived? !!archived_at end end end
16.733333
50
0.669323
79abf6dda325429b10a277268298b7eba44eb986
2,352
php
PHP
database/seeds/GallerySeeder.php
agusID/ZooQ
44464d242a8deb5403a6e7aa0e790b3438297e9c
[ "MIT" ]
2
2019-07-21T17:04:52.000Z
2019-07-22T01:54:33.000Z
database/seeds/GallerySeeder.php
agusID/ZooQ
44464d242a8deb5403a6e7aa0e790b3438297e9c
[ "MIT" ]
null
null
null
database/seeds/GallerySeeder.php
agusID/ZooQ
44464d242a8deb5403a6e7aa0e790b3438297e9c
[ "MIT" ]
null
null
null
<?php use Illuminate\Database\Seeder; use App\Gallery; use Carbon\Carbon; class GallerySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $gallery = new Gallery(); $arr = [ [ 'title' => 'Ikan and Molusca', 'description' => 'An animal kind that live in water.', 'image' => '4.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Serak', 'description' => 'A bird that looks like an owl.', 'image' => '1.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Map', 'description' => 'A helpful piece of information.', 'image' => '3.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Orang utan', 'description' => 'Monkey full of intelligence', 'image' => '2.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Hall', 'description' => 'Road to knowledge', 'image' => '6.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'The largest whale in Indonesia', 'description' => 'Skeleton of Balaenoptera musculus (blue whale).', 'image' => '5.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Insect', 'description' => 'Six to eight legged animal.', 'image' => '7.jpg', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], ]; $gallery->insert($arr); } }
30.947368
85
0.36352
ed6eabb11b410208a9433bc45f0c107ae3b608a7
215
c
C
uReverseNum.c
CajjadCodes/OS-xv6
b4893c8b4ecd3e41f0d3437ebd38f7c12cc25077
[ "MIT-0" ]
null
null
null
uReverseNum.c
CajjadCodes/OS-xv6
b4893c8b4ecd3e41f0d3437ebd38f7c12cc25077
[ "MIT-0" ]
null
null
null
uReverseNum.c
CajjadCodes/OS-xv6
b4893c8b4ecd3e41f0d3437ebd38f7c12cc25077
[ "MIT-0" ]
null
null
null
#include "types.h" #include "stat.h" #include "user.h" int main(int argc, char* argv[]) { int num = atoi(argv[argc - 1]); asm volatile("movl %0, %%edi"::"r"(num)); printf(1, "%d\n", reverse_number()); exit(); }
17.916667
42
0.595349
ff84b1e4e49d98416de0e15742ea8bea0e9b413f
3,142
py
Python
lesson05/lesson05_hard.py
Liar-Ziro/Python.Basics_of_language
c5f9c0f7e0681df57653014038316b8b837a3ee4
[ "MIT" ]
null
null
null
lesson05/lesson05_hard.py
Liar-Ziro/Python.Basics_of_language
c5f9c0f7e0681df57653014038316b8b837a3ee4
[ "MIT" ]
1
2019-04-08T13:53:27.000Z
2019-04-08T13:54:34.000Z
lesson05/lesson05_hard.py
Liar-Ziro/Python.Basics_of_language
c5f9c0f7e0681df57653014038316b8b837a3ee4
[ "MIT" ]
2
2021-05-09T09:40:42.000Z
2022-01-06T01:49:19.000Z
'''Задание-1: Доработайте реализацию программы из примера examples/5_with_args.py, добавив реализацию следующих команд (переданных в качестве аргументов): cp <file_name> - создает копию указанного файла rm <file_name> - удаляет указанный файл (запросить подтверждение операции) cd <full_path or relative_path> - меняет текущую директорию на указанную ls - отображение полного пути текущей директории путь считать абсолютным (full_path) - в Linux начинается с /, в Windows с имени диска, все остальные пути считать относительными. Важно! Все операции должны выполняться в той директории, в который вы находитесь. Исходной директорией считать ту, в которой был запущен скрипт. P.S. По возможности, сделайте кросс-платформенную реализацию.''' import os import shutil import sys print('sys.argv = ', sys.argv) def print_help(): print("help - получение справки") print("mkdir <dir_name> - создание директории") print("ping - тестовый ключ") print("cp <dir_name> - создание копии файла") print("rm <file_name> - удаляет указанный файл ") print("cd <full_path or relative_path> - меняет текущую директорию \ на указанную") def make_dir(): if not dir_name: print("Необходимо указать имя директории вторым параметром") return dir_path = os.path.join(os.getcwd(), dir_name) try: os.mkdir(dir_path) print('директория {} создана'.format(dir_name)) except FileExistsError: print('директория {} уже существует'.format(dir_name)) def ping(): print("pong") def cp_file(): if not dir_name: print("Необходимо указать имя копируемого файла") return file_path = os.path.join(os.getcwd(), dir_name) new_file = file_path + ".copy" shutil.copy(file_path, new_file) if os.path.isfile(new_file): print(f"Копия файла {dir_name} создана") def rm_file(): if not dir_name: print("Необходимо указать имя копируемого файла") return file_path = os.path.join(os.getcwd(), dir_name) if os.path.exists(file_path): answer = input(f"Удалить файл {dir_name} [Y/N] ").lower() print(answer) if answer == "y": os.remove(file_path) if not os.path.exists(file_path): print(f"Файл {dir_name} успешно удалён.") else: print("Удаление файла отменено.") def cd_dir(): '''Странная команда. Смена директории происходит в текущем процессе, который сразу и завершается.''' if not dir_name: print("Необходимо указать директорию.") return path = os.path.abspath(dir_name) os.chdir(path) if os.getcwd() == path: print(f"Текущая директория изменена на {os.getcwd()}") do = { "help": print_help, "mkdir": make_dir, "ping": ping, "cp": cp_file, "rm": rm_file, "cd": cd_dir } try: dir_name = sys.argv[2] except IndexError: dir_name = None try: key = sys.argv[1] except IndexError: key = None if key: if do.get(key): do[key]() else: print("Задан неверный ключ") print("Укажите ключ help для получения справки")
26.854701
76
0.663908
eb95442a7bcf88e224450153c6bed079e06c217d
1,858
css
CSS
data/usercss/141722.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
118
2020-08-28T19:59:28.000Z
2022-03-26T16:28:40.000Z
data/usercss/141722.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
38
2020-09-02T01:08:45.000Z
2022-01-23T02:47:24.000Z
data/usercss/141722.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
21
2020-08-19T01:12:43.000Z
2022-03-15T21:55:17.000Z
/* ==UserStyle== @name Seasonal Brick-Hill themes @namespace USO Archive @author Nelots @description `The original Brick-Hill seasonal themes (Summer and Winter).Note: The Summer style is still accessible by using inspect element (along with an extra autumn theme I haven't uploaded), I just uploaded it for the sake of simplicity and in case it's removed from the site later on.` @version 20170531.13.49 @license NO-REDISTRIBUTION @preprocessor uso @advanced dropdown theme "Choose a theme" { summer "Summer*" <<<EOT #banner { height: 100px; background-image: url("http://i.imgur.com/as5GW1T.png"); padding-top: 0px; margin-top: 66px; } body { background-image: url("http://i.imgur.com/k6IiHL1.png"); background-size: 25%, contain; background-repeat: repeat, repeat-y } #navbar, #info, #welcome { background-color: #c2a15a; background-image: url(http://www.brick-hill.com/assets/transparentPixel.png)!important; } input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button, select { background-color: #c2a15a; } #footer { background: #826c3d; } th { background-color: #c2a15a; } EOT; winter "Winter" <<<EOT #banner { height: 100px; background-image: url("http://i.imgur.com/doYdgm4.png"); padding-top: 0px; margin-top: 66px; } body { background-image: url("http://i.imgur.com/oQM03Jd.png"), url("http://i.imgur.com/MogQ0Zr.png"); background-size: 25%, contain; background-repeat: repeat, repeat-y } EOT; } ==/UserStyle== */ @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("www.brick-hill.com") { /*[[theme]]*/ }
30.459016
295
0.623251
e30d03c1141b9ad0ebaaba52f8e0e636ae093849
299
rb
Ruby
apps/api/db/migrate/20210508215333_relation_task_users.rb
andronedev/checkmark
5901996b55cc3ee3fa75eccefbfcbe28fd1e7d97
[ "MIT" ]
3
2021-08-01T09:52:29.000Z
2021-11-07T20:49:00.000Z
apps/api/db/migrate/20210508215333_relation_task_users.rb
andronedev/checkmark
5901996b55cc3ee3fa75eccefbfcbe28fd1e7d97
[ "MIT" ]
6
2021-08-01T12:31:11.000Z
2021-08-07T15:59:39.000Z
apps/api/db/migrate/20210508215333_relation_task_users.rb
andronedev/checkmark
5901996b55cc3ee3fa75eccefbfcbe28fd1e7d97
[ "MIT" ]
2
2021-08-01T10:01:48.000Z
2021-08-01T10:09:47.000Z
# frozen_string_literal: true class RelationTaskUsers < ActiveRecord::Migration[6.1] def up create_table :task_mentions, id: false do |t| t.belongs_to :user, foreign_key: true t.belongs_to :task, foreign_key: true end end def down drop_table :task_mentions end end
19.933333
54
0.70903
ef6a98459b7102bd79554c5ce3ae3e8733d122d6
61
js
JavaScript
src/Options/selectors.js
ganong/sudoku
495c9300d7dda16d128e89920ad13d6d3fa1fae1
[ "MIT" ]
null
null
null
src/Options/selectors.js
ganong/sudoku
495c9300d7dda16d128e89920ad13d6d3fa1fae1
[ "MIT" ]
4
2021-09-01T19:49:54.000Z
2022-02-26T15:49:37.000Z
src/Options/selectors.js
ganong/sudoku
495c9300d7dda16d128e89920ad13d6d3fa1fae1
[ "MIT" ]
null
null
null
export const getEasyMode = state => state.options.easyMode;
20.333333
59
0.770492
23f2d2a36a9514ba2fae5c1599cdcae935ecfb70
440
js
JavaScript
src/utils.js
m-yoshiro/DesignToken2Code
3a303f179d13457740572578e81b3741073396a9
[ "MIT" ]
13
2018-11-27T20:19:08.000Z
2020-05-06T17:04:20.000Z
src/utils.js
m-yoshiro/DesignToken2Code
3a303f179d13457740572578e81b3741073396a9
[ "MIT" ]
4
2018-09-17T23:16:33.000Z
2019-01-16T14:35:18.000Z
src/utils.js
m-yoshiro/DesignToken2Code
3a303f179d13457740572578e81b3741073396a9
[ "MIT" ]
1
2019-02-06T18:09:13.000Z
2019-02-06T18:09:13.000Z
/** * Utilities. * @module Utils */ /** * Escape special characters in a variable for using RegExp. * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions} * @param {string} pattern - the pattern of RegExp. * @return {regexp} regexp escaped special characters. */ module.exports.escapeRegExp = pattern => pattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') // $& means the whole matched string
31.428571
96
0.670455
33c856c69dcaa7c32877d0a3471aaeaa9ad64da7
3,893
h
C
lib/xml/XmlReader.h
Erin59/sinsy0.91
249bd757c975436824b88aa773ecb4078eb4d696
[ "Unlicense" ]
1
2018-12-17T08:41:19.000Z
2018-12-17T08:41:19.000Z
lib/xml/XmlReader.h
Erin59/sinsy0.91
249bd757c975436824b88aa773ecb4078eb4d696
[ "Unlicense" ]
null
null
null
lib/xml/XmlReader.h
Erin59/sinsy0.91
249bd757c975436824b88aa773ecb4078eb4d696
[ "Unlicense" ]
1
2019-09-24T05:52:54.000Z
2019-09-24T05:52:54.000Z
/* ----------------------------------------------------------------- */ /* The HMM-Based Singing Voice Synthesis System "Sinsy" */ /* developed by Sinsy Working Group */ /* http://sinsy.sourceforge.net/ */ /* ----------------------------------------------------------------- */ /* */ /* Copyright (c) 2009-2013 Nagoya Institute of Technology */ /* Department of Computer Science */ /* */ /* All rights reserved. */ /* */ /* Redistribution and use in source and binary forms, with or */ /* without modification, are permitted provided that the following */ /* conditions are met: */ /* */ /* - Redistributions of source code must retain the above copyright */ /* notice, this list of conditions and the following disclaimer. */ /* - Redistributions in binary form must reproduce the above */ /* copyright notice, this list of conditions and the following */ /* disclaimer in the documentation and/or other materials provided */ /* with the distribution. */ /* - Neither the name of the Sinsy working group nor the names of */ /* its contributors may be used to endorse or promote products */ /* derived from this software without specific prior written */ /* permission. */ /* */ /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ /* POSSIBILITY OF SUCH DAMAGE. */ /* ----------------------------------------------------------------- */ #ifndef SINSY_XML_READER_H_ #define SINSY_XML_READER_H_ #include "ForEachAdapter.h" #include "Beat.h" #include "TempScore.h" #include "XmlData.h" #include "IScoreWriter.h" #include "XmlParser.h" namespace sinsy { class XmlReader : public IScoreWriter { public: //! constructor XmlReader(); //! destructor virtual ~XmlReader(); //! clear; void clear(); //! write to score (operator << should be used) void write(IScoreWritable& writable) const; //! read xml from stream bool readXml(IReadableStream& stream); //! get xml data const XmlData* getXmlData() const; private: //! copy constructor (donot use) XmlReader(const XmlReader&); //! assignment operator (donot use) XmlReader& operator=(const XmlReader&); //! initialize xml data void initXmlData(); //! xml parser XmlParser parser; //! xml data XmlData* xmlData; //! encoding std::string encoding; //! part tag XmlData* part; }; }; #endif // SINSY_XML_CONVERTER_H_
38.166667
71
0.520678
5887ca639189231c6f4ba8c5be2b4a0452c3dbfb
7,031
php
PHP
resources/views/admin/merchants/fixed/content.blade.php
icaterall/ezeat
bf250bbea0dd3c744565df9bdce06e52236619eb
[ "MIT" ]
1
2021-08-01T11:05:22.000Z
2021-08-01T11:05:22.000Z
resources/views/admin/merchants/fixed/content.blade.php
icaterall/ezeat
bf250bbea0dd3c744565df9bdce06e52236619eb
[ "MIT" ]
null
null
null
resources/views/admin/merchants/fixed/content.blade.php
icaterall/ezeat
bf250bbea0dd3c744565df9bdce06e52236619eb
[ "MIT" ]
null
null
null
<style type="text/css"> .pl-8, .px-8 { padding-left: 0rem !important; } </style> <div class="content d-flex flex-column flex-column-fluid" id="kt_content"> <!--begin::Subheader--> <div class="subheader py-2 py-lg-6 subheader-transparent" id="kt_subheader"> <div class="container d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap"> <!--begin::Info--> <div class="d-flex align-items-center flex-wrap mr-2"> <!--begin::Page Title--> <h5 class="text-dark font-weight-bold mt-2 mb-2 mr-5">Dashboard</h5> <!--end::Page Title--> <!--begin::Action--> <div class="subheader-separator subheader-separator-ver mt-2 mb-2 mr-4 bg-gray-200"></div> <!--end::Action--> </div> <!--end::Info--> <!--begin::Toolbar--> <div class="d-flex align-items-center flex-wrap"> <!--begin::Actions--> <!--end::Actions--> <!--begin::Daterange--> <a href="#" class="btn btn-bg-white font-weight-bold mr-3 my-2 my-lg-0" id="kt_dashboard_daterangepicker" data-toggle="tooltip" title="Select dashboard daterange" data-placement="left"> <span class="text-muted font-weight-bold mr-2" id="kt_dashboard_daterangepicker_title">Today</span> <span class="text-primary font-weight-bolder" id="kt_dashboard_daterangepicker_date"></span> </a> <!--end::Daterange--> </div> <!--end::Toolbar--> </div> </div> <!--end::Subheader--> <!--begin::Entry--> <div class="d-flex flex-column-fluid"> <!--begin::Container--> <div class="container"> <!--begin::Dashboard--> <!--begin::Row--> <div class="row"> <div class="col-lg-6 col-xxl-4"> <!--begin::Mixed Widget 4--> <div class="card card-custom bg-radial-gradient-danger gutter-b card-stretch"> <!--begin::Header--> <div class="card-header border-0 py-5"> <h3 class="card-title font-weight-bolder text-white">Sales Progress</h3> </div> <!--end::Header--> <!--begin::Body--> <div class="card-body d-flex flex-column p-0"> <!--begin::Chart--> <!--end::Chart--> <!--begin::Stats--> <div class="card-spacer bg-white card-rounded flex-grow-1"> <!--begin::Row--> <div class="row m-0"> <div class="col px-8 py-6 mr-8"> <div class="font-size-sm text-muted font-weight-bold">Sales</div> <div class="font-size-h4 font-weight-bolder">MYR {{$payment_summary['restaurant_payment']}}</div> </div> <div class="col px-8 py-6"> <div class="font-size-sm text-muted font-weight-bold">Earning</div> <div class="font-size-h4 font-weight-bolder">MYR {{$payment_summary['restaurant_payment_pending']}}</div> </div> </div> <!--end::Row--> <!--end::Row--> </div> <!--end::Stats--> </div> <!--end::Body--> </div> <!--end::Mixed Widget 4--> </div> <div class="col-lg-6 col-xxl-8"> <!--begin::Advance Table Widget 1--> <div class="card card-custom card-stretch gutter-b"> <!--begin::Header--> @include('admin.merchants.orders.datatable') <!--end::Header--> <!--begin::Body--> <div class="card-body py-0"> <!--begin::Table--> <!--end::Table--> </div> <!--end::Body--> </div> <!--end::Advance Table Widget 1--> </div> </div> <!--end::Row--> <!--end::Dashboard--> </div> <!--end::Container--> </div> <!--end::Entry--> </div>
65.101852
221
0.281752
43e33c1a24f4dec79cde810404eeb21682733a57
4,739
tsx
TypeScript
src/WebUI/ClientApp/src/pages/BookPage.tsx
smirnov-coder/skills-test-3
4f6e0daed52984748f93ebcc25b1dff96fd9f2ac
[ "MIT" ]
null
null
null
src/WebUI/ClientApp/src/pages/BookPage.tsx
smirnov-coder/skills-test-3
4f6e0daed52984748f93ebcc25b1dff96fd9f2ac
[ "MIT" ]
1
2020-06-25T15:47:57.000Z
2020-06-25T15:47:57.000Z
src/WebUI/ClientApp/src/pages/BookPage.tsx
smirnov-coder/skills-test-3
4f6e0daed52984748f93ebcc25b1dff96fd9f2ac
[ "MIT" ]
null
null
null
import React, { useState, SyntheticEvent, useEffect } from 'react'; import { useParams } from 'react-router-dom'; import { useSelector } from "react-redux"; import { RootState } from '../store'; import { useBooksAPI } from "../hooks/useBooksAPI"; import { Book } from '../models/book'; export interface BookPageProps { mode: "create" | "edit"; } // Компонент страницы для создания/редактирования книги. Поведение компонента определяется режимом, // передаваемым в props. export default function BookPage(props: BookPageProps) { // Режим компонента. const mode = props.mode; // Параметр маршрута 'id' для редактирования книги. const { id } = useParams(); // Компонент использует redux-модуль books. const books = useSelector((state: RootState) => state.books); const { createBook, getBook, updateBook } = useBooksAPI(); // Пустые данные книги (для очистки полей ввода). const transientBook: Book = { id: 0, title: "", author: "", genre: "", year: new Date().getFullYear() }; // Состояние компонента // - bookData: данные книги, создаваемой или редактируемой; // - message: сообщение о результате операции. const [bookData, setBookData] = useState(books.current); const [message, setMessage] = useState<string | null>(null); // Подпишимся на обновление redux-модуля books. useEffect(() => { setBookData(books.current); }, [books.current]); useEffect(() => { setMessage(books.error); }, [books.error]); // При первом рендере для режима редактирования однократно запросим данные книги с сервера. Иначе очистим все // поля ввода. useEffect(() => { if (mode === "edit" && id) getBook(id); else setBookData(transientBook); }, []); // Общий обработчик изменения значения текстового поля. const handleChange = (e: SyntheticEvent, fieldName: string) => { setBookData({ ...bookData, [fieldName]: (e.target as HTMLInputElement).value }); } // Обработчик сабмита формы. const handleSubmit = (e: SyntheticEvent) => { e.preventDefault(); e.stopPropagation(); if (mode === "create") { createBook(bookData) .then(() => { // После успешного создания книги очистим поля ввода. setBookData(transientBook); // И выведем сообщение. setMessage("Новая книга успешно добавлена."); }); } else { updateBook(bookData) .then(() => { // После успешного обновления книги просто выведем сообщение. setMessage("Данные книги успешно обновлены."); }); } } // Заголовок на странице зависит от режима. const header = mode === "create" ? "Добавить книгу" : `Редактировать книгу ID: ${id}` // Настроить цвет сообщения о результате операции. const alertClass = books.error ? "alert-danger" : "alert-success"; return ( <div className="container"> <h1>{header}</h1> {!message ? null : <div className={`alert ${alertClass}`} role="alert">{message}</div>} <form onSubmit={handleSubmit}> <div className="form-group"> <label htmlFor="title">Название</label> <input type="text" className="form-control" id="title" value={bookData.title} onChange={e => handleChange(e, "title")} required maxLength={200} /> </div> <div className="form-group"> <label htmlFor="author">Автор</label> <input type="text" className="form-control" id="author" value={bookData.author} onChange={e => handleChange(e, "author")} required maxLength={100} /> </div> <div className="form-group"> <label htmlFor="Жанр">Жанр</label> <input type="text" className="form-control" id="Жанр" value={bookData.genre} onChange={e => handleChange(e, "genre")} required maxLength={100} /> </div> <div className="form-group"> <label htmlFor="Год">Год</label> <input type="number" className="form-control" id="Год" value={bookData.year} onChange={e => handleChange(e, "year")} required min={0} /> </div> <button className="btn btn-primary" disabled={books.isLoading}>Сохранить</button> </form> </div> ); }
37.912
113
0.560878
e484e5069685784fe412415f959a8ce08cac9bcb
1,458
swift
Swift
ArcherHelper/ImageCell.swift
YaxinCheng/ArcherHelper
d8108aa0e127a1799daaff0aac856c2c6d5b2da6
[ "Apache-2.0" ]
1
2017-08-26T10:12:53.000Z
2017-08-26T10:12:53.000Z
ArcherHelper/ImageCell.swift
YaxinCheng/ArcherHelper
d8108aa0e127a1799daaff0aac856c2c6d5b2da6
[ "Apache-2.0" ]
null
null
null
ArcherHelper/ImageCell.swift
YaxinCheng/ArcherHelper
d8108aa0e127a1799daaff0aac856c2c6d5b2da6
[ "Apache-2.0" ]
null
null
null
// // ImageCell.swift // ArcherHelper // // Created by Yaxin Cheng on 2017-02-11. // Copyright © 2017 Yaxin Cheng. All rights reserved. // import UIKit class ImageCell: UICollectionViewCell { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var syncIndicator: UIImageView! private lazy var animation: CABasicAnimation = { let animation = CABasicAnimation(keyPath: "transform.rotation.z") animation.fromValue = Double.pi animation.toValue = 0 animation.duration = 1 animation.repeatCount = 10 animation.fillMode = kCAFillModeForwards animation.isRemovedOnCompletion = false return animation }() func queuing() { DispatchQueue.main.async { [weak self] in self?.syncIndicator.layer.removeAllAnimations() self?.syncIndicator.image = #imageLiteral(resourceName: "ic_cloud_queue") } } func syncing() { DispatchQueue.main.async { [weak self] in self?.syncIndicator.image = #imageLiteral(resourceName: "ic_cached") guard let animation = self?.animation else { return } self?.syncIndicator.layer.add(animation, forKey: nil) } } func failedSync() { DispatchQueue.main.async { [weak self] in self?.syncIndicator.layer.removeAllAnimations() self?.syncIndicator.image = #imageLiteral(resourceName: "ic_sync_problem") } } func completeSync() { DispatchQueue.main.async { [weak self] in self?.syncIndicator.layer.removeAllAnimations() self?.syncIndicator.image = UIImage() } } }
27
77
0.731139
f5de0e99e6afd5d6d9cd71f0d5664a26be08cb37
160
css
CSS
pages/styles.css
ld000/wechat-analysis
047fd17b8c96315855cde49d28b61eb1e33f3430
[ "MIT" ]
null
null
null
pages/styles.css
ld000/wechat-analysis
047fd17b8c96315855cde49d28b61eb1e33f3430
[ "MIT" ]
null
null
null
pages/styles.css
ld000/wechat-analysis
047fd17b8c96315855cde49d28b61eb1e33f3430
[ "MIT" ]
null
null
null
body { background-color: #3b3e45; color: #feffff } .main { width: 1000px; } /*#7fd3ef #8c8ff6 #d074f9 #f182fa #ff79ab #f8816d #f8816d #fec55e #f8ff75*/
8.421053
28
0.65625
492fc7357bc1d7320bd35cb616cbe96dbacbb860
919
swift
Swift
EssentialDeveloper/EssentialDeveloper/Feed Feature/FeedViewController.swift
ahmad-atef/essentialdeveloper
dd50579622c1849b0a0c2bb9c940bd8ed376e301
[ "MIT" ]
null
null
null
EssentialDeveloper/EssentialDeveloper/Feed Feature/FeedViewController.swift
ahmad-atef/essentialdeveloper
dd50579622c1849b0a0c2bb9c940bd8ed376e301
[ "MIT" ]
null
null
null
EssentialDeveloper/EssentialDeveloper/Feed Feature/FeedViewController.swift
ahmad-atef/essentialdeveloper
dd50579622c1849b0a0c2bb9c940bd8ed376e301
[ "MIT" ]
null
null
null
// // FeedViewController.swift // EssentialDeveloper // // Created by Ahmed Atef Ali Ahmed on 23.04.21. // import UIKit struct FeedItem { } protocol FeedLoader { func loadFeed(completion: @escaping (_ feedItems: [FeedItem]) -> ()) } class FeedViewController: UIViewController { private let feedLoader: FeedLoader init(feedLoader: FeedLoader = RemoteWithLocalFallbackFeedLoader.default) { self.feedLoader = feedLoader super.init(nibName: nil, bundle: nil) } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } func loadFeed() { feedLoader.loadFeed { items in // Update UI } } override func viewDidLoad() { super.viewDidLoad() loadFeed() } } class Demo: UIViewController { let feedVC = FeedViewController() func test() { feedVC.loadFeed() } }
19.145833
78
0.632209
ba2062c8e79a70251726c57a462fa917fe4dd802
2,337
go
Go
pkg/conf/config.go
jayunit100/e2e-framework
78d05b49aa2ad5e5886d41df4351e4acbb323bc0
[ "Apache-2.0" ]
null
null
null
pkg/conf/config.go
jayunit100/e2e-framework
78d05b49aa2ad5e5886d41df4351e4acbb323bc0
[ "Apache-2.0" ]
null
null
null
pkg/conf/config.go
jayunit100/e2e-framework
78d05b49aa2ad5e5886d41df4351e4acbb323bc0
[ "Apache-2.0" ]
null
null
null
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package conf import ( "regexp" "k8s.io/client-go/rest" "sigs.k8s.io/e2e-framework/pkg/flags" ) type Filter struct { Assessment string Feature string Labels map[string]string } type Config struct { // kube namespace string kubecfg *rest.Config assessmentRegex *regexp.Regexp featureRegex *regexp.Regexp labels map[string] string } func New() *Config { return &Config{} } // NewFromFlags creates a Config with parsed // flag values pre-populated. func NewFromFlags() (*Config, error) { flags, err := flags.Parse() if err != nil { return nil, err } cfg := New() if flags.Assessment() != "" { cfg.assessmentRegex = regexp.MustCompile(flags.Assessment()) } if flags.Feature() != "" { cfg.featureRegex = regexp.MustCompile(flags.Feature()) } cfg.labels = flags.Labels() return cfg, nil } // NewWithKubeCfgFile is a convenience constructor that will // create a Kubernetes *rest.Config from a file func NewWithKubeCfgFile(filePath string) (*Config, error) { return nil, nil } func (c *Config) WithKubeConfig(cfg *rest.Config) *Config { c.kubecfg = cfg return c } func (c *Config) KubeConfig() *rest.Config { return c.kubecfg } func (c *Config) WithNamespace(ns string) *Config { c.namespace = ns return c } func (c *Config) Namespace() string { return c.namespace } func (c *Config) WithAssessmentRegex(regex string) *Config { c.assessmentRegex = regexp.MustCompile(regex) return c } func (c *Config) AssessmentRegex() *regexp.Regexp { return c.assessmentRegex } func (c *Config) WithFeatureRegex(regex string) *Config { c.featureRegex = regexp.MustCompile(regex) return c } func (c *Config) FeatureRegex() *regexp.Regexp { return c.featureRegex } func (c *Config) Labels() map[string]string { return c.labels }
21.638889
72
0.730852
6db5dbc7aa615e44159a392e4732f2c7387849e8
68
c
C
Virtual Memory Implementation/Theme_B_9/GeekOS (os)/src/geekos/PaxHeader/pfat.c
Pintulalmeena/Projects
4d5d5e80aa8cbad47b6d5d9c407147429568d277
[ "MIT" ]
null
null
null
Virtual Memory Implementation/Theme_B_9/GeekOS (os)/src/geekos/PaxHeader/pfat.c
Pintulalmeena/Projects
4d5d5e80aa8cbad47b6d5d9c407147429568d277
[ "MIT" ]
null
null
null
Virtual Memory Implementation/Theme_B_9/GeekOS (os)/src/geekos/PaxHeader/pfat.c
Pintulalmeena/Projects
4d5d5e80aa8cbad47b6d5d9c407147429568d277
[ "MIT" ]
null
null
null
14 uid=311598 27 mtime=1430738578.019251 27 atime=1430738578.016251
17
26
0.838235
af90a36e73077a074570313ea207f7fe272f2698
13,919
py
Python
goodchat/management/commands/usage.py
red-and-black/friendly
f453344ad1e9173ad3545e4ea0c825b65190b3c5
[ "Apache-2.0" ]
2
2020-01-28T12:56:56.000Z
2021-07-02T03:07:39.000Z
goodchat/management/commands/usage.py
red-and-black/friendly
f453344ad1e9173ad3545e4ea0c825b65190b3c5
[ "Apache-2.0" ]
5
2021-03-18T23:02:11.000Z
2021-09-17T11:02:08.000Z
goodchat/management/commands/usage.py
red-and-black/goodchat
1a391a04d4edfbcefaf87663f08308dd58578634
[ "Apache-2.0" ]
null
null
null
from collections import ( Counter, OrderedDict, ) from datetime import ( datetime, timedelta, ) from django.contrib.auth.models import User from django.core.management.base import BaseCommand from django.db.models import F from behaviour.models import BehaviourReport from conferences.models import Conference from conversations.models import Conversation from meetups.models import Meetup from profiles.models import ( Blocked, Language, LookingFor, PersonalInterest, ProfessionalInterest, Profile, Starred, ) class Command(BaseCommand): def handle(self, *args, **options): """ Generates a report about the instance's usage. It assumes that the superuser is user 1, and that there are two people running the instance as administrators who are users 2 and 3. Users 1, 2 and 3 together are referred to as admins in this management command, and are excluded from the statistics unless explicitly included. """ # Initial date_format = '%d %b %Y' conference = Conference.objects.get() # Headers header_text = ('GoodChat usage for %s' % conference.name) header_border = "*" * len(header_text) print() print(header_border) print(header_text) print( '%s - %s' % ( conference.start_date.strftime(date_format), conference.end_date.strftime(date_format) ) ) print(conference.location) print(header_border) # Users print() print('Users') print('-----') start_datetime = datetime.combine( conference.start_date, datetime.max.time() ).astimezone() one_day_delta = timedelta(days=1) users = User.objects.\ filter(date_joined__lt=(start_datetime - one_day_delta)).\ exclude(pk__in=[1, 2, 3]) print('Users at midnight before event began: %s' % users.count()) day_number = 1 date = conference.start_date while date <= conference.end_date: date_datetime = datetime.combine( date, datetime.max.time(), ).astimezone() users = User.objects.\ filter(date_joined__lte=date_datetime).\ exclude(pk__in=[1, 2, 3]) print( 'Users at midnight at end of day %s: %s' % (day_number, users.count()) ) day_number += 1 date += one_day_delta one_week_later = conference.end_date + timedelta(days=7) one_week_later_datetime = datetime.combine( one_week_later, datetime.max.time(), ).astimezone() users = User.objects.\ filter(date_joined__lt=one_week_later_datetime).\ exclude(pk__in=[1, 2, 3]) print('Users one week after event ended: %s' % users.count()) nonadmin_profiles = Profile.objects.exclude(user__pk__in=[1, 2, 3]) nonadmin_users = User.objects.exclude(pk__in=[1, 2, 3]) nonempty_profiles = nonadmin_profiles.\ filter(created__lt=F('modified') - timedelta(seconds=3)) nonempty_profiles_percentage = round( (nonempty_profiles.count()/nonadmin_users.count()) * 100 ) print( 'Users who filled out any of their profile: %s%% (%s users)' % (nonempty_profiles_percentage, nonempty_profiles.count()) ) users_with_email = nonadmin_users.exclude(email='') users_with_email_percentage = round( (users_with_email.count()/nonadmin_users.count() * 100) ) print( 'Users who gave their email address: %s%% (%s users)' % (users_with_email_percentage, users_with_email.count()) ) profiles_with_github = nonadmin_profiles.exclude(github='') profiles_with_github_percentage = round( (profiles_with_github.count()/nonadmin_users.count() * 100) ) print( 'Users who gave their Github username: %s%% (%s users)' % (profiles_with_github_percentage, profiles_with_github.count()) ) profiles_with_twitter = nonadmin_profiles.exclude(twitter='') profiles_with_twitter_percentage = round( (profiles_with_twitter.count()/nonadmin_users.count() * 100) ) print( 'Users who gave their Twitter handle: %s%% (%s users)' % (profiles_with_twitter_percentage, profiles_with_twitter.count()) ) # Conversations print() print('Conversations') print('-------------') all_conversations = Conversation.objects.all() conversations_not_initiated_by_admins = all_conversations.\ exclude(initiator__pk__in=[1, 2, 3]) print( 'Conversations initiated: %s' % conversations_not_initiated_by_admins.count() ) count = 0 for c in conversations_not_initiated_by_admins: if c.messages.exclude(sender=c.initiator).exists(): count += 1 conversations_with_reply_percentage = round( (count/conversations_not_initiated_by_admins.count() * 100) ) print( 'Conversations with a reply to initial contact: %s%% ' '(%s conversations)' % (conversations_with_reply_percentage, count) ) initiators = [] for c in conversations_not_initiated_by_admins: if c.initiator not in initiators: initiators.append(c.initiator) initiators_percentage = round( len(initiators)/nonadmin_users.count() * 100 ) print( 'Users who initiated a conversation: %s%% (%s users)' % (initiators_percentage, len(initiators)) ) conversation_count = 0 message_count = 0 for c in all_conversations: if c.messages.exclude(sender=c.initiator).exists(): conversation_count += 1 message_count += c.messages.all().count() average_message_count = round(message_count/conversation_count, 1) print( 'Messages per conversation where there was a reply to initial ' 'contact: %s' % average_message_count ) conversations_initiated_by_admins = all_conversations.\ filter(initiator__pk__in=[2, 3]) print( 'Conversations initiated by admins: %s' % conversations_initiated_by_admins.count() ) count = 0 for c in conversations_initiated_by_admins: if c.messages.exclude(sender=c.initiator).exists(): count += 1 if conversations_initiated_by_admins.exists(): conversations_with_reply_percentage = round( (count/conversations_initiated_by_admins.count() * 100) ) else: conversations_with_reply_percentage = 0 print( 'Conversations initiated by admins with a reply to initial ' 'contact: %s%% (%s conversations)' % (conversations_with_reply_percentage, count) ) # Meetups print() print('Meetups') print('-------') meetups = Meetup.objects.all() print('Meetups: %s' % meetups.count()) meetup_organisers = [] for m in meetups: if m.organiser not in meetup_organisers: meetup_organisers.append(m.organiser) meetup_percentage = round( len(meetup_organisers)/nonadmin_users.count() * 100 ) print( 'Users who created a meetup: %s%% (%s users)' % (meetup_percentage, len(meetup_organisers)) ) # Searches print() print('Searches') print('--------') print('Total number of profile searches: ') print('Run this command and paste the result in:') print( 'grep "goodchat.io/search/ --" ~/logs/requests.log | grep -v ' '"User: 1 --" | grep -v "User: 2 --" | grep -v "User: 3 --" | ' 'grep -v "User: Anon --" | grep -F "csrfmiddlewaretoken" | wc -l' ) print('Total number of username searches: ') print('Run this command and paste the result in:') print( 'grep "goodchat.io/username-search/ --" ~/logs/requests.log | ' 'grep -v "User: 1 --" | grep -v "User: 2 --" | grep -v "User: 3 ' '--" | grep -v "User: Anon --" | grep -F "csrfmiddlewaretoken" | ' 'wc -l' ) # Blocks, reports, stars. print() print('Blocks, reports, stars') print('----------------------') # Blocks blocks = Blocked.objects.all() print('Times one user blocked another user: %s' % blocks.count()) # Reports reports = BehaviourReport.objects.all() print('Times one user reported another user: %s' % reports.count()) # Stars starred = Starred.objects.all() print('Times one user starred another user: %s' % starred.count()) starring_profiles = {p.starring_profile for p in starred} starring_percentage = round( len(starring_profiles)/nonadmin_users.count() * 100 ) print( 'Users who starred another user: %s%% (%s users)' % (starring_percentage, len(starring_profiles)) ) # Languages print() print('Languages') print('---------') languages = Language.objects.all() languages_list = [l.language for l in languages] print('Options:') print(', '.join(languages_list)) print('Frequency:') counter = Counter() for profile in nonadmin_profiles: counter.update(profile.languages.all()) languages_dict = {} for language in languages: languages_dict[language.language] = counter[language] ordered_dict = OrderedDict( sorted(languages_dict.items(), key=lambda x: -1 * x[1]) ) strings_list = [] for k, v in ordered_dict.items(): strings_list.append( '%s (%s%%, %s users)' % (k, round((v/nonadmin_profiles.count()) * 100), v) ) if strings_list: print(', '.join(strings_list)) else: print('-') # Looking for print() print('Looking for') print('-----------') looking_fors = LookingFor.objects.all() looking_for_list = [lf.looking_for for lf in looking_fors] print('Options:') print(', '.join(looking_for_list)) print('Frequency:') counter = Counter() for profile in nonadmin_profiles: counter.update(profile.looking_for.all()) looking_for_dict = {} for looking_for in looking_fors: looking_for_dict[looking_for.looking_for] = counter[looking_for] ordered_dict = OrderedDict( sorted(looking_for_dict.items(), key=lambda x: -1 * x[1]) ) strings_list = [] for k, v in ordered_dict.items(): strings_list.append( '%s (%s%%, %s users)' % (k, round((v/nonadmin_profiles.count()) * 100), v) ) if strings_list: print(', '.join(strings_list)) else: print('-') # Personal interests print() print('Personal interests') print('------------------') personal_interests = PersonalInterest.objects.all() personal_interests_list = [ pi.personal_interest for pi in personal_interests ] print('Options:') print(', '.join(personal_interests_list)) print('Frequency:') counter = Counter() for profile in nonadmin_profiles: counter.update(profile.personal_interests.all()) personal_interests_dict = {} for personal_interest in personal_interests: personal_interests_dict[personal_interest.personal_interest] = \ counter[personal_interest] ordered_dict = OrderedDict( sorted(personal_interests_dict.items(), key=lambda x: -1 * x[1]) ) strings_list = [] for k, v in ordered_dict.items(): strings_list.append( '%s (%s%%, %s users)' % (k, round((v/nonadmin_profiles.count()) * 100), v) ) if strings_list: print(', '.join(strings_list)) else: print('-') print() print('Professional interests') print('----------------------') prof_interests = ProfessionalInterest.objects.all() prof_interests_list = [pi.prof_interest for pi in prof_interests] print('Options:') print(', '.join(prof_interests_list)) print('Frequency:') counter = Counter() for profile in nonadmin_profiles: counter.update(profile.prof_interests.all()) prof_interests_dict = {} for prof_interest in prof_interests: prof_interests_dict[prof_interest.prof_interest] = \ counter[prof_interest] ordered_dict = OrderedDict( sorted(prof_interests_dict.items(), key=lambda x: -1 * x[1]) ) strings_list = [] for k, v in ordered_dict.items(): strings_list.append( '%s (%s%%, %s users)' % (k, round((v/nonadmin_profiles.count()) * 100), v) ) if strings_list: print(', '.join(strings_list)) else: print('-') print() print()
34.45297
79
0.565486
f449b95f48c2c995716d46be7233ede64305c6e3
465
cs
C#
Services/GarageManager.Services/Contracts/IDepartmentService.cs
TodorChapkanov/Garage-Manager
fed75c78d0622b9312fb83fa640a746a49e466ff
[ "MIT" ]
null
null
null
Services/GarageManager.Services/Contracts/IDepartmentService.cs
TodorChapkanov/Garage-Manager
fed75c78d0622b9312fb83fa640a746a49e466ff
[ "MIT" ]
null
null
null
Services/GarageManager.Services/Contracts/IDepartmentService.cs
TodorChapkanov/Garage-Manager
fed75c78d0622b9312fb83fa640a746a49e466ff
[ "MIT" ]
null
null
null
using GarageManager.Services.Models.Charts; using GarageManager.Services.Models.Department; using System.Collections.Generic; using System.Threading.Tasks; namespace GarageManager.Services.Contracts { public interface IDepartmentService { Task<IEnumerable<DepartmentAll>> AllDepartmentsAsync(); Task<DepartmentAllCars> GetDepartmentCarsAsync(string id); Task<IEnumerable<SimpleReportViewModel>> GetCarsInDepartments(); } }
24.473684
72
0.774194
b05a1e81c5952b682875fa31214c16b3c913f10e
7,509
py
Python
model/recognition_model/HARN/models/.ipynb_checkpoints/morn-checkpoint.py
JinGyeSetBirdsFree/FudanOCR
e6b18b0eefaf832b2eb7198f5df79e00bd4cee36
[ "MIT" ]
25
2020-02-29T12:14:10.000Z
2020-04-24T07:56:06.000Z
model/recognition_model/HARN/models/.ipynb_checkpoints/morn-checkpoint.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
33
2020-12-10T19:15:39.000Z
2022-03-12T00:17:30.000Z
model/recognition_model/HARN/models/.ipynb_checkpoints/morn-checkpoint.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
4
2020-02-29T12:14:18.000Z
2020-04-12T12:26:50.000Z
import torch import torch.nn as nn from torch.autograd import Variable import numpy as np class MORN(nn.Module): def __init__(self, nc, targetH, targetW, inputDataType='torch.cuda.FloatTensor', maxBatch=256, CUDA=True, log=None): super(MORN, self).__init__() self.targetH = targetH self.targetW = targetW self.inputDataType = inputDataType self.maxBatch = maxBatch self.cuda = CUDA self.log = log self.cnn = nn.Sequential( nn.MaxPool2d(2, 2), nn.Conv2d(nc, 64, 3, 1, 1), nn.BatchNorm2d(64), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(64, 128, 3, 1, 1), nn.BatchNorm2d(128), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(128, 64, 3, 1, 1), nn.BatchNorm2d(64), nn.ReLU(True), nn.Conv2d(64, 16, 3, 1, 1), nn.BatchNorm2d(16), nn.ReLU(True), nn.Conv2d(16, 2, 3, 1, 1), nn.BatchNorm2d(2) ) self.pool = nn.MaxPool2d(2, 1) h_list = np.arange(self.targetH) * 2. / (self.targetH - 1) - 1 w_list = np.arange(self.targetW) * 2. / (self.targetW - 1) - 1 grid = np.meshgrid( w_list, h_list, indexing='ij' ) grid = np.stack(grid, axis=-1) grid = np.transpose(grid, (1, 0, 2)) grid = np.expand_dims(grid, 0) grid = np.tile(grid, [maxBatch, 1, 1, 1]) grid = torch.from_numpy(grid).type(self.inputDataType) if self.cuda: grid = grid.cuda() self.grid = Variable(grid, requires_grad=False) self.grid_x = self.grid[:, :, :, 0].unsqueeze(3) self.grid_y = self.grid[:, :, :, 1].unsqueeze(3) def forward(self, x, test, enhance=1, debug=False, steps=None): if not test and np.random.random() > 0.5: return nn.functional.interpolate(x, size=(self.targetH, self.targetW), mode='bilinear') if not test: enhance = 0 assert x.size(0) <= self.maxBatch assert x.data.type() == self.inputDataType grid = self.grid[:x.size(0)] grid_x = self.grid_x[:x.size(0)] grid_y = self.grid_y[:x.size(0)] x_small = nn.functional.interpolate(x, size=(self.targetH, self.targetW), mode='bilinear') offsets = self.cnn(x_small) offsets_posi = nn.functional.relu(offsets, inplace=False) offsets_nega = nn.functional.relu(-offsets, inplace=False) offsets_pool = self.pool(offsets_posi) - self.pool(offsets_nega) offsets_grid = nn.functional.grid_sample(offsets_pool, grid) offsets_grid = offsets_grid.permute(0, 2, 3, 1).contiguous() offsets_grid_x = offsets_grid[:, :, :, 0].unsqueeze(3) offsets_grid_y = offsets_grid[:, :, :, 1].unsqueeze(3) offsets_x = torch.cat([grid_x + offsets_grid_x, grid_y + offsets_grid_y], 3) # offsets_x = torch.cat([grid_x, grid_y + offsets_grid], 3) x_rectified = nn.functional.grid_sample(x, offsets_x) for iteration in range(enhance): offsets = self.cnn(x_rectified) offsets_posi = nn.functional.relu(offsets, inplace=False) offsets_nega = nn.functional.relu(-offsets, inplace=False) offsets_pool = self.pool(offsets_posi) - self.pool(offsets_nega) offsets_grid += nn.functional.grid_sample(offsets_pool, grid).permute(0, 2, 3, 1).contiguous() offsets_grid_x = offsets_grid[:, :, :, 0].unsqueeze(3) offsets_grid_y = offsets_grid[:, :, :, 1].unsqueeze(3) offsets_x = torch.cat([grid_x + offsets_grid_x, grid_y + offsets_grid_y], 3) # offsets_x = torch.cat([grid_x, grid_y + offsets_grid], 3) x_rectified = nn.functional.grid_sample(x, offsets_x) if debug: offsets_mean = torch.mean(offsets_grid.view(x.size(0), -1), 1) offsets_max, _ = torch.max(offsets_grid.view(x.size(0), -1), 1) offsets_min, _ = torch.min(offsets_grid.view(x.size(0), -1), 1) import matplotlib.pyplot as plt from colour import Color from torchvision import transforms import cv2 alpha = 0.7 density_range = 256 cmap = plt.get_cmap("rainbow") blue = Color("blue") hex_colors = list(blue.range_to(Color("red"), density_range)) rgb_colors = [[rgb * 255 for rgb in color.rgb] for color in hex_colors][::-1] to_pil_image = transforms.ToPILImage() for i in range(1): img_small = x_small[i].data.cpu().mul_(0.5).add_(0.5) img = to_pil_image(img_small) img = np.array(img) if len(img.shape) == 2: img = cv2.merge([img.copy()] * 3) img_copy_x = img.copy() img_copy_y = img.copy() v_max = offsets_max.data[i].cpu() v_min = offsets_min.data[i].cpu() img_offsets_x = (offsets_grid[i][:, :, 0]).view(1, self.targetH, self.targetW).data.cpu().add_(-v_min).mul_( 1. / (v_max - v_min)) img_offsets_y = (offsets_grid[i][:, :, 1]).view(1, self.targetH, self.targetW).data.cpu().add_(-v_min).mul_( 1. / (v_max - v_min)) img_offsets_x = to_pil_image(img_offsets_x) img_offsets_y = to_pil_image(img_offsets_y) img_offsets_x = np.array(img_offsets_x) img_offsets_y = np.array(img_offsets_y) color_map_x = np.empty([self.targetH, self.targetW, 3], dtype=int) color_map_y = np.empty([self.targetH, self.targetW, 3], dtype=int) for h_i in range(self.targetH): for w_i in range(self.targetW): color_map_x[h_i][w_i] = rgb_colors[int(img_offsets_x[h_i, w_i] / 256. * density_range)] color_map_y[h_i][w_i] = rgb_colors[int(img_offsets_y[h_i, w_i] / 256. * density_range)] color_map_x = color_map_x.astype(np.uint8) color_map_y = color_map_y.astype(np.uint8) cv2.addWeighted(color_map_x, alpha, img_copy_x, 1 - alpha, 0, img_copy_x) cv2.addWeighted(color_map_y, alpha, img_copy_y, 1 - alpha, 0, img_copy_y) img_processed = x_rectified[i].data.cpu().mul_(0.5).add_(0.5) img_processed = to_pil_image(img_processed) img_processed = np.array(img_processed) if len(img_processed.shape) == 2: img_processed = cv2.merge([img_processed.copy()] * 3) total_img = np.ones([self.targetH, self.targetW * 4 + 15, 3], dtype=int) * 255 total_img[0:self.targetH, 0:self.targetW] = img total_img[0:self.targetH, self.targetW + 5:2 * self.targetW + 5] = img_copy_x total_img[0:self.targetH, self.targetW * 2 + 10:3 * self.targetW + 10] = img_copy_y total_img[0:self.targetH, self.targetW * 3 + 15:4 * self.targetW + 15] = img_processed total_img = cv2.resize(total_img.astype(np.uint8), (800, 100)) # cv2.imshow("Input_Offsets_Output", total_img) # cv2.waitKey() self.log.image_summary('attention_map', [total_img], steps) # cv2.imwrite('attention_map', total_img) # return x_rectified, total_img return x_rectified return x_rectified
46.639752
124
0.575975
45d3e0f145101a54ab55b0e4207413bc1749d153
379
py
Python
lewis_emulators/neocera_ltc21/constants.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/neocera_ltc21/constants.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/neocera_ltc21/constants.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
""" Constants associated with the NEOCERA. """ # Index in the arrays of the heater output HEATER_INDEX = 0 # Index in the arrays of the analog output ANALOG_INDEX = 1 # Minimum allowed output control type for the output index (see self.control) CONTROL_TYPE_MIN = [0, 3] # Maximum allowed output control type for the output index (see self.control) CONTROL_TYPE_MAX = [5, 6]
23.6875
77
0.751979
43f77a2db430ffcedc51c4705891b2f948cded79
780
ts
TypeScript
src/app/app.component.ts
imscaradh/angular-rdash
d4adbf55734eba9c9271dcafea9600ba284e0b68
[ "MIT" ]
null
null
null
src/app/app.component.ts
imscaradh/angular-rdash
d4adbf55734eba9c9271dcafea9600ba284e0b68
[ "MIT" ]
null
null
null
src/app/app.component.ts
imscaradh/angular-rdash
d4adbf55734eba9c9271dcafea9600ba284e0b68
[ "MIT" ]
null
null
null
import {Component} from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { mobileView: number = 992; toggle: boolean = false; constructor() { this.attachEvents(); } attachEvents() { window.onresize = () => { if (this.getWidth() >= this.mobileView) { if (localStorage.getItem('toggle')) { this.toggle = !!localStorage.getItem('toggle'); } else { this.toggle = true; } } else { this.toggle = false; } } } getWidth() { return window.innerWidth; } toggleSidebar() { this.toggle = !this.toggle; localStorage.setItem('toggle', this.toggle.toString()); } }
19.5
59
0.578205
d6764f4755920644809c96d6e74605dbf6cfb6ce
5,301
cs
C#
ToasterWpf/App.xaml.cs
mhorrall/Toaster
95e4a822dd3f8a694ede3266bab0a28dd98e80c3
[ "MIT" ]
4
2018-05-29T15:16:37.000Z
2020-06-13T03:23:59.000Z
ToasterWpf/App.xaml.cs
mhorrall/Toaster
95e4a822dd3f8a694ede3266bab0a28dd98e80c3
[ "MIT" ]
null
null
null
ToasterWpf/App.xaml.cs
mhorrall/Toaster
95e4a822dd3f8a694ede3266bab0a28dd98e80c3
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows; using NLog; using ToasterWpf.Model; using ToasterWpf.Services; namespace ToasterWpf { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); private const string AppId = "AppID"; protected override void OnStartup(StartupEventArgs e) { // Register Activator and COM server ActivatorHelper.RegisterActivator<NotificationActivator>(); ActivatorHelper.RegisterComServer(typeof(NotificationActivator), Process.GetCurrentProcess().MainModule.FileName); if (e.Args.Length > 0) { // If "-Embedding" argument is appended, it will mean this application is started by COM. if (e.Args.Contains("-Embedding")) { Logger.Info("Started by COM"); } else { if (e.Args.Length == 0) { Console.WriteLine("No args provided.\n"); } else { var toastModel = new ToastModel(); for (int i = 0; i < e.Args.Length; i++) { switch (e.Args[i]) { case "-t": if (i + 1 < e.Args.Length) { toastModel.Title = e.Args[i + 1]; } else { Console.WriteLine( @"Missing argument to -t. Supply argument as -t ""bold title string"""); Environment.Exit(-1); } break; case "-b": if (i + 1 < e.Args.Length) { toastModel.Body = e.Args[i + 1]; } break; case "-p": if (i + 1 < e.Args.Length) { toastModel.ImagePath = e.Args[i + 1]; } else { Console.WriteLine( "Missing argument to -p.\n Supply argument as -p \"image path\"\n"); Environment.Exit(-1); } break; case "-silent": toastModel.Silent = true; break; //case "-w": // //wait = true; // break; default: break; } } // Pop Toast ToastService.ShowInteractiveToast(toastModel, AppId); // base.OnStartup(e); Application.Current.Shutdown(); } } } } private static void PrintHelp() { String inst = "---- Usage ----\n" + "toast <string>|[-t <string>][-b <string>][-p <string>]\n\n" + "---- Args ----\n" + "<string>\t\t| Toast <string>, no add. args will be read.\n" + "[-t] <title string>\t| Displayed on the first line of the toast.\n" + "[-b] <body string>\t| Displayed on the remaining lines, wrapped.\n" + "[-p] <image URI>\t| Display toast with an image\n" + "[-silent] \t\t\t| Deactivate sound (quiet).\n" + "[-w] \t\t\t| Wait for toast to expire or activate.\n" + "?\t\t\t| Print these instructions. Same as no args.\n" + "Exit Status\t: Exit Code\n" + "Failed\t\t: -1\nSuccess\t\t: 0\nHidden\t\t: 1\nDismissed\t: 2\nTimeout\t\t: 3\n\n" + "---- Image Notes ----\n" + "Images must be .png with:\n" + "\tmaximum dimensions of 1024x1024\n" + "\tsize <= 200kb\n" + "Windows file paths only.\n"; Console.WriteLine(inst); } } }
41.740157
116
0.357857
a0035bbecd07e8c30c7f18dcfae516ca9e4acc96
726
ts
TypeScript
src/commands/upload/upload.ts
getmeli/meli-cli
4107cb309d0bab54e6c774682233f44f2c4d8832
[ "MIT" ]
null
null
null
src/commands/upload/upload.ts
getmeli/meli-cli
4107cb309d0bab54e6c774682233f44f2c4d8832
[ "MIT" ]
null
null
null
src/commands/upload/upload.ts
getmeli/meli-cli
4107cb309d0bab54e6c774682233f44f2c4d8832
[ "MIT" ]
1
2021-02-02T13:45:35.000Z
2021-02-02T13:45:35.000Z
import { tmpdir } from 'os'; import { join } from 'path'; import { Logger } from '../../commons/logger/logger'; import { UploadOptions } from './upload-options'; import { uploadArchive } from './upload-archive'; import { archiveFiles } from './archive-files'; import { v4 as uuid } from 'uuid'; const logger = new Logger('meli.cli:upload'); export async function upload(options: UploadOptions): Promise<void> { const archivePath = join(tmpdir(), `site-${uuid()}.tar.gz`); logger.info(`Compressing files from ${options.directory}....`); await archiveFiles(options.directory, archivePath); logger.info(`Uploading release to ${options.url}...`); await uploadArchive(archivePath, options); logger.info('Done'); }
33
69
0.695592
9b05a2e633a3abfb4c2f9cf96bc13b6ff27f2768
327
sql
SQL
sql/updates/0.15/8930_01_mangos_spell_proc_event.sql
Ambal/mangos
9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff
[ "OpenSSL" ]
1
2019-01-19T06:35:40.000Z
2019-01-19T06:35:40.000Z
sql/updates/0.15/8930_01_mangos_spell_proc_event.sql
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
sql/updates/0.15/8930_01_mangos_spell_proc_event.sql
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
ALTER TABLE db_version CHANGE COLUMN required_8929_01_mangos_gossip_scripts required_8930_01_mangos_spell_proc_event bit; DELETE FROM `spell_proc_event` WHERE `entry` IN (58597); INSERT INTO `spell_proc_event` VALUES (58597, 0x00000000, 10, 0x40000000, 0x00000000, 0x00000000, 0x00008000, 0x00000000, 0.000000, 100.000000,0);
54.5
121
0.831804
05a790fbafb31c5c06905d3d054894d6b9089b78
3,001
py
Python
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
main.py
msarmad17/Sports-Goods-Website
06aef86267a1df57acd0d4814939b1018e2f4799
[ "MIT" ]
null
null
null
import os import urllib.parse import pyodbc from flask import Flask, render_template, request, url_for, redirect app = Flask(__name__) app.config['SECRET_KEY'] = '' server = '' database = '' username = '' password = '' driver= '{ODBC Driver 17 for SQL Server}' cnxn = pyodbc.connect('DRIVER='+driver+';SERVER='+server+';PORT=1433;DATABASE='+database+';UID='+username+';PWD='+ password) cursor = cnxn.cursor() #cursor.execute("SELECT * FROM products") #row = cursor.fetchone() a = 0 @app.route("/", methods=['GET', 'POST']) def home(): return render_template("index.html", title="Home", form=search) @app.route("/test", methods=['GET', 'POST']) def test(): if request.method == 'POST': test = request.form['test'] global a a = test return render_template("index.html", title="test2", keyword=test) @app.route("/search", methods=['GET', 'POST']) def search(): if request.method == 'POST': keyword = request.form['keyword'] if keyword is "": cursor.execute("SELECT * FROM products") else: cursor.execute("SELECT * FROM products WHERE %s = '%s'" % (a, keyword)) rows = cursor.fetchall() count = 0 for x in rows: count += 1 print(count) for y in x: print(y) return render_template("test.html", title="test", rows=rows) @app.route("/register", methods=['GET', 'POST']) def register(): return render_template("register.html", title="Register") @app.route("/registersubmit", methods=['GET', 'POST']) def registersubmit(): if request.method == 'POST': uid = request.form['uid'] print(uid) username = request.form['username'] print(username) full_name = request.form['full_name'] birthdate = request.form['birthdate'] email = request.form['email'] address = request.form['address'] password = request.form['password'] role = request.form['role'] cursor.execute("insert into users(uid, username, full_name, birthdate, email, address, password, role) values (?, ?, ?, ?, ?, ?, ?, ?)", (uid, username, full_name, birthdate, email, address, password, role)) cnxn.commit() return redirect(url_for("home")) @app.route("/order") def order(): return render_template("order.html") @app.route("/ordersubmit", methods=['GET', 'POST']) def ordersubmit(): if request.method == 'POST': oid = request.form['oid'] uid = request.form['uid'] pid = request.form['pid'] purchase = request.form['purchase'] ship = request.form['ship'] cursor.execute("insert into orders(oid, uid, pid, purchase, ship) values (?, ?, ?, ?, ?)", (oid, uid, pid, purchase, ship)) cnxn.commit() return redirect(url_for("home")) @app.route("/login") def login(): form = LoginForm() return render_template("login.html", title="Login", form=form) if __name__ == '__main__': app.run(debug=True)
28.311321
211
0.608464
58e67bd045106e4b68b931e96c5d8a266e7357cc
3,790
kt
Kotlin
app/src/main/java/io/skytreasure/kotlingroupchat/MainActivity.kt
GhodelApps/Kotlin-Firebase-Group-Chat
58dd5c79dde927ca430b4ec7a58b1b19fcd649cd
[ "MIT" ]
60
2017-11-04T06:47:58.000Z
2022-03-15T04:21:48.000Z
app/src/main/java/io/skytreasure/kotlingroupchat/MainActivity.kt
GhodelApps/Kotlin-Firebase-Group-Chat
58dd5c79dde927ca430b4ec7a58b1b19fcd649cd
[ "MIT" ]
null
null
null
app/src/main/java/io/skytreasure/kotlingroupchat/MainActivity.kt
GhodelApps/Kotlin-Firebase-Group-Chat
58dd5c79dde927ca430b4ec7a58b1b19fcd649cd
[ "MIT" ]
40
2017-11-17T07:20:04.000Z
2022-03-15T04:21:49.000Z
package io.skytreasure.kotlingroupchat import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* import android.view.View import android.widget.Toast import com.google.firebase.database.DatabaseReference import com.google.firebase.database.FirebaseDatabase import io.skytreasure.kotlingroupchat.chat.MyChatManager import io.skytreasure.kotlingroupchat.chat.ui.CreateGroupActivity import io.skytreasure.kotlingroupchat.chat.ui.OneOnOneChat import io.skytreasure.kotlingroupchat.chat.ui.ViewGroupsActivity import io.skytreasure.kotlingroupchat.common.constants.DataConstants import io.skytreasure.kotlingroupchat.common.constants.DataConstants.Companion.sCurrentUser import io.skytreasure.kotlingroupchat.common.constants.NetworkConstants import io.skytreasure.kotlingroupchat.common.controller.NotifyMeInterface import io.skytreasure.kotlingroupchat.common.util.SharedPrefManager import com.google.firebase.database.DatabaseError import android.databinding.adapters.NumberPickerBindingAdapter.setValue import android.util.Log import com.google.firebase.database.DataSnapshot import com.google.firebase.database.ValueEventListener import com.google.firebase.iid.FirebaseInstanceId class MainActivity : AppCompatActivity(), View.OnClickListener { var onlineRef: DatabaseReference? = null var currentUserRef: DatabaseReference? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) MyChatManager.setmContext(this@MainActivity) sCurrentUser = SharedPrefManager.getInstance(this@MainActivity).savedUserModel btn_creategroup.setOnClickListener(this) btn_showgroup.setOnClickListener(this) btn_oneonone.setOnClickListener(this) btn_logout.setOnClickListener(this) MyChatManager.setOnlinePresence() MyChatManager.updateFCMTokenAndDeviceId(this@MainActivity, FirebaseInstanceId.getInstance().token!!) MyChatManager.fetchAllUserInformation() MyChatManager.fetchMyGroups(object : NotifyMeInterface { override fun handleData(`object`: Any, requestCode: Int?) { var i = 0 for (group in DataConstants.sGroupMap!!) { if (group.value.members.containsKey(sCurrentUser?.uid!!)) { i += group.value.members.get(sCurrentUser?.uid)?.unread_group_count!! } } tv_notification_count.text = "Total Notification Count :" + i } }, NetworkConstants.FETCH_GROUPS, sCurrentUser, false) } override fun onClick(v: View?) { when (v?.id) { R.id.btn_creategroup -> { val intent = Intent(this@MainActivity, CreateGroupActivity::class.java) startActivity(intent) } R.id.btn_showgroup -> { val intent = Intent(this@MainActivity, ViewGroupsActivity::class.java) startActivity(intent) } R.id.btn_oneonone -> { val intent = Intent(this@MainActivity, OneOnOneChat::class.java) startActivity(intent) } R.id.btn_logout -> { MyChatManager.logout(this@MainActivity) } } } override fun onDestroy() { MyChatManager.goOffline(object : NotifyMeInterface { override fun handleData(`object`: Any, requestCode: Int?) { Toast.makeText(this@MainActivity, "You are offline now", Toast.LENGTH_SHORT).show() } }, sCurrentUser, NetworkConstants.GO_OFFLINE) super.onDestroy() } }
39.072165
108
0.704485
864c5cd8e083674c0d47cb982ece1ce7831e9b6b
472
sql
SQL
data/sql/hackernews/subdomains.sql
gprime31/commonspeak2
ba241100335281873f14f4e6cdaba6dd10cd669b
[ "Apache-2.0" ]
443
2018-08-12T14:43:34.000Z
2022-03-30T22:07:47.000Z
data/sql/hackernews/subdomains.sql
gprime31/commonspeak2
ba241100335281873f14f4e6cdaba6dd10cd669b
[ "Apache-2.0" ]
13
2018-08-13T15:49:02.000Z
2022-02-21T08:18:12.000Z
data/sql/hackernews/subdomains.sql
gprime31/commonspeak2
ba241100335281873f14f4e6cdaba6dd10cd669b
[ "Apache-2.0" ]
75
2018-08-22T21:32:35.000Z
2022-03-29T21:32:51.000Z
CREATE TEMPORARY FUNCTION getSubdomain(x STRING) RETURNS STRING LANGUAGE js AS """ function getSubdomain(s) { try { return URI(s).subdomain(); } catch (ex) { return s; } } return getSubdomain(x); """ OPTIONS ( library="gs://commonspeak-udf/URI.min.js" ); SELECT getSubdomain(url) AS subdomain, count(url) as count FROM `bigquery-public-data.hacker_news.full` GROUP BY subdomain ORDER BY count DESC LIMIT {{limit}};
17.481481
50
0.650424
05a63268f7ba62ddc8e53b1892c17870b64734e1
359
py
Python
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
2
2019-12-16T07:55:00.000Z
2020-04-21T14:55:18.000Z
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
1
2018-12-31T14:43:49.000Z
2019-01-04T12:11:23.000Z
tests/test_csv.py
andriyor/amalgama-pq
9b3478ca22080fc612fb40cda488a8538b2624dc
[ "MIT" ]
null
null
null
import csv import pytest from amalgama import amalgama with open("tests/tests_data/test.csv") as f: records = csv.DictReader(f) csv_data = [(row["artist"], row["title"], row["url"]) for row in records] @pytest.mark.parametrize("artist,title,url", csv_data) def test_amalgama(artist, title, url): assert amalgama.get_url(artist, title) == url
23.933333
77
0.710306
af5bd306de6c33f70c171eb8e16cdfe18c1a30f3
784
py
Python
Scripts/website_online_alarm.py
GokulVSD/ScratchPad
53dee2293a2039186b00c7a465c7ef28e2b8e291
[ "Unlicense" ]
null
null
null
Scripts/website_online_alarm.py
GokulVSD/ScratchPad
53dee2293a2039186b00c7a465c7ef28e2b8e291
[ "Unlicense" ]
null
null
null
Scripts/website_online_alarm.py
GokulVSD/ScratchPad
53dee2293a2039186b00c7a465c7ef28e2b8e291
[ "Unlicense" ]
null
null
null
import urllib.request as req import ssl import time # A simple script that beeps or sounds an alarm when a URL or website responds to a request or is online print("\n\nGokul's \"Is the website online yet?\" alarm\n") url = input("Enter a website to ping (with http / https tag): ") context = ssl._create_unverified_context() counter = 1 while True: try: print("Attempting to load: ", url, "\tAttempt Counter: ", counter) req.urlopen(url, context=context) counter += 1 except: print("Website is offline") print("Resetting attempt counter, ctrl + c to stop") counter = 1 time.sleep(2) if counter >= 5: print("Website is online! ctrl + c to stop") print('\a', end="\r") time.sleep(2)
23.058824
104
0.625
f2c958fdb10b4ba54efb0266705a6433f9d6bc2a
1,851
ps1
PowerShell
DHSTIGChecker/STIG/Server2019/205746.ps1
hollinrakedp/DHSTIGChecker
585486f6c954a16415be617970854f3aa3d42a70
[ "MIT" ]
null
null
null
DHSTIGChecker/STIG/Server2019/205746.ps1
hollinrakedp/DHSTIGChecker
585486f6c954a16415be617970854f3aa3d42a70
[ "MIT" ]
null
null
null
DHSTIGChecker/STIG/Server2019/205746.ps1
hollinrakedp/DHSTIGChecker
585486f6c954a16415be617970854f3aa3d42a70
[ "MIT" ]
null
null
null
<# Rule Title: Windows Server 2019 must only allow administrators responsible for the member server or standalone system to have Administrator rights on the system. Severity: high Vuln ID: V-205746 STIG ID: WN19-MS-000010 Discussion: An account that does not have Administrator duties must not have Administrator rights. Such rights would allow the account to bypass or modify required security restrictions on that machine and make it vulnerable to attack. System administrators must log on to systems using only accounts with the minimum level of authority necessary. For domain-joined member servers, the Domain Admins group must be replaced by a domain member server administrator group (see V-36433 in the Active Directory Domain STIG). Restricting highly privileged accounts from the local Administrators group helps mitigate the risk of privilege escalation resulting from credential theft attacks. Standard user accounts must not be members of the built-in Administrators group. Check Content: This applies to member servers and standalone systems. A separate version applies to domain controllers. Open "Computer Management". Navigate to "Groups" under "Local Users and Groups". Review the local "Administrators" group. Only administrator groups or accounts responsible for administration of the system may be members of the group. For domain-joined member servers, the Domain Admins group must be replaced by a domain member server administrator group. Standard user accounts must not be members of the local Administrator group. If accounts that do not have responsibility for administration of the system are members of the local Administrators group, this is a finding. If the built-in Administrator account or other required administrative accounts are found on the system, this is not a finding. #> return 'Not Reviewed'
48.710526
335
0.817396
e28dc1737276a508ab6fd73f6656e9ffeec3f419
4,889
py
Python
server/comments/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
1
2021-04-06T22:35:53.000Z
2021-04-06T22:35:53.000Z
server/comments/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
null
null
null
server/comments/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
null
null
null
from django.http import Http404 from django.core.paginator import Paginator from django.shortcuts import render from .serializers import CommentSerializer from .models import Comment from posts.models import Post from main.models import Author, Followers from inbox.models import Inbox from rest_framework import generics, status from rest_framework.response import Response from main import utils class CreateCommentView(generics.ListCreateAPIView): http_method_names = ['get', 'post'] serializer_class = CommentSerializer def get_queryset(self): post_id = self.kwargs['post_id'] post_owner = self.kwargs['author_id'] request_user = self.request.user.id # person doing GET queryset = [] try: post = Post.objects.get(id=post_id) # if requesting user is the post owner # OR it is a public post, then return all comments if (request_user == post_owner or post.visibility == Post.PUBLIC): queryset = Comment.objects.filter(post=post_id).order_by('published') # if it is a friend post, check if requesting user is a friend # and return only comments between friend and author else: author1 = Author.objects.get(id=request_user) author2 = Author.objects.get(id=post_owner) if author1 and author2 and Followers.is_friends(self, author1, author2): comments = Comment.objects.filter( post=post_id, ).order_by('published') for comment in comments: if (comment.author['id'] == str(request_user) or comment.author['id'] == str(post_owner)): queryset.append(comment) except (Post.DoesNotExist, Comment.DoesNotExist, Author.DoesNotExist): raise Http404 return queryset # GET: Paginated comments # /service/author/<uuid:author_id>/posts/<uuid:post_id>/comments?page=1&size=2 def get(self, request, *args, **kwargs): page_size = request.query_params.get('size') or 20 page = request.query_params.get('page') or 1 comments = self.get_queryset() paginator = Paginator(comments, page_size) data = [] items = paginator.page(page) for item in items: data.append(CommentSerializer(item).data) return Response(data) # POST: Add your comment to the post def post(self, request, *args, **kwargs): post_id = str(self.kwargs['post_id']) post_owner = str(self.kwargs['author_id']) request_user = str(self.request.data['author']['id']) # post + post author is on our own server try: post = Post.objects.get(id=post_id) # if requesting user is the post owner # OR it is a public post, then allow user to make a comment # OR it is a friend post, and request_user is a friend of post_owner if (request_user == post_owner or post.visibility == Post.PUBLIC): comment = self.create(request, *args, **kwargs) post_owner_author = Author.objects.get(id=post_owner) try: comment_receivers = Followers.objects.get(author=post_owner_author).followers.all() except Followers.DoesNotExist: comment_receivers = [] for comment_receiver in comment_receivers: Inbox.objects.get(author=comment_receiver).send_to_inbox(post_id) # TODO: traverse list of remote followers (json field) and send to remote authors through API else: author1 = Author.objects.get(id=request_user) author2 = Author.objects.get(id=post_owner) if author1 and author2 and Followers.is_friends(self, author1, author2): comment = self.create(request, *args, **kwargs) comment_receiver = Author.objects.get(id=post_owner) Inbox.objects.get(author=comment_receiver).send_to_inbox(post_id) return Response(comment.data, status=status.HTTP_201_CREATED) return Response(status=status.HTTP_403_FORBIDDEN) except (Post.DoesNotExist, Comment.DoesNotExist): raise Http404 except Author.DoesNotExist: raise Http404 return Response(comment.data, status=status.HTTP_201_CREATED) # Called during POST, before saving comment to the database def perform_create(self, serializer, **kwargs): request_author = self.request.data['author'] # person doing POST serializer.save( author=request_author, post=Post.objects.get(id=self.kwargs.get('post_id')), )
43.651786
114
0.622622
59344ef4c3308b57e75fcb09a03088a6cb7346a6
268,119
dart
Dart
lib/internal/locales/locales.g.dart
pagdot/Leaflet
6f428dcae05f9acf44e87a09f5d31181e5057f00
[ "MIT" ]
175
2020-09-11T08:07:18.000Z
2022-03-30T16:29:14.000Z
lib/internal/locales/locales.g.dart
Fxztam/Leaflet
f9bbfbae34c3f52b86cedd6c099b0fcb48d61f05
[ "MIT" ]
36
2019-10-06T18:44:20.000Z
2020-08-15T22:48:07.000Z
lib/internal/locales/locales.g.dart
Fxztam/Leaflet
f9bbfbae34c3f52b86cedd6c099b0fcb48d61f05
[ "MIT" ]
30
2019-10-07T03:04:16.000Z
2020-08-31T14:20:43.000Z
// @dart=2.12 import 'dart:ui'; // ignore_for_file: avoid_escaping_inner_quotes class Locales { Locales._(); static List<Locale> get supported => [ const Locale("ar", "AR"), const Locale("de", "DE"), const Locale("el", "EL"), const Locale("en", "US"), const Locale("es", "ES"), const Locale("fr", "FR"), const Locale("gl", "GL"), const Locale("hu", "HU"), const Locale("it", "IT"), const Locale("nl", "NL"), const Locale("pl", "PL"), const Locale("pt", "BR"), const Locale("ro", "RO"), const Locale("ru", "RU"), const Locale("sr", "SR"), const Locale("tr", "TR"), const Locale("uk", "UK"), const Locale("vi", "VI"), const Locale("zh", "CN"), const Locale("zh", "TW"), ]; static Map<String, Map<String, String>> get data => { _$LocaleArAR().locale: _$LocaleArAR().data, _$LocaleDeDE().locale: _$LocaleDeDE().data, _$LocaleElEL().locale: _$LocaleElEL().data, _$LocaleEnUS().locale: _$LocaleEnUS().data, _$LocaleEsES().locale: _$LocaleEsES().data, _$LocaleFrFR().locale: _$LocaleFrFR().data, _$LocaleGlGL().locale: _$LocaleGlGL().data, _$LocaleHuHU().locale: _$LocaleHuHU().data, _$LocaleItIT().locale: _$LocaleItIT().data, _$LocaleNlNL().locale: _$LocaleNlNL().data, _$LocalePlPL().locale: _$LocalePlPL().data, _$LocalePtBR().locale: _$LocalePtBR().data, _$LocaleRoRO().locale: _$LocaleRoRO().data, _$LocaleRuRU().locale: _$LocaleRuRU().data, _$LocaleSrSR().locale: _$LocaleSrSR().data, _$LocaleTrTR().locale: _$LocaleTrTR().data, _$LocaleUkUK().locale: _$LocaleUkUK().data, _$LocaleViVI().locale: _$LocaleViVI().data, _$LocaleZhCN().locale: _$LocaleZhCN().data, _$LocaleZhTW().locale: _$LocaleZhTW().data, }; static Map<String, int> get stringData => { _$LocaleArAR().locale: _$LocaleArAR().translatedStrings, _$LocaleDeDE().locale: _$LocaleDeDE().translatedStrings, _$LocaleElEL().locale: _$LocaleElEL().translatedStrings, _$LocaleEnUS().locale: _$LocaleEnUS().translatedStrings, _$LocaleEsES().locale: _$LocaleEsES().translatedStrings, _$LocaleFrFR().locale: _$LocaleFrFR().translatedStrings, _$LocaleGlGL().locale: _$LocaleGlGL().translatedStrings, _$LocaleHuHU().locale: _$LocaleHuHU().translatedStrings, _$LocaleItIT().locale: _$LocaleItIT().translatedStrings, _$LocaleNlNL().locale: _$LocaleNlNL().translatedStrings, _$LocalePlPL().locale: _$LocalePlPL().translatedStrings, _$LocalePtBR().locale: _$LocalePtBR().translatedStrings, _$LocaleRoRO().locale: _$LocaleRoRO().translatedStrings, _$LocaleRuRU().locale: _$LocaleRuRU().translatedStrings, _$LocaleSrSR().locale: _$LocaleSrSR().translatedStrings, _$LocaleTrTR().locale: _$LocaleTrTR().translatedStrings, _$LocaleUkUK().locale: _$LocaleUkUK().translatedStrings, _$LocaleViVI().locale: _$LocaleViVI().translatedStrings, _$LocaleZhCN().locale: _$LocaleZhCN().translatedStrings, _$LocaleZhTW().locale: _$LocaleZhTW().translatedStrings, }; } abstract class _$LocaleBase { String? locale; Map<String, String>? data; int? translatedStrings; } class _$LocaleArAR extends _$LocaleBase { @override String get locale => "ar-AR"; @override Map<String, String> get data => { "common.cancel": "إلغاء", "common.reset": "إعادة تعيين", "common.restore": "إستعادة", "common.confirm": "تأكيد", "common.save": "حفظ", "common.delete": "حذف", "common.undo": "تراجع", "common.redo": "إعادة تنفيذ", "common.edit": "تعديل", "common.go_on": "إستمرار", "common.exit": "خروج", "common.ok": "حسناً", "common.share": "مشاركة", "common.not_now": "ليس الآن", "common.update": "تحديث", "common.expand": "توسيع", "common.collapse": "تصغير", "common.create": "إنشاء", "common.close": "إغلاق", "common.x_of_y": "{} من {}", "common.quick_tip": "نصائح سريعة", "common.new_note": "ملاحظة جديدة", "common.new_list": "قائمة جديدة", "common.new_image": "صورة جديدة", "common.new_drawing": "رسم جديد", "common.import_note": "استيراد ملاحظة", "common.biometrics_prompt": "تأكيد القياسات الحيوية", "common.master_pass.modify": "تعديل المرور الرئيسي", "common.master_pass.confirm": "تأكيد المرور الرئيسي", "common.master_pass.incorrect": "تصريح المرور الرئيسي غير صحيح", "common.backup_password.title": "ادخل كلمة المرور الاحتياطية", "common.backup_password.use_master_pass": "استخدام تصريح المرور الرئيسي ككلمة مرور", "common.restore_dialog.title": "تأكيد استعادة الملاحظة", "common.restore_dialog.backup_name": "اسم النسخة الاحتياطية: {}", "common.restore_dialog.creation_date": "تاريخ الإنشاء: {}", "common.restore_dialog.app_version": "إصدار التطبيق: {}", "common.restore_dialog.note_count": "عدد الملاحظات: {}", "common.restore_dialog.tag_count": "عدد العلامات: {}", "common.are_you_sure": "هل أنت متأكد؟", "common.color.none": "لا شيء", "common.color.red": "أحمر", "common.color.orange": "برتقالي", "common.color.yellow": "أصفر", "common.color.green": "أخضر", "common.color.cyan": "سماوي", "common.color.light_blue": "ازرق فاتح", "common.color.blue": "أزرق", "common.color.purple": "أرجواني", "common.color.pink": "وردي", "common.notification.default_title": "الإشعار المثبت", "common.notification.details_title": "الإشعارات المثبته", "common.notification.details_desc": "إشعارات المستخدم المثبته", "common.tag.new": "علامة جديدة", "common.tag.modify": "تعديل العلامة", "common.tag.textbox_hint": "الإسم", "main_page.write_note": "كتابة ملاحظة", "main_page.settings": "الإعدادات", "main_page.search": "بحث", "main_page.account": "الحساب", "main_page.restore_prompt.archive": "هل تريد إستعادة كل الملاحظات في الأرشيف؟", "main_page.restore_prompt.trash": "هل تريد إستعادة كل الملاحظات في سلة المهملات؟", "main_page.tag_delete_prompt": "سيتم فقدان هذه العلامة إلى الأبد إذا قمت بحذفها", "main_page.deleted_empty_note": "تم حذف ملاحظة فارغة", "main_page.empty_state.home": "لم يتم إضافة ملاحظات بعد", "main_page.empty_state.archive": "الأرشيف فارغ", "main_page.empty_state.trash": "المهملات فارغة", "main_page.empty_state.favourites": "لا مفضلات إلى الآن", "main_page.empty_state.tag": "لا توجد ملاحظات بهذه العلامة", "main_page.note_list_x_more_items.zero": "{} عنصر إضافي", "main_page.note_list_x_more_items.one": "{} عنصر إضافي", "main_page.note_list_x_more_items.two": "{} المزيد من العناصر", "main_page.note_list_x_more_items.few": "{} عنصر إضافي", "main_page.note_list_x_more_items.many": "{} عنصر آخر", "main_page.note_list_x_more_items.other": "{} المزيد من العناصر", "main_page.title.notes": "ملاحظات", "main_page.title.archive": "الأرشيف", "main_page.title.trash": "سلّة المهملات", "main_page.title.favourites": "المفضلات", "main_page.title.tag": "علامة", "main_page.title.all": "الكل", "main_page.selection_bar.close": "إغلاق", "main_page.selection_bar.select": "اختر", "main_page.selection_bar.select_all": "اختيار الكل", "main_page.selection_bar.add_favourites": "إضافة إلى المفضلة", "main_page.selection_bar.remove_favourites": "إزالة من المفضلة", "main_page.selection_bar.change_color": "تغيير اللون", "main_page.selection_bar.archive": "الأرشيف", "main_page.selection_bar.delete": "نقل إلى المهملات", "main_page.selection_bar.perma_delete": "حذف", "main_page.selection_bar.pin": "تثبيت", "main_page.selection_bar.unpin": "إلغاء التثبيت", "main_page.selection_bar.save": "الحفظ محليا", "main_page.selection_bar.save.note_locked": "الملاحظة مغلقة، تصريح المرور مطلوب", "main_page.selection_bar.save.success": "تم تصدير الملاحظة بنجاح", "main_page.selection_bar.save.oopsie": "حدث خطأ أثناء عملية التصدير أو تم إلغاء العملية", "main_page.selection_bar.share": "مشاركة", "main_page.notes_deleted.zero": "{} ملاحظات نُقلت للمهملات", "main_page.notes_deleted.one": "{} ملاحظة نُقلت للمهملات", "main_page.notes_deleted.two": "{} ملاحظتان نُقلتا للمهملات", "main_page.notes_deleted.few": "{} ملاحظات نُقلت للمهملات", "main_page.notes_deleted.many": "{} ملاحظات نُقلت للمهملات", "main_page.notes_deleted.other": "{} ملاحظات نُقلت للمهملات", "main_page.notes_perma_deleted.zero": "تم حذف {} ملاحظة", "main_page.notes_perma_deleted.one": "تم حذف {} ملاحظة", "main_page.notes_perma_deleted.two": "تم حذف {} ملاحظة", "main_page.notes_perma_deleted.few": "تم حذف {} ملاحظة", "main_page.notes_perma_deleted.many": "تم حذف {} ملاحظة", "main_page.notes_perma_deleted.other": "{} ملاحظات حذفت", "main_page.notes_archived.zero": "تم أرشفة{} ملاحظة", "main_page.notes_archived.one": "تم أرشفة {} ملاحظة", "main_page.notes_archived.two": "تم أرشفة{} ملاحظات", "main_page.notes_archived.few": "تم أرشفة {} ملاحظات", "main_page.notes_archived.many": "تم أرشفة {} ملاحظات", "main_page.notes_archived.other": "تم أرشفة {} ملاحظات", "main_page.notes_restored.zero": "تم إستعادة {} ملاحظة", "main_page.notes_restored.one": "تم إستعادة {} ملاحظة", "main_page.notes_restored.two": "تم إستعادة {} ملاحظات", "main_page.notes_restored.few": "تم إستعادة {} ملاحظات", "main_page.notes_restored.many": "تم إستعادة {} ملاحظات", "main_page.notes_restored.other": "إستعادة {} ملاحظات", "main_page.export.success": "تم تصدير الملاحظة بنجاح", "main_page.export.failure": "حدث خطأ أثناء التصدير", "main_page.import_psa": "اذا لم تتكمن من العثور على ملاحظاتك القديمة من PotatoNotes يمكنك استعادة الملاحظات عن طريق الذهاب الى \n\n {} \n\n و من هناك قم باختيار {}", "note_page.title_hint": "العنوان", "note_page.content_hint": "المحتوى", "note_page.list_item_hint": "إدخال", "note_page.add_entry_hint": "إضافة مدخل", "note_page.toolbar.tags": "إدارة العلامات", "note_page.toolbar.color": "تغيير اللون", "note_page.toolbar.add_item": "إضافة عنصر", "note_page.privacy.title": "خيارات الخصوصية", "note_page.privacy.hide_content": "إخفاء المحتوى في الصفحة الرئيسية", "note_page.privacy.lock_note": "قفل الملاحظة", "note_page.privacy.lock_note.missing_pass": "يجب عليك تعيين مرور رئيسي من الإعدادات", "note_page.privacy.use_biometrics": "استخدام الbiometrics للفتح", "note_page.toggle_list": "تبديل القائمة", "note_page.image_gallery": "صورة من المعرض", "note_page.image_camera": "التقاط صورة", "note_page.drawing": "إضافة رسم", "note_page.added_favourites": "تم إضافة الملاحظة إلى المفضلة", "note_page.removed_favourites": "تمت إزالة الملاحظة من المفضلة", "settings.title": "الإعدادات", "settings.personalization.title": "التخصيص", "settings.personalization.theme_mode": "وضع السمة", "settings.personalization.theme_mode.system": "النظام", "settings.personalization.theme_mode.light": "فاتح", "settings.personalization.theme_mode.dark": "غامق", "settings.personalization.use_amoled": "استخدم السمة السوداء", "settings.personalization.use_custom_accent": "تتبع سمة النظام", "settings.personalization.custom_accent": "إختيار لون رئيسي خاص", "settings.personalization.use_grid": "عرض الشبكة للملاحظات", "settings.personalization.locale": "موضع التطبيق", "settings.personalization.locale.device_default": "الجهاز الافتراضي", "settings.personalization.locale.x_translated": "تمت ترجمة {}%", "settings.privacy.title": "الخصوصية", "settings.privacy.use_master_pass": "استخدام التصريح الرئيسي", "settings.privacy.use_master_pass.disclaimer": "تحذير: إذا كنت قد نسيت المرور لا يمكنك إعادة تعيينه، سوف تحتاج إلى إلغاء تثبيت التطبيق، وبالتالي يتم مسح جميع الملاحظات، وإعادة تثبيتها. من فضلك قم بكتابتها في مكان ما.", "settings.privacy.modify_master_pass": "تعديل المرور الرئيسي", "settings.backup_restore.title": "النسخ الاحتياطي والاستعادة", "settings.backup_restore.backup": "النسخ الاحتياطي", "settings.backup_restore.backup_desc": "إنشاء نسخة محلية من ملاحظاتك", "settings.backup_restore.backup.nothing_to_restore.title": "لا توجد ملاحظات للاستعادة!", "settings.backup_restore.backup.nothing_to_restore.desc": "لا توجد ملاحظات محفوظة في النسخ الاحتياطي", "settings.backup_restore.restore": "إستعادة", "settings.backup_restore.restore_desc": "استعادة نسخة احتياطية من نسخة سابقة من leaflet", "settings.backup_restore.restore.status.success": "تم إستعادة الملاحظة بنجاح", "settings.backup_restore.restore.status.wrong_format": "الملف المحدد ليس نسخة احتياطية صالحة", "settings.backup_restore.restore.status.wrong_password": "كلمة المرور التي أدخلتها غير قادرة على فك تشفير النسخة الاحتياطية", "settings.backup_restore.restore.status.already_exists": "الملاحظة داخل النسخة الاحتياطية موجودة بالفعل في قاعدة البيانات", "settings.backup_restore.restore.status.unknown": "حدثت مشكلة أثناء استيراد الملاحظة", "settings.backup_restore.import": "استيراد", "settings.backup_restore.import_desc": "استيراد ملاحظات من نسخة من PotatoNotes", "settings.info.title": "معلومات", "settings.info.about_app": "حول PotatoNotes", "settings.info.update_check": "تحقق من وجود تحديثات للتطبيق", "settings.info.translate": "ترجمة التطبيق", "settings.info.bug_report": "أبلغ عن خلل", "settings.debug.title": "Debug", "settings.debug.show_setup_screen": "إظهار شاشة الإعداد عند بدء التشغيل التالي", "settings.debug.loading_overlay": "اختبار محمل التراكبات", "settings.debug.clear_database": "مسح قاعدة البيانات", "settings.debug.migrate_database": "دمج قاعدة البيانات", "settings.debug.generate_trash": "إنشاء سلة المهملات", "settings.debug.log_level": "مستوى التسجيل", "about.title": "الإعدادات", "about.pwa_version": "إصدار PWA", "about.links": "الروابط", "about.contributors": "المساهمون", "about.contributors.hrx": "المطور الرئيسي وتصميم التطبيق", "about.contributors.bas": "المزامنة والتطبيق", "about.contributors.nico": "المزامنة التلقائية", "about.contributors.kat": "المزامنة القديمة", "about.contributors.rohit": "الرسوم وألوان الملاحظات", "about.contributors.rshbfn": "أيقونة التطبيق واللون العام", "about.contributors.elias": "اسم العلامة التجارية Leaflet", "about.contributors.akshit": "مساعدة الأمان والخلفية", "search.textbox_hint": "بحث", "search.tag_create_empty_hint": "إنشاء وسم جديد", "search.tag_create_hint": "إنشاء علامة \"{}\"", "search.type_to_search": "اكتب لبدء البحث", "search.nothing_found": "لم يتم العثور على شيء...", "search.note.filters.case_sensitive": "حساسية الحالة", "search.note.filters.favourites": "المفضلة فقط", "search.note.filters.locations": "مواقع الملاحظات", "search.note.filters.locations.normal": "عادي", "search.note.filters.locations.archive": "الأرشيف", "search.note.filters.locations.trash": "سلّة المهملات", "search.note.filters.locations.normal_title": "ملاحظات عادية", "search.note.filters.locations.archive_title": "الملاحظات المؤرشفة", "search.note.filters.locations.trash_title": "الملاحظات المحذوفة", "search.note.filters.color": "فلتر اللون", "search.note.filters.date": "فلتر التاريخ", "search.note.filters.date.mode_title": "وضع التصفية", "search.note.filters.date.mode_after": "بعد تاريخ", "search.note.filters.date.mode_exact": "تاريخ محدد", "search.note.filters.date.mode_before": "قبل التاريخ", "search.note.filters.tags": "الوسوم", "search.note.filters.tags.selected.zero": "{} محدد", "search.note.filters.tags.selected.one": "{} المحدد", "search.note.filters.tags.selected.two": "{} المحدد", "search.note.filters.tags.selected.few": "تم تحديدها {}", "search.note.filters.tags.selected.many": "{} محددة", "search.note.filters.tags.selected.other": "{} محدد", "search.note.filters.clear": "مسح عوامل التصفية", "drawing.color_black": "أسود", "drawing.exit_prompt": "سيتم فقدان أي تغيير غير محفوظ. هل تريد الخروج؟", "drawing.clear_canvas_warning": "لا يمكن التراجع عن هذه العملية. هل تريد المتابعة؟", "drawing.tools.brush": "فرشاة", "drawing.tools.eraser": "ممحاة", "drawing.tools.marker": "المحدد", "drawing.tools.color_picker": "لون", "drawing.tools.radius_picker": "نصف قُطر", "drawing.tools.clear": "امسح اللوحة", "setup.button.get_started": "ابدأ الاستخدام", "setup.button.finish": "إنهاء", "setup.button.next": "التالي", "setup.button.back": "رجوع", "setup.welcome.catchphrase": "تطبيق ملاحظاتك المفضل الجديد", "setup.basic_customization.title": "التخصيص البسيط", "setup.restore_import.title": "الاستعادة والاستيراد", "setup.restore_import.desc": "يمكنك اختيار استعادة الملاحظات من إصدار آخر من Leaflet أو استيراد الملاحظات من إصدار قديم من PotatoNotes", "setup.restore_import.restore_btn": "الاستعادة من Leaflet", "setup.restore_import.import_btn": "استيراد من PotatoNotes", "setup.finish.title": "كل شيء جاهز!", "setup.finish.last_words": "لقد أكملت إعداد Leaflet، الآن يجب أن يكون التطبيق جاهزا للاستخدام الأول. إذا كنت ترغب في تغيير شيء ما، انتقل إلى الإعدادات. آمل أن تستمتع Leaflet بقدر ما أفعل!", "backup_restore.backup.title": "إنشاء نسخة احتياطية", "backup_restore.backup.password": "كلمة المرور", "backup_restore.backup.name": "الاسم (اختياري)", "backup_restore.backup.num_of_notes": "عدد الملاحظات في النسخة الاحتياطية: {}", "backup_restore.backup.protected_notes_prompt": "بعض الملاحظات مقفلة، تحتاج إلى كلمة المرور للمضي قدما", "backup_restore.backup.creating": "إنشاء نسخة احتياطية", "backup_restore.backup.creating_progress": "النسخ الاحتياطي للملاحظة {} من {}", "backup_restore.backup.complete.success": "اكتمل النسخ الاحتياطي بنجاح!", "backup_restore.backup.complete.failure": "تمت مقاطعة عملية النسخ الاحتياطي", "backup_restore.backup.complete_desc.success": "عملية النسخ الاحتياطي كانت ناجحة! يمكنك العثور على النسخة الاحتياطية في ", "backup_restore.backup.complete_desc.success.no_file": "عملية النسخ الاحتياطي كانت ناجحة! يمكنك الآن إغلاق مربع الحوار هذا", "backup_restore.backup.complete_desc.failure": "حدث خطأ ما أو أغلقت عملية الحفظ. يمكنك إعادة محاولة عملية النسخ الاحتياطي في أي وقت", "backup_restore.restore.title": "حدد نسخة احتياطية للاستعادة", "backup_restore.restore.file_open": "فتح ملف", "backup_restore.restore.from_file": "{} (من ملف)", "backup_restore.restore.info": "عدد الملاحظات: {}، عدد العلامات: {}\nتم إنشاؤها في {}", "backup_restore.restore.no_backups": "لا توجد نسخ احتياطية متاحة. حاول فتح ملف بدلا من ذلك", "backup_restore.restore.failure": "غير قادر على استعادة النسخة الاحتياطية", "backup_restore.import.title": "تحديد مصدر الاستيراد", "backup_restore.import.open_db": "فتح ملف النسخ الاحتياطي PotatoNotes", "backup_restore.import.open_previous": "فتح قاعدة بيانات الإصدار السابق", "backup_restore.import.open_previous.unsupported_platform": "فقط Android يدعم التحميل من الإصدار السابق", "backup_restore.import.open_previous.no_file": "لم يتم العثور على قاعدة بيانات من الإصدار القديم", "backup_restore.import.notes_loaded": "تم تحميل الملاحظات بنجاح", "backup_restore.select_notes": "حدد ملاحظات للاستعادة", "backup_restore.replace_existing": "استبدال الملاحظات الموجودة", "miscellaneous.updater.update_available": "التحديث متوفر!", "miscellaneous.updater.update_available_desc": "يتوفر تحديث جديد للتنزيل، انقر على التحديث لتنزيل التحديث", "miscellaneous.updater.already_on_latest": "أحدث نسخة", "miscellaneous.updater.already_on_latest_desc": "أنت بالفعل على أحدث إصدار من التطبيق", }; @override int get translatedStrings => 245; } class _$LocaleDeDE extends _$LocaleBase { @override String get locale => "de-DE"; @override Map<String, String> get data => { "common.cancel": "Abbrechen", "common.reset": "Zurücksetzen", "common.restore": "Wiederherstellen", "common.confirm": "Bestätigen", "common.save": "Sichern", "common.delete": "Löschen", "common.undo": "Rückgängig", "common.redo": "Wiederholen", "common.edit": "Bearbeiten", "common.go_on": "Weiter", "common.exit": "Beenden", "common.ok": "Ok", "common.share": "Teilen", "common.not_now": "Nicht jetzt", "common.update": "Aktualisieren", "common.expand": "Aufklappen", "common.collapse": "Einklappen", "common.create": "Neu", "common.close": "Schließen", "common.x_of_y": "{} von {}", "common.quick_tip": "Tipp", "common.new_note": "Neue Notiz", "common.new_list": "Neue Liste", "common.new_image": "Neues Bild", "common.new_drawing": "Neue Zeichnung", "common.import_note": "Notiz importieren", "common.biometrics_prompt": "Biometrie bestätigen", "common.master_pass.modify": "Master-Pass ändern", "common.master_pass.confirm": "Master-Pass bestätigen", "common.master_pass.incorrect": "Ungültiges Master Passwort", "common.backup_password.title": "Sicherungspasswort eingeben", "common.backup_password.use_master_pass": "Master-Pass als Passwort verwenden", "common.restore_dialog.title": "Notizwiederherstellung bestätigen", "common.restore_dialog.backup_name": "Sicherungsname: {}", "common.restore_dialog.creation_date": "Erstellt am: {}", "common.restore_dialog.app_version": "App-Version: {}", "common.restore_dialog.note_count": "Notizen: {}", "common.restore_dialog.tag_count": "Taganzahl: {}", "common.are_you_sure": "Bist du sicher?", "common.color.none": "Keine", "common.color.red": "Rot", "common.color.orange": "Orange", "common.color.yellow": "Gelb", "common.color.green": "Grün", "common.color.cyan": "Blaugrün", "common.color.light_blue": "Hellblau", "common.color.blue": "Blau", "common.color.purple": "Lila", "common.color.pink": "Rosa", "common.notification.default_title": "Angeheftete Benachrichtigung", "common.notification.details_title": "Angeheftete Benachrichtigungen", "common.notification.details_desc": "Vom Benutzer angeheftete Benachrichtigungen", "common.tag.new": "Neuer Tag", "common.tag.modify": "Tag bearbeiten", "common.tag.textbox_hint": "Name", "main_page.write_note": "Notiz schreiben", "main_page.settings": "Einstellungen", "main_page.search": "Suche", "main_page.account": "Konto", "main_page.restore_prompt.archive": "Möchtest du alle Notizen im Archiv wiederherstellen?", "main_page.restore_prompt.trash": "Möchtest du alle Notizen im Papierkorb wiederherstellen?", "main_page.tag_delete_prompt": "Dieser Tag kann nach dem Löschen nicht wiederhergestellt werden", "main_page.deleted_empty_note": "Leere Notiz gelöscht", "main_page.empty_state.home": "Noch keine Notizen hinzugefügt", "main_page.empty_state.archive": "Das Archiv ist leer", "main_page.empty_state.trash": "Der Papierkorb ist leer", "main_page.empty_state.favourites": "Momentan keine Favoriten", "main_page.empty_state.tag": "Keine Notizen mit diesem Tag", "main_page.note_list_x_more_items.one": "{} weitere Elemente", "main_page.note_list_x_more_items.other": "{} weitere Elemente", "main_page.title.notes": "Notizen", "main_page.title.archive": "Archiv", "main_page.title.trash": "Papierkorb", "main_page.title.favourites": "Favoriten", "main_page.title.tag": "Tag", "main_page.title.all": "Alle", "main_page.selection_bar.close": "Schließen", "main_page.selection_bar.select": "Auswählen", "main_page.selection_bar.select_all": "Alles auswählen", "main_page.selection_bar.add_favourites": "Zu Favoriten hinzufügen", "main_page.selection_bar.remove_favourites": "Aus Favoriten entfernen", "main_page.selection_bar.change_color": "Farbe ändern", "main_page.selection_bar.archive": "Archiv", "main_page.selection_bar.delete": "In Papierkorb verschieben", "main_page.selection_bar.perma_delete": "Löschen", "main_page.selection_bar.pin": "Anheften", "main_page.selection_bar.unpin": "Lösen", "main_page.selection_bar.save": "Lokal speichern", "main_page.selection_bar.save.note_locked": "Diese Notiz ist gesperrt, Master-Pass wird benötigt", "main_page.selection_bar.save.success": "Notiz erfolgreich exportiert", "main_page.selection_bar.save.oopsie": "Beim Exportieren ist etwas schiefgelaufen oder der Vorgang wurde abgebrochen", "main_page.selection_bar.share": "Teilen", "main_page.notes_deleted.one": "{} Element in den Papierkorb verschoben", "main_page.notes_deleted.other": "{} Elemente in den Papierkorb verschoben", "main_page.notes_perma_deleted.one": "{} Notiz gelöscht", "main_page.notes_perma_deleted.other": "{} Notizen gelöscht", "main_page.notes_archived.one": "{} Notiz archiviert", "main_page.notes_archived.other": "{} Notizen archiviert", "main_page.notes_restored.one": "{} Notiz wiederhergestellt", "main_page.notes_restored.other": "{} Notizen wiederhergestellt", "main_page.export.success": "Notiz erfolgreich exportiert", "main_page.export.failure": "Beim Exportieren ist etwas schief gelaufen", "main_page.import_psa": "Wenn du deine älteren Notizen aus PotatoNotes nicht findest, kannst du sie wiederherstellen, indem du zu\n\n{}\n\ngehst und dort \"{} \" auswählst", "note_page.title_hint": "Titel", "note_page.content_hint": "Inhalt", "note_page.list_item_hint": "Eingabe", "note_page.add_entry_hint": "Eintrag hinzufügen", "note_page.toolbar.tags": "Tags verwalten", "note_page.toolbar.color": "Farbe ändern", "note_page.toolbar.add_item": "Element hinzufügen", "note_page.privacy.title": "Privatsphäre-Einstellungen", "note_page.privacy.hide_content": "Inhalte auf Hauptseite verbergen", "note_page.privacy.lock_note": "Notiz sperren", "note_page.privacy.lock_note.missing_pass": "Du musst ein Master-Passwort in den Einstellungen festlegen", "note_page.privacy.use_biometrics": "Benutze Biometrie zum Entsperren", "note_page.toggle_list": "Checkliste anzeigen", "note_page.image_gallery": "Bild aus Galerie", "note_page.image_camera": "Foto aufnehmen", "note_page.drawing": "Zeichnung hinzufügen", "note_page.added_favourites": "Notiz zu Favoriten hinzugefügt", "note_page.removed_favourites": "Notiz aus Favoriten entfernt", "settings.title": "Einstellungen", "settings.personalization.title": "Personalisierung", "settings.personalization.theme_mode": "Farbthema", "settings.personalization.theme_mode.system": "System", "settings.personalization.theme_mode.light": "Hell", "settings.personalization.theme_mode.dark": "Dunkel", "settings.personalization.use_amoled": "Schwarz AMOLED", "settings.personalization.use_custom_accent": "System-Akzentfarben folgen", "settings.personalization.custom_accent": "Eigene Akzentfarbe wählen", "settings.personalization.use_grid": "Rasteransicht für Notizen", "settings.personalization.locale": "Lokalisierung", "settings.personalization.locale.device_default": "Gerätestandard", "settings.personalization.locale.x_translated": "{}% übersetzt", "settings.privacy.title": "Datenschutz", "settings.privacy.use_master_pass": "Master-Pass verwenden", "settings.privacy.use_master_pass.disclaimer": "Warnung: Falls sie den Master-Pass vergessen, können sie ihn NICHT zurücksetzen. Nur wenn sie die App löschen und neu installieren. Dabei werden alle Daten gelöscht. Bitte schreiben Sie ihn auf und bewahren sie ihn sicher auf.", "settings.privacy.modify_master_pass": "Master-Pass ändern", "settings.backup_restore.title": "Sichern und Wiederherstellen", "settings.backup_restore.backup": "Sichern", "settings.backup_restore.backup_desc": "Erstelle eine lokale Kopie deiner Notizen", "settings.backup_restore.backup.nothing_to_restore.title": "Keine Notizen zum Wiederherstellen!", "settings.backup_restore.backup.nothing_to_restore.desc": "Keine gespeicherten Notizen zum Sichern vorhanden", "settings.backup_restore.restore": "Wiederherstellen", "settings.backup_restore.restore_desc": "Sicherungskopie aus einer Version von Leaflet wiederherstellen", "settings.backup_restore.restore.status.success": "Die Notiz wurde erfolgreich wiederhergestellt", "settings.backup_restore.restore.status.wrong_format": "Die angegebene Datei ist kein gültiges Leaflet-Backup", "settings.backup_restore.restore.status.wrong_password": "Das eingegebene Passwort konnte die Sicherung nicht entschlüsseln", "settings.backup_restore.restore.status.already_exists": "Die Notiz innerhalb des Backups ist bereits in der Datenbank vorhanden", "settings.backup_restore.restore.status.unknown": "Beim Importieren der Notiz ist ein Problem aufgetreten", "settings.backup_restore.import": "Importieren", "settings.backup_restore.import_desc": "Importiere Notizen aus einer Version von PotatoNotes", "settings.info.title": "Info", "settings.info.about_app": "Über PotatoNotes", "settings.info.update_check": "Auf App-Updates prüfen", "settings.info.translate": "Übersetze die App", "settings.info.bug_report": "Bug melden", "settings.debug.title": "Fehlerbeseitigung", "settings.debug.show_setup_screen": "Erststartmenü bei nächstem Start", "settings.debug.loading_overlay": "Lade Overlay prüfen", "settings.debug.clear_database": "Datenbank leeren", "settings.debug.migrate_database": "Datenbank integrieren", "settings.debug.generate_trash": "Papierkorb erzeugen", "settings.debug.log_level": "Log-Level", "about.title": "Einstellungen", "about.pwa_version": "PWA-Version", "about.links": "Links", "about.contributors": "Mitwirkende", "about.contributors.hrx": "Lead Entwickler und App-Design", "about.contributors.bas": "Sync API und Anwendung", "about.contributors.nico": "Sync API", "about.contributors.kat": "Alte Sync API", "about.contributors.rohit": "Abbildungen und Notiz-Farben", "about.contributors.rshbfn": "Icon und Haupt Akzent", "about.contributors.elias": "Leaflet Markenname", "about.contributors.akshit": "Sicherheit und Backend Hilfe", "search.textbox_hint": "Suche", "search.tag_create_empty_hint": "Neues Tag erstellen", "search.tag_create_hint": "Erstelle Etikett \"{}\"", "search.type_to_search": "Tippen um Suche zu Starten", "search.nothing_found": "Nichts gefunden...", "search.note.filters.case_sensitive": "Groß-/Kleinschreibung", "search.note.filters.favourites": "Nur Favoriten", "search.note.filters.locations": "Notizorte", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Archiv", "search.note.filters.locations.trash": "Papierkorb", "search.note.filters.locations.normal_title": "Normale Notizen", "search.note.filters.locations.archive_title": "Archivierte Notizen", "search.note.filters.locations.trash_title": "Gelöschte Notizen", "search.note.filters.color": "Farbfilter", "search.note.filters.date": "Datum-Filter", "search.note.filters.date.mode_title": "Filtermodus", "search.note.filters.date.mode_after": "Nach Datum", "search.note.filters.date.mode_exact": "Exaktes Datum", "search.note.filters.date.mode_before": "Vor diesem Datum", "search.note.filters.tags": "Stichwörter", "search.note.filters.tags.selected.one": "{} ausgewählt", "search.note.filters.tags.selected.other": "{} ausgewählt", "search.note.filters.clear": "Filter entfernen", "drawing.color_black": "Schwarz", "drawing.exit_prompt": "Alle nicht gespeicherten Änderungen gehen verloren. Wollen Sie fortfahren?", "drawing.clear_canvas_warning": "Dieser Vorgang kann nicht rückgängig gemacht werden. Fortfahren?", "drawing.tools.brush": "Pinsel", "drawing.tools.eraser": "Radierer", "drawing.tools.marker": "Filzstift", "drawing.tools.color_picker": "Farbe", "drawing.tools.radius_picker": "Radius", "drawing.tools.clear": "Leinwand leeren", "setup.button.get_started": "Los geht's", "setup.button.finish": "Abschließen", "setup.button.next": "Weiter", "setup.button.back": "Zurück", "setup.welcome.catchphrase": "Ihre neue Lieblings-Notiz-App", "setup.basic_customization.title": "Grundlegende Anpassungen", "setup.restore_import.title": "Wiederherstellen und importieren", "setup.restore_import.desc": "Du kannst entweder Notizen von einer anderen Leaflet Version wiederherstellen oder Notizen von einer älteren PotatoNotes Version importieren", "setup.restore_import.restore_btn": "Von Leaflet wiederherstellen", "setup.restore_import.import_btn": "Von PotatoNotes importieren", "setup.finish.title": "Alles erledigt!", "setup.finish.last_words": "Sie haben die Leaflet Einrichtung abgeschlossen, jetzt sollte die App für die erste Verwendung bereit sein. Wenn du jemals etwas ändern möchtest, gehe zu den Einstellungen. Ich hoffe, du wirst Leaflet genauso gerne nutzen wie ich!", "backup_restore.backup.title": "Sicherung erstellen", "backup_restore.backup.password": "Passwort", "backup_restore.backup.name": "Name (optional)", "backup_restore.backup.num_of_notes": "Anzahl der Notizen in der Sicherung: {}", "backup_restore.backup.protected_notes_prompt": "Einige Notizen sind gesperrt, ein Passwort wird benötigt um fortzufahren", "backup_restore.backup.creating": "Sicherung wird erstellt", "backup_restore.backup.creating_progress": "Sichere Notiz {} über {}", "backup_restore.backup.complete.success": "Sicherung erfolgreich abgeschlossen!", "backup_restore.backup.complete.failure": "Sicherungsvorgang wurde unterbrochen", "backup_restore.backup.complete_desc.success": "Der Sicherungsvorgang war erfolgreich! Sie finden das Backup unter ", "backup_restore.backup.complete_desc.success.no_file": "Der Sicherungsvorgang war erfolgreich! Sie können diesen Dialog nun schließen", "backup_restore.backup.complete_desc.failure": "Etwas ist schief gelaufen oder Sie haben den Speichervorgang abgebrochen. Sie können den Sicherungsvorgang jederzeit wiederholen", "backup_restore.restore.title": "Wählen Sie eine Sicherung zum Wiederherstellen", "backup_restore.restore.file_open": "Datei öffnen", "backup_restore.restore.from_file": "{} (Aus Datei)", "backup_restore.restore.info": "Notizen: {}, Tags: {}\nErstellt am {}", "backup_restore.restore.no_backups": "Es sind keine Sicherungen verfügbar. Versuche stattdessen eine Datei zu öffnen", "backup_restore.restore.failure": "Sicherung konnte nicht wiederhergestellt werden", "backup_restore.import.title": "Import-Herkunft auswählen", "backup_restore.import.open_db": "Öffne PotatoNotes Sicherungsdatei", "backup_restore.import.open_previous": "Öffne Datenbank einer vorherigen Version", "backup_restore.import.open_previous.unsupported_platform": "Nur Android unterstützt das Laden von vorherigen Versionen", "backup_restore.import.open_previous.no_file": "Keine Datenbank einer alten Version gefunden", "backup_restore.import.notes_loaded": "Notizen erfolgreich geladen", "backup_restore.select_notes": "Notizen zum Wiederherstellen auswählen", "backup_restore.replace_existing": "Vorhandene Notizen ersetzen", "miscellaneous.updater.update_available": "Update verfügbar!", "miscellaneous.updater.update_available_desc": "Ein neues Update steht zum Herunterladen bereit, klicke auf Update, um das Update herunterzuladen", "miscellaneous.updater.already_on_latest": "Neueste Version", "miscellaneous.updater.already_on_latest_desc": "Du bist bereits auf der neuesten App-Version", }; @override int get translatedStrings => 245; } class _$LocaleElEL extends _$LocaleBase { @override String get locale => "el-EL"; @override Map<String, String> get data => { "common.cancel": "Ακύρωση", "common.reset": "Επαναφορά", "common.restore": "Αποκατάσταση", "common.confirm": "Επιβεβαίωση", "common.save": "Αποθήκευση", "common.delete": "Διαγραφή", "common.undo": "Αναίρεση", "common.redo": "Επανάληψη", "common.edit": "Επεξεργασία", "common.go_on": "Μετάβαση στο", "common.exit": "Έξοδος", "common.ok": "Εντάξει", "common.share": "Κοινή χρήση", "common.not_now": "Όχι τώρα", "common.update": "Ενημέρωση", "common.expand": "Επέκταση", "common.collapse": "Σύμπτυξη", "common.create": "Δημιουργία", "common.close": "Κλείσιμο", "common.x_of_y": "{} από {}", "common.quick_tip": "Γρήγορη συμβουλή", "common.new_note": "Νέα σημείωση", "common.new_list": "Νέα λίστα", "common.new_image": "Νέα εικόνα", "common.new_drawing": "Νέο σχέδιο", "common.import_note": "Εισαγωγή σημείωσης", "common.biometrics_prompt": "Επιβεβαίωση βιομετρικών στοιχείων", "common.master_pass.modify": "Τροποποίηση κύριου κωδικού πρόσβασης", "common.master_pass.confirm": "Επιβεβαίωση κύριου κωδικού πρόσβασης", "common.master_pass.incorrect": "Εσφαλμένος κύριος κωδικός πρόσβασης", "common.backup_password.title": "Εισαγωγή εφεδρικού κωδικού πρόσβασης", "common.backup_password.use_master_pass": "Χρήση κύριου κωδικού πρόσβασης ως συνθηματικό", "common.restore_dialog.title": "Επιβεβαίωση επαναφοράς σημείωσης", "common.restore_dialog.backup_name": "Όνομα αντιγράφου ασφαλείας: {}", "common.restore_dialog.creation_date": "Ημερομηνία δημιουργίας: {}", "common.restore_dialog.app_version": "Έκδοση εφαρμογής: {}", "common.restore_dialog.note_count": "Αριθμός σημειώσεων: {}", "common.restore_dialog.tag_count": "Αριθμός σημειώσεων: {}", "common.are_you_sure": "Είστε σίγουροι;", "common.color.none": "Κανένα", "common.color.red": "Κόκκινο", "common.color.orange": "Πορτοκαλί", "common.color.yellow": "Κίτρινο", "common.color.green": "Πράσινο", "common.color.cyan": "Κυανό", "common.color.light_blue": "Ανοιχτό μπλε", "common.color.blue": "Μπλε", "common.color.purple": "Μωβ", "common.color.pink": "Ροζ", "common.notification.default_title": "Καρφιτσωμένη ειδοποίηση", "common.notification.details_title": "Καρφιτσωμένες ειδοποιήσεις", "common.notification.details_desc": "Καρφιτσωμένες ειδοποιήσεις χρηστών", "common.tag.new": "Νέα ετικέτα", "common.tag.modify": "Τροποποίηση ετικέτας", "common.tag.textbox_hint": "Όνομα", "main_page.write_note": "Γράψτε μια σημείωση", "main_page.settings": "Ρυθμίσεις", "main_page.search": "Αναζήτηση", "main_page.account": "Λογαριασμός", "main_page.restore_prompt.archive": "Θέλετε να επαναφέρετε κάθε σημείωση από το αρχείο;", "main_page.restore_prompt.trash": "Θέλετε να επαναφέρετε κάθε σημείωση από τον κάδο απορριμάτων;", "main_page.tag_delete_prompt": "Αυτή η ετικέτα θα χαθεί για πάντα εάν την διαγράψετε", "main_page.deleted_empty_note": "Διαγράφηκε κενή σημείωση", "main_page.empty_state.home": "Δεν έχουν προστεθεί ακόμα σημειώσεις", "main_page.empty_state.archive": "Το αρχείο είναι άδειο", "main_page.empty_state.trash": "Ο κάδος απορριμάτων είναι άδειος", "main_page.empty_state.favourites": "Δεν υπάρχουν αγαπημένα προς το παρόν", "main_page.empty_state.tag": "Δεν υπάρχουν σημειώσεις με αυτήν την ετικέτα", "main_page.note_list_x_more_items.one": "{} ακόμη αντικείμενα", "main_page.note_list_x_more_items.other": "{} ακόμη αντικείμενα", "main_page.title.notes": "Σημειώσεις", "main_page.title.archive": "Αρχείο", "main_page.title.trash": "Κάδος", "main_page.title.favourites": "Αγαπημένα", "main_page.title.tag": "Ετικέτα", "main_page.title.all": "Όλες", "main_page.selection_bar.close": "Κλείσιμο", "main_page.selection_bar.select": "Επιλογή", "main_page.selection_bar.select_all": "Επιλογή όλων", "main_page.selection_bar.add_favourites": "Προσθήκη στα αγαπημένα", "main_page.selection_bar.remove_favourites": "Αφαίρεση από τα αγαπημένα", "main_page.selection_bar.change_color": "Αλλαγή χρώματος", "main_page.selection_bar.archive": "Αρχείο", "main_page.selection_bar.delete": "Μετακίνηση στον κάδο απορριμμάτων", "main_page.selection_bar.perma_delete": "Διαγραφή", "main_page.selection_bar.pin": "Καρφίτσωμα", "main_page.selection_bar.unpin": "Ξεκαρφίτσωμα", "main_page.selection_bar.save": "Τοπική αποθήκευση", "main_page.selection_bar.save.note_locked": "Η σημείωση είναι κλειδωμένη, απαιτείται ο κύριος κωδικός πρόσβασης", "main_page.selection_bar.save.success": "Η σημείωση εξήχθη επιτυχώς", "main_page.selection_bar.save.oopsie": "Κάτι πήγε στραβά κατά την εξαγωγή ή η διαδικασία διακόπηκε", "main_page.selection_bar.share": "Κοινή χρήση", "main_page.notes_deleted.one": "{} σημείωση μετακινήθηκε στον κάδο απορριμμάτων", "main_page.notes_deleted.other": "{} σημειώσεις μετακινήθηκαν στον κάδο απορριμμάτων", "main_page.notes_perma_deleted.one": "{} σημείωσεις διαγράφηκε", "main_page.notes_perma_deleted.other": "{} σημειώσεις διαγράφηκαν", "main_page.notes_archived.one": "Αρχειοθετήθηκε {} σημείωσεις", "main_page.notes_archived.other": "Αρχειοθετήθηκαν {} σημειώσεις", "main_page.notes_restored.one": "Επαναφέρθηκαν {} σημείωσεις", "main_page.notes_restored.other": "Επαναφέρθηκαν {} σημειώσεις", "main_page.export.success": "Η σημείωση εξήχθη επιτυχώς", "main_page.export.failure": "Κάτι πήγε στραβά κατά την εξαγωγή", "main_page.import_psa": "Αν δεν μπορείτε να βρείτε τις παλαιότερες σημειώσεις σας από το PotatoNotes, μπορείτε να τις επαναφέρετε πηγαίνοντας στο\n\n{}\n\nκαι από εκεί επιλέξτε \"{}\"", "note_page.title_hint": "Τίτλος", "note_page.content_hint": "Περιεχόμενο", "note_page.list_item_hint": "Εισαγωγή", "note_page.add_entry_hint": "Προσθήκη καταχώρησης", "note_page.toolbar.tags": "Διαχείριση ετικετών", "note_page.toolbar.color": "Αλλαγή χρώματος", "note_page.toolbar.add_item": "Προσθήκη στοιχείου", "note_page.privacy.title": "Επιλογές απορρήτου", "note_page.privacy.hide_content": "Απόκρυψη περιεχομένου στην κύρια σελίδα", "note_page.privacy.lock_note": "Κλείδωμα σημείωσης", "note_page.privacy.lock_note.missing_pass": "Πρέπει να ορίσετε ένα κύριο κωδικό πρόσβασης από τις ρυθμίσεις", "note_page.privacy.use_biometrics": "Χρήση βιομετρικών στοιχείων για ξεκλείδωμα", "note_page.toggle_list": "Εμφάνιση λίστας", "note_page.image_gallery": "Εικόνα από τη συλλογή", "note_page.image_camera": "Λήψη φωτογραφίας", "note_page.drawing": "Προσθήκη σχεδίου", "note_page.added_favourites": "Η σημείωση προστέθηκε στα αγαπημένα", "note_page.removed_favourites": "Η σημείωση αφαιρέθηκε από τα αγαπημένα", "settings.title": "Ρυθμίσεις", "settings.personalization.title": "Εξατομίκευση", "settings.personalization.theme_mode": "Λειτουργία θέματος", "settings.personalization.theme_mode.system": "Σύστημα", "settings.personalization.theme_mode.light": "Φωτεινό", "settings.personalization.theme_mode.dark": "Σκοτεινό", "settings.personalization.use_amoled": "Χρήση μαύρου θέματος", "settings.personalization.use_custom_accent": "Ακολουθήστε την απόχρωση του συστήματος", "settings.personalization.custom_accent": "Επιλέξτε μια προσαρμοσμένη απόχρωση", "settings.personalization.use_grid": "Προβολή πλέγματος για σημειώσεις", "settings.personalization.locale": "Γλώσσα εφαρμογής", "settings.personalization.locale.device_default": "Προεπιλογή συσκευής", "settings.personalization.locale.x_translated": "{}% μεταφρασμένο", "settings.privacy.title": "Απόρρητο", "settings.privacy.use_master_pass": "Χρήση κύριου κωδικού πρόσβασης", "settings.privacy.use_master_pass.disclaimer": "Προειδοποίηση: Εαν ξεχάσετε ποτέ τον κύριο κωδικό πρόσβασης, δεν θα μπορεσετε να τον επαναφέρετε, θα χρειαστεί να απεγκαταστήσετε την εφαρμογή και κατα συνέπεια να καταργήσετε όλες τις σημειώσεις σας και να την επανεγκαταστήσετε. Παρακαλώ σημειώστε τον κάπου", "settings.privacy.modify_master_pass": "Τροποποίηση κύριου κωδικού πρόσβασης", "settings.backup_restore.title": "Αντίγραφα ασφαλείας και επαναφορά", "settings.backup_restore.backup": "Αντίγραφα Ασφαλείας", "settings.backup_restore.backup_desc": "Δημιουργία τοπικού αντιγράφου των σημειώσεων σας", "settings.backup_restore.backup.nothing_to_restore.title": "Δεν υπάρχουν σημειώσεις για επαναφορά!", "settings.backup_restore.backup.nothing_to_restore.desc": "Δεν υπάρχουν αποθηκευμένες σημειώσεις για δημιουργία αντιγράφου ασφαλείας", "settings.backup_restore.restore": "Αποκατάσταση", "settings.backup_restore.restore_desc": "Επαναφορά ενός αντιγράφου ασφαλείας που δημιουργήθηκε από μια έκδοση του Leaflet", "settings.backup_restore.restore.status.success": "Η σημείωση αποκαταστάθηκε με επιτυχία", "settings.backup_restore.restore.status.wrong_format": "Το επιλεγμένο αρχείο δεν είναι έγκυρο αντίγραφο ασφαλείας του Leaflet", "settings.backup_restore.restore.status.wrong_password": "Ο κωδικός πρόσβασης που εισάγατε δεν μπόρεσε να αποκρυπτογραφήσει το αντίγραφο ασφαλείας", "settings.backup_restore.restore.status.already_exists": "Η σημείωση του αντιγράφου ασφαλείας είναι ήδη παρούσα στη βάση δεδομένων", "settings.backup_restore.restore.status.unknown": "Υπήρξε ένα πρόβλημα κατά την εισαγωγή της σημείωσης", "settings.backup_restore.import": "Εισαγωγή", "settings.backup_restore.import_desc": "Εισαγωγή σημειώσεων από μια έκδοση του PotatoNotes", "settings.info.title": "Πληροφορίες", "settings.info.about_app": "Σχετικά με το Leaflet", "settings.info.update_check": "Έλεγχος για ενημερώσεις", "settings.info.translate": "Μεταφράστε την εφαρμογή", "settings.info.bug_report": "Αναφορά σφάλματος", "settings.debug.title": "Αποσφαλμάτωση", "settings.debug.show_setup_screen": "Εμφάνιση οθόνης ρύθμισης στην επόμενη εκκίνηση της εφαρμογης", "settings.debug.loading_overlay": "Έλεγχος επικάλυψης φόρτωσης", "settings.debug.clear_database": "Εκκαθάριση βάσης δεδομένων", "settings.debug.migrate_database": "Μεταφορά βάσης δεδομένων", "settings.debug.generate_trash": "Δημιουργία σκουπιδιών", "settings.debug.log_level": "Επίπεδο καταγραφής", "about.title": "Πληροφορίες", "about.pwa_version": "Έκδοση PWA", "about.links": "Σύνδεσμοι", "about.contributors": "Συνεισφορές", "about.contributors.hrx": "Επικεφαλής προγραμματιστής και σχεδιαστής της εφαρμογής", "about.contributors.bas": "API συγχρονισμού και εφαρμογή", "about.contributors.nico": "API συγχρονισμού", "about.contributors.kat": "Παλιό API συγχρονισμού", "about.contributors.rohit": "Εικονογράφηση εφαρμογής και χρώματα σημειώσεων", "about.contributors.rshbfn": "Εικονίδιο εφαρμογής και κύρια απόχρωση", "about.contributors.elias": "Επωνυμία της εφαρμογής", "about.contributors.akshit": "Ασφάλεια και υποστήριξη", "search.textbox_hint": "Αναζήτηση", "search.tag_create_empty_hint": "Δημιουργία νέας ετικέτας", "search.tag_create_hint": "Δημιουργία ετικέτας \"{}\"", "search.type_to_search": "Πληκτρολογήστε για αναζήτηση", "search.nothing_found": "Δεν βρέθηκε τίποτα...", "search.note.filters.case_sensitive": "Διάκριση πεζών και κεφαλαίων", "search.note.filters.favourites": "Μόνο τα αγαπημένα", "search.note.filters.locations": "Τοποθεσίες σημειώσεων", "search.note.filters.locations.normal": "Κανονική", "search.note.filters.locations.archive": "Αρχείο", "search.note.filters.locations.trash": "Κάδος", "search.note.filters.locations.normal_title": "Κανονικές σημειώσεις", "search.note.filters.locations.archive_title": "Αρχειοθετημένες σημειώσεις", "search.note.filters.locations.trash_title": "Διεγραμμένες σημειώσεις", "search.note.filters.color": "Φίλτρο χρώματος", "search.note.filters.date": "Φίλτρο ημερομηνίας", "search.note.filters.date.mode_title": "Λειτουργία φίλτρου", "search.note.filters.date.mode_after": "Μετά την ημερομηνία", "search.note.filters.date.mode_exact": "Ίδια ημερομηνία", "search.note.filters.date.mode_before": "Πριν την ημερομηνία", "search.note.filters.tags": "Ετικέτες", "search.note.filters.tags.selected.one": "{} επιλέχθηκαν", "search.note.filters.tags.selected.other": "{} επιλέχθηκαν", "search.note.filters.clear": "Εκκαθάριση φίλτρων", "drawing.color_black": "Μαύρο", "drawing.exit_prompt": "Οποιαδήποτε μη αποθηκευμένη αλλαγή θα χαθεί. Θέλετε να εξέλθετε;", "drawing.clear_canvas_warning": "Αυτή η λειτουργία δεν μπορεί να αναιρεθεί. Συνέχεια;", "drawing.tools.brush": "Πινέλο", "drawing.tools.eraser": "Γόμα", "drawing.tools.marker": "Μαρκαδόρος", "drawing.tools.color_picker": "Χρώμα", "drawing.tools.radius_picker": "Ακτίνα", "drawing.tools.clear": "Εκκαθάριση καμβά", "setup.button.get_started": "Ας ξεκινήσουμε", "setup.button.finish": "Ολοκλήρωση", "setup.button.next": "Επόμενο", "setup.button.back": "Επιστροφή", "setup.welcome.catchphrase": "Η καινούρια σας αγαπημένη εφαρμογή για σημειώσεις", "setup.basic_customization.title": "Βασικές προσαρμογές", "setup.restore_import.title": "Επαναφορά και εισαγωγή", "setup.restore_import.desc": "Μπορείτε να επιλέξετε να επαναφέρετε σημειώσεις από άλλη έκδοση του Leaflet ή να εισάγετε σημειώσεις από μια παλαιότερη έκδοση του PotatoNotes", "setup.restore_import.restore_btn": "Επαναφορά από το Leaflet", "setup.restore_import.import_btn": "Εισαγωγή από PotatoNotes", "setup.finish.title": "Όλα είναι έτοιμα!", "setup.finish.last_words": "Έχετε ολοκληρώσει τη ρύθμιση του Leaflet, τώρα η εφαρμογή είναι έτοιμη για την πρώτη χρήση. Αν ποτέ θέλετε να αλλάξετε κάτι, πηγαίνετε στις ρυθμίσεις. Ελπίζω ότι θα απολαύσετε το Leaflet όσο και εγώ!", "backup_restore.backup.title": "Δημιουργία αντιγράφου ασφαλείας", "backup_restore.backup.password": "Κωδικός", "backup_restore.backup.name": "Όνομα (προαιρετικό)", "backup_restore.backup.num_of_notes": "Αριθμός σημειώσεων στο αντίγραφο ασφαλείας: {}", "backup_restore.backup.protected_notes_prompt": "Ορισμένες σημειώσεις είναι κλειδωμένες, απαιτούν κωδικό πρόσβασης για να προχωρήσετε", "backup_restore.backup.creating": "Δημιουργία αντιγράφου ασφαλείας", "backup_restore.backup.creating_progress": "Δημιουργία αντιγράφου ασφαλείας της σημείωσης {} από {}", "backup_restore.backup.complete.success": "Το αντίγραφο ασφαλείας ολοκληρώθηκε επιτυχώς!", "backup_restore.backup.complete.failure": "Η διαδικασία δημιουργίας αντιγράφου ασφαλείας διακόπηκε", "backup_restore.backup.complete_desc.success": "Η διαδικασία αντιγράφου ασφαλείας ήταν επιτυχής! Μπορείτε να βρείτε το αντίγραφο ασφαλείας στο ", "backup_restore.backup.complete_desc.success.no_file": "Η διαδικασία αντιγράφου ασφαλείας ήταν επιτυχημένη! Μπορείτε τώρα να κλείσετε αυτό το παράθυρο", "backup_restore.backup.complete_desc.failure": "Κάτι πήγε στραβά ή ακυρώσατε τη διαδικασία αποθήκευσης. Μπορείτε να επαναλάβετε τη διαδικασία δημιουργίας αντιγράφων ασφαλείας ανά πάσα στιγμή", "backup_restore.restore.title": "Επιλέξτε αντίγραφο ασφαλείας για επαναφορά", "backup_restore.restore.file_open": "Άνοιγμα αρχείου", "backup_restore.restore.from_file": "{} (Από αρχείο)", "backup_restore.restore.info": "Αριθμός σημειώσεων: {}, Αριθμός ετικετών: {}\nΔημιουργήθηκε στις {}", "backup_restore.restore.no_backups": "Δεν υπάρχουν διαθέσιμα αντίγραφα ασφαλείας. Δοκιμάστε να ανοίξετε ένα αρχείο", "backup_restore.restore.failure": "Αδυναμία επαναφοράς αντιγράφου ασφαλείας", "backup_restore.import.title": "Επιλέξτε την προέλευση της εισαγωγής", "backup_restore.import.open_db": "Άνοιγμα αντιγράφου ασφαλείας PotatoNotes", "backup_restore.import.open_previous": "Άνοιγμα βάσης δεδομένων προηγούμενης έκδοσης", "backup_restore.import.open_previous.unsupported_platform": "Μόνο το Android υποστηρίζει φόρτωση από προηγούμενη έκδοση", "backup_restore.import.open_previous.no_file": "Δεν βρέθηκε βάση δεδομένων από παλιά έκδοση", "backup_restore.import.notes_loaded": "Επιτυχής φόρτωση σημειώσεων", "backup_restore.select_notes": "Επιλέξτε σημειώσεις για επαναφορά", "backup_restore.replace_existing": "Αντικατάσταση υπαρχουσών σημειώσεων", "miscellaneous.updater.update_available": "Υπάρχει διαθέσιμη ενημέρωση!", "miscellaneous.updater.update_available_desc": "Μια νέα ενημέρωση είναι διαθέσιμη για λήψη, κάντε κλικ στο αντίστοιχο κουμπί για να την κατεβάσετε", "miscellaneous.updater.already_on_latest": "Τελευταία έκδοση", "miscellaneous.updater.already_on_latest_desc": "Είστε ήδη στην τελευταία έκδοση της εφαρμογής", }; @override int get translatedStrings => 245; } class _$LocaleEnUS extends _$LocaleBase { @override String get locale => "en-US"; @override Map<String, String> get data => { "common.cancel": "Cancel", "common.reset": "Reset", "common.restore": "Restore", "common.confirm": "Confirm", "common.save": "Save", "common.delete": "Delete", "common.undo": "Undo", "common.redo": "Redo", "common.edit": "Edit", "common.go_on": "Go on", "common.exit": "Exit", "common.ok": "Ok", "common.share": "Share", "common.not_now": "Not now", "common.update": "Update", "common.expand": "Expand", "common.collapse": "Collapse", "common.create": "Create", "common.close": "Close", "common.x_of_y": "{} of {}", "common.quick_tip": "Quick tip", "common.new_note": "New note", "common.new_list": "New list", "common.new_image": "New image", "common.new_drawing": "New drawing", "common.import_note": "Import note", "common.biometrics_prompt": "Confirm biometrics", "common.master_pass.modify": "Modify master pass", "common.master_pass.confirm": "Confirm master pass", "common.master_pass.incorrect": "Incorrect master pass", "common.backup_password.title": "Input backup password", "common.backup_password.use_master_pass": "Use master pass as password", "common.restore_dialog.title": "Confirm note restoration", "common.restore_dialog.backup_name": "Backup name: {}", "common.restore_dialog.creation_date": "Creation date: {}", "common.restore_dialog.app_version": "App version: {}", "common.restore_dialog.note_count": "Note count: {}", "common.restore_dialog.tag_count": "Tag count: {}", "common.are_you_sure": "Are you sure?", "common.color.none": "None", "common.color.red": "Red", "common.color.orange": "Orange", "common.color.yellow": "Yellow", "common.color.green": "Green", "common.color.cyan": "Cyan", "common.color.light_blue": "Light blue", "common.color.blue": "Blue", "common.color.purple": "Purple", "common.color.pink": "Pink", "common.notification.default_title": "Pinned notification", "common.notification.details_title": "Pinned notifications", "common.notification.details_desc": "User pinned notifications", "common.tag.new": "New tag", "common.tag.modify": "Modify tag", "common.tag.textbox_hint": "Name", "main_page.write_note": "Write a note", "main_page.settings": "Settings", "main_page.search": "Search", "main_page.account": "Account", "main_page.restore_prompt.archive": "Do you want to restore every note in the archive?", "main_page.restore_prompt.trash": "Do you want to restore every note in the trash?", "main_page.tag_delete_prompt": "This tag will be lost forever if you delete it", "main_page.deleted_empty_note": "Deleted empty note", "main_page.empty_state.home": "No notes were added yet", "main_page.empty_state.archive": "The archive is empty", "main_page.empty_state.trash": "The trash is empty", "main_page.empty_state.favourites": "No favourites for now", "main_page.empty_state.tag": "No notes with this tag", "main_page.note_list_x_more_items.zero": "{} more items", "main_page.note_list_x_more_items.one": "{} more item", "main_page.note_list_x_more_items.two": "{} more items", "main_page.note_list_x_more_items.few": "{} more items", "main_page.note_list_x_more_items.many": "{} more items", "main_page.note_list_x_more_items.other": "{} more items", "main_page.title.notes": "Notes", "main_page.title.archive": "Archive", "main_page.title.trash": "Trash", "main_page.title.favourites": "Favourites", "main_page.title.tag": "Tag", "main_page.title.all": "All", "main_page.selection_bar.close": "Close", "main_page.selection_bar.select": "Select", "main_page.selection_bar.select_all": "Select all", "main_page.selection_bar.add_favourites": "Add to favourites", "main_page.selection_bar.remove_favourites": "Remove from favourites", "main_page.selection_bar.change_color": "Change color", "main_page.selection_bar.archive": "Archive", "main_page.selection_bar.delete": "Move to trash", "main_page.selection_bar.perma_delete": "Delete", "main_page.selection_bar.pin": "Pin", "main_page.selection_bar.unpin": "Unpin", "main_page.selection_bar.save": "Save locally", "main_page.selection_bar.save.note_locked": "The note is locked, master pass is required", "main_page.selection_bar.save.success": "Note successfully exported", "main_page.selection_bar.save.oopsie": "Something went wrong while exporting or operation cancelled", "main_page.selection_bar.share": "Share", "main_page.notes_deleted.zero": "{} notes moved to trash", "main_page.notes_deleted.one": "{} note moved to trash", "main_page.notes_deleted.two": "{} notes moved to trash", "main_page.notes_deleted.few": "{} notes moved to trash", "main_page.notes_deleted.many": "{} notes moved to trash", "main_page.notes_deleted.other": "{} notes moved to trash", "main_page.notes_perma_deleted.zero": "{} notes deleted", "main_page.notes_perma_deleted.one": "{} note deleted", "main_page.notes_perma_deleted.two": "{} notes deleted", "main_page.notes_perma_deleted.few": "{} notes deleted", "main_page.notes_perma_deleted.many": "{} notes deleted", "main_page.notes_perma_deleted.other": "{} notes deleted", "main_page.notes_archived.zero": "Archived {} notes", "main_page.notes_archived.one": "Archived {} note", "main_page.notes_archived.two": "Archived {} notes", "main_page.notes_archived.few": "Archived {} notes", "main_page.notes_archived.many": "Archived {} notes", "main_page.notes_archived.other": "Archived {} notes", "main_page.notes_restored.zero": "Restored {} notes", "main_page.notes_restored.one": "Restored {} note", "main_page.notes_restored.two": "Restored {} notes", "main_page.notes_restored.few": "Restored {} notes", "main_page.notes_restored.many": "Restored {} notes", "main_page.notes_restored.other": "Restored {} notes", "main_page.export.success": "Note successfully exported", "main_page.export.failure": "Something went wrong while exporting", "main_page.import_psa": "If you can't find your older notes from PotatoNotes you can restore them by going to\n\n{}\n\nand from there select \"{}\"", "note_page.title_hint": "Title", "note_page.content_hint": "Content", "note_page.list_item_hint": "Input", "note_page.add_entry_hint": "Add entry", "note_page.toolbar.tags": "Manage tags", "note_page.toolbar.color": "Change color", "note_page.toolbar.add_item": "Add item", "note_page.privacy.title": "Privacy options", "note_page.privacy.hide_content": "Hide content on main page", "note_page.privacy.lock_note": "Lock note", "note_page.privacy.lock_note.missing_pass": "You must set a master pass from settings", "note_page.privacy.use_biometrics": "Use biometrics to unlock", "note_page.toggle_list": "Toggle list", "note_page.image_gallery": "Image from gallery", "note_page.image_camera": "Take a photo", "note_page.drawing": "Add a drawing", "note_page.added_favourites": "Note added to favourites", "note_page.removed_favourites": "Note removed from favourites", "settings.title": "Settings", "settings.personalization.title": "Personalization", "settings.personalization.theme_mode": "Theme mode", "settings.personalization.theme_mode.system": "System", "settings.personalization.theme_mode.light": "Light", "settings.personalization.theme_mode.dark": "Dark", "settings.personalization.use_amoled": "Use black theme", "settings.personalization.use_custom_accent": "Follow system accent", "settings.personalization.custom_accent": "Pick a custom accent", "settings.personalization.use_grid": "Grid view for notes", "settings.personalization.locale": "App locale", "settings.personalization.locale.device_default": "Device default", "settings.personalization.locale.x_translated": "{}% translated", "settings.privacy.title": "Privacy", "settings.privacy.use_master_pass": "Use master pass", "settings.privacy.use_master_pass.disclaimer": "Warning: if you ever forget the pass you can't reset it, you'll need to uninstall the app, hence getting all the notes erased, and reinstall it. Please write it down somewhere", "settings.privacy.modify_master_pass": "Modify master pass", "settings.backup_restore.title": "Backup and Restore", "settings.backup_restore.backup": "Backup", "settings.backup_restore.backup_desc": "Create a local copy of your notes", "settings.backup_restore.backup.nothing_to_restore.title": "No notes to restore!", "settings.backup_restore.backup.nothing_to_restore.desc": "There are no saved notes to backup", "settings.backup_restore.restore": "Restore", "settings.backup_restore.restore_desc": "Restore a backup created from a version of Leaflet", "settings.backup_restore.restore.status.success": "The note was successfuly restored", "settings.backup_restore.restore.status.wrong_format": "The specified file is not a valid Leaflet backup", "settings.backup_restore.restore.status.wrong_password": "The password you inserted was unable to decrypt the backup", "settings.backup_restore.restore.status.already_exists": "The note inside the backup is already present in the database", "settings.backup_restore.restore.status.unknown": "There was an issue while importing the note", "settings.backup_restore.import": "Import", "settings.backup_restore.import_desc": "Import notes from a version of PotatoNotes", "settings.info.title": "Info", "settings.info.about_app": "About Leaflet", "settings.info.update_check": "Check for app updates", "settings.info.translate": "Translate the app", "settings.info.bug_report": "Report a bug", "settings.debug.title": "Debug", "settings.debug.show_setup_screen": "Show setup screen on next startup", "settings.debug.loading_overlay": "Test loading overlay", "settings.debug.clear_database": "Clear database", "settings.debug.migrate_database": "Migrate database", "settings.debug.generate_trash": "Generate trash", "settings.debug.log_level": "Log level", "about.title": "About", "about.pwa_version": "PWA version", "about.links": "Links", "about.contributors": "Contributors", "about.contributors.hrx": "Lead developer and app design", "about.contributors.bas": "Sync API and app", "about.contributors.nico": "Sync API", "about.contributors.kat": "Old sync API", "about.contributors.rohit": "Illustrations and note colors", "about.contributors.rshbfn": "App icon and main accent", "about.contributors.elias": "Leaflet brand name", "about.contributors.akshit": "Security and backend help", "search.textbox_hint": "Search", "search.tag_create_empty_hint": "Create new tag", "search.tag_create_hint": "Create tag \"{}\"", "search.type_to_search": "Type to start searching", "search.nothing_found": "Nothing found...", "search.note.filters.case_sensitive": "Case sensitive", "search.note.filters.favourites": "Favourites only", "search.note.filters.locations": "Note locations", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Archive", "search.note.filters.locations.trash": "Trash", "search.note.filters.locations.normal_title": "Normal notes", "search.note.filters.locations.archive_title": "Archived notes", "search.note.filters.locations.trash_title": "Deleted notes", "search.note.filters.color": "Color filter", "search.note.filters.date": "Date filter", "search.note.filters.date.mode_title": "Filter mode", "search.note.filters.date.mode_after": "After date", "search.note.filters.date.mode_exact": "Exact date", "search.note.filters.date.mode_before": "Before date", "search.note.filters.tags": "Tags", "search.note.filters.tags.selected.zero": "{} selected", "search.note.filters.tags.selected.one": "{} selected", "search.note.filters.tags.selected.two": "{} selected", "search.note.filters.tags.selected.few": "{} selected", "search.note.filters.tags.selected.many": "{} selected", "search.note.filters.tags.selected.other": "{} selected", "search.note.filters.clear": "Clear filters", "drawing.color_black": "Black", "drawing.exit_prompt": "Any unsaved change will be lost. Do you want to exit?", "drawing.clear_canvas_warning": "This operation can't be undone. Continue?", "drawing.tools.brush": "Brush", "drawing.tools.eraser": "Eraser", "drawing.tools.marker": "Marker", "drawing.tools.color_picker": "Color", "drawing.tools.radius_picker": "Radius", "drawing.tools.clear": "Clear canvas", "setup.button.get_started": "Get started", "setup.button.finish": "Finish", "setup.button.next": "Next", "setup.button.back": "Back", "setup.welcome.catchphrase": "Your new favourite notes app", "setup.basic_customization.title": "Basic customization", "setup.restore_import.title": "Restore and import", "setup.restore_import.desc": "You can choose to restore notes from another version of Leaflet or import notes from an older version of PotatoNotes", "setup.restore_import.restore_btn": "Restore from Leaflet", "setup.restore_import.import_btn": "Import from PotatoNotes", "setup.finish.title": "All set!", "setup.finish.last_words": "You've completed Leaflet setup, now the app should be ready for the first use. If you ever want to change something, head over to the settings. I hope you'll enjoy Leaflet as much as i do!", "backup_restore.backup.title": "Create backup", "backup_restore.backup.password": "Password", "backup_restore.backup.name": "Name (optional)", "backup_restore.backup.num_of_notes": "Number of notes in the backup: {}", "backup_restore.backup.protected_notes_prompt": "Some notes are locked, require password to proceed", "backup_restore.backup.creating": "Creating backup", "backup_restore.backup.creating_progress": "Backing up note {} of {}", "backup_restore.backup.complete.success": "Backup completed successfully!", "backup_restore.backup.complete.failure": "Backup process was interrupted", "backup_restore.backup.complete_desc.success": "The backup process was a success! You can find the backup at ", "backup_restore.backup.complete_desc.success.no_file": "The backup process was a success! You can now close this dialog", "backup_restore.backup.complete_desc.failure": "Something went wrong or you aborted the save process. You can retry the backup process anytime", "backup_restore.restore.title": "Select backup to restore", "backup_restore.restore.file_open": "Open file", "backup_restore.restore.from_file": "{} (From file)", "backup_restore.restore.info": "Note count: {}, Tag count: {}\nCreated on {}", "backup_restore.restore.no_backups": "There are no backups available. Try opening a file instead", "backup_restore.restore.failure": "Unable to restore backup", "backup_restore.import.title": "Select import origin", "backup_restore.import.open_db": "Open PotatoNotes backup file", "backup_restore.import.open_previous": "Open previous version database", "backup_restore.import.open_previous.unsupported_platform": "Only Android supports loading from previous version", "backup_restore.import.open_previous.no_file": "There was no database found from old version", "backup_restore.import.notes_loaded": "Notes loaded successfully", "backup_restore.select_notes": "Select notes to restore", "backup_restore.replace_existing": "Replace existing notes", "miscellaneous.updater.update_available": "Update available!", "miscellaneous.updater.update_available_desc": "A new update is available to download, click update to download the update", "miscellaneous.updater.already_on_latest": "Latest version", "miscellaneous.updater.already_on_latest_desc": "You're already on the latest app version", }; @override int get translatedStrings => 245; } class _$LocaleEsES extends _$LocaleBase { @override String get locale => "es-ES"; @override Map<String, String> get data => { "common.cancel": "Cancelar", "common.reset": "Reiniciar", "common.restore": "Restaurar", "common.confirm": "Confirmar", "common.save": "Guardar", "common.delete": "Borrar", "common.undo": "Deshacer", "common.redo": "Rehacer", "common.edit": "Editar", "common.go_on": "Continuar", "common.exit": "Salir", "common.ok": "Aceptar", "common.share": "Compartir", "common.not_now": "Ahora no", "common.update": "Actualizar", "common.expand": "Expandir", "common.collapse": "Colapsar", "common.create": "Crear", "common.close": "Cerrar", "common.x_of_y": "{} de {}", "common.quick_tip": "Consejo rápido", "common.new_note": "Nueva nota", "common.new_list": "Nueva lista", "common.new_image": "Nueva imagen", "common.new_drawing": "Nuevo dibujo", "common.import_note": "Importar nota", "common.biometrics_prompt": "Confirmar datos biométricos", "common.master_pass.modify": "Modificar contraseña maestra", "common.master_pass.confirm": "Confirmar contraseña maestra", "common.master_pass.incorrect": "Contraseña maestra incorrecta", "common.backup_password.title": "Introduzca la contraseña de respaldo", "common.backup_password.use_master_pass": "Usar contraseña maestra como contraseña", "common.restore_dialog.title": "Confirmar restauración de nota", "common.restore_dialog.backup_name": "Nombre de copia de seguridad: {}", "common.restore_dialog.creation_date": "Fecha de creación: {}", "common.restore_dialog.app_version": "Versión de la aplicación: {}", "common.restore_dialog.note_count": "Cantidad de notas: {}", "common.restore_dialog.tag_count": "Cantidad de etiquetas: {}", "common.are_you_sure": "¿Estás seguro/a?", "common.color.none": "Nada", "common.color.red": "Rojo", "common.color.orange": "Naranja", "common.color.yellow": "Amarillo", "common.color.green": "Verde", "common.color.cyan": "Turquesa", "common.color.light_blue": "Celeste", "common.color.blue": "Azul", "common.color.purple": "Morado", "common.color.pink": "Rosa", "common.notification.default_title": "Notificación fijada", "common.notification.details_title": "Notificaciones fijadas", "common.notification.details_desc": "Notificaciones fijadas del usuario", "common.tag.new": "Nueva etiqueta", "common.tag.modify": "Modificar etiqueta", "common.tag.textbox_hint": "Nombre", "main_page.write_note": "Escribir una nota", "main_page.settings": "Ajustes", "main_page.search": "Buscar", "main_page.account": "Cuenta", "main_page.restore_prompt.archive": "¿Quieres restaurar las notas archivadas?", "main_page.restore_prompt.trash": "¿Quieres restaurar las notas de la papelera?", "main_page.tag_delete_prompt": "Esta etiqueta se perderá para siempre si la eliminas", "main_page.deleted_empty_note": "Eliminar nota vacía", "main_page.empty_state.home": "Aún no se han añadido notas", "main_page.empty_state.archive": "El archivo está vacío", "main_page.empty_state.trash": "La papelera está vacía", "main_page.empty_state.favourites": "No hay favoritos todavía", "main_page.empty_state.tag": "No hay notas con esta etiqueta", "main_page.note_list_x_more_items.one": "{} elemento más", "main_page.note_list_x_more_items.other": "{} elementos más", "main_page.title.notes": "Notas", "main_page.title.archive": "Archivo", "main_page.title.trash": "Papelera", "main_page.title.favourites": "Favoritos", "main_page.title.tag": "Etiqueta", "main_page.title.all": "Todo", "main_page.selection_bar.close": "Cerrar", "main_page.selection_bar.select": "Seleccionar", "main_page.selection_bar.select_all": "Seleccionar todo", "main_page.selection_bar.add_favourites": "Añadir a favoritos", "main_page.selection_bar.remove_favourites": "Eliminar de favoritos", "main_page.selection_bar.change_color": "Cambiar color", "main_page.selection_bar.archive": "Archivo", "main_page.selection_bar.delete": "Mover a la papelera", "main_page.selection_bar.perma_delete": "Borrar", "main_page.selection_bar.pin": "Fijar", "main_page.selection_bar.unpin": "Desfijar", "main_page.selection_bar.save": "Guardar localmente", "main_page.selection_bar.save.note_locked": "La nota está bloqueada, se necesita la contraseña maestra", "main_page.selection_bar.save.success": "Nota exportada correctamente", "main_page.selection_bar.save.oopsie": "Algo falló mientras se exportaba, o la operación fue cancelada", "main_page.selection_bar.share": "Compartir", "main_page.notes_deleted.one": "{} nota movida a la papelera", "main_page.notes_deleted.other": "{} notas movidas a la papelera", "main_page.notes_perma_deleted.one": "{} nota eliminada", "main_page.notes_perma_deleted.other": "{} notas eliminadas", "main_page.notes_archived.one": "{} nota archivada", "main_page.notes_archived.other": "{} notas archivadas", "main_page.notes_restored.one": "{} nota restaurada", "main_page.notes_restored.other": "{} notas restauradas", "main_page.export.success": "Nota exportada correctamente", "main_page.export.failure": "Algo salió mal mientras se exportaba", "main_page.import_psa": "Si no puede encontrar sus notas antiguas de PotatoNotes, puede restaurarlo yendo a \n\n{}\n\ny seleccionando desde ahí \"{}\"", "note_page.title_hint": "Titulo", "note_page.content_hint": "Contenido", "note_page.list_item_hint": "Entrada", "note_page.add_entry_hint": "Añadir entrada", "note_page.toolbar.tags": "Administrar etiquetas", "note_page.toolbar.color": "Cambiar color", "note_page.toolbar.add_item": "Añadir elemento", "note_page.privacy.title": "Opciones de privacidad", "note_page.privacy.hide_content": "Ocultar contenido de nota en la página principal", "note_page.privacy.lock_note": "Proteger nota", "note_page.privacy.lock_note.missing_pass": "Debe establecer una contraseña maestra desde configuración", "note_page.privacy.use_biometrics": "Usar datos biométricos para desbloquear", "note_page.toggle_list": "Activar/desactivar lista", "note_page.image_gallery": "Imagen de la galería", "note_page.image_camera": "Tomar una foto", "note_page.drawing": "Añadir un dibujo", "note_page.added_favourites": "Nota agregada a favoritos", "note_page.removed_favourites": "Nota eliminada de favoritos", "settings.title": "Ajustes", "settings.personalization.title": "Personalización", "settings.personalization.theme_mode": "Modo de tema", "settings.personalization.theme_mode.system": "Sistema", "settings.personalization.theme_mode.light": "Claro", "settings.personalization.theme_mode.dark": "Oscuro", "settings.personalization.use_amoled": "Usar tema negro", "settings.personalization.use_custom_accent": "Seguir colores del sistema", "settings.personalization.custom_accent": "Elegir un color personalizado", "settings.personalization.use_grid": "Vista de cuadrícula para notas", "settings.personalization.locale": "Idioma de aplicación", "settings.personalization.locale.device_default": "Dispositivo predeterminado", "settings.personalization.locale.x_translated": "{}% traducido", "settings.privacy.title": "Privacidad", "settings.privacy.use_master_pass": "Usar contraseña maestra", "settings.privacy.use_master_pass.disclaimer": "Advertencia: si olvidas la contraseña, no podrás restablecerla: tendrás que desinstalar la aplicación, borrando todas las notas, y reinstalarla. Apúntala en algún sitio.", "settings.privacy.modify_master_pass": "Modificar contraseña maestra", "settings.backup_restore.title": "Copia de seguridad y restauración", "settings.backup_restore.backup": "Copia de seguridad", "settings.backup_restore.backup_desc": "Crear una copia local de tus notas", "settings.backup_restore.backup.nothing_to_restore.title": "¡No hay notas para restaurar!", "settings.backup_restore.backup.nothing_to_restore.desc": "No hay notas guardadas para respaldar", "settings.backup_restore.restore": "Restaurar", "settings.backup_restore.restore_desc": "Restaurar una copia de seguridad creada a partir de una versión de Leaflet", "settings.backup_restore.restore.status.success": "La nota se restauró con éxito", "settings.backup_restore.restore.status.wrong_format": "El archivo especificado no es una copia de seguridad de Leaflet válida", "settings.backup_restore.restore.status.wrong_password": "La contraseña que ha introducido no pudo descifrar la copia de seguridad", "settings.backup_restore.restore.status.already_exists": "La nota dentro de la copia de seguridad ya está presente en la base de datos", "settings.backup_restore.restore.status.unknown": "Hubo un problema al importar la nota", "settings.backup_restore.import": "Importar", "settings.backup_restore.import_desc": "Importar notas de una versión de PotatoNotes", "settings.info.title": "Información", "settings.info.about_app": "Acerca de Leaflet", "settings.info.update_check": "Buscar actualizaciones de la aplicación", "settings.info.translate": "Traduce la app", "settings.info.bug_report": "Reportar un error", "settings.debug.title": "Depuración", "settings.debug.show_setup_screen": "Mostrar la pantalla de configuración en el próximo inicio", "settings.debug.loading_overlay": "Superposición de carga de prueba", "settings.debug.clear_database": "Limpiar base de datos", "settings.debug.migrate_database": "Migrar base de dato", "settings.debug.generate_trash": "Generar basura", "settings.debug.log_level": "Nivel de log", "about.title": "Ajustes", "about.pwa_version": "Versión PWA", "about.links": "Enlaces", "about.contributors": "Colaboradores", "about.contributors.hrx": "Desarrollador líder y diseño de aplicaciones", "about.contributors.bas": "API sync y app", "about.contributors.nico": "API sync", "about.contributors.kat": "API sync antiguo", "about.contributors.rohit": "Illustraciones y colores de nota", "about.contributors.rshbfn": "Icono de la aplicación y color principal", "about.contributors.elias": "Leaflet marca principal", "about.contributors.akshit": "Ayuda de seguridad y backend", "search.textbox_hint": "Buscar", "search.tag_create_empty_hint": "Crear nueva etiqueta", "search.tag_create_hint": "Crear etiqueta \"{}\"", "search.type_to_search": "Escribe para empezar a buscar", "search.nothing_found": "No se encontró nada...", "search.note.filters.case_sensitive": "Distinguir mayúsculas y minúsculas", "search.note.filters.favourites": "Sólo favoritos", "search.note.filters.locations": "Ubicaciones de notas", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Archivo", "search.note.filters.locations.trash": "Papelera", "search.note.filters.locations.normal_title": "Notas normales", "search.note.filters.locations.archive_title": "Notas archivadas", "search.note.filters.locations.trash_title": "Notas eliminadas", "search.note.filters.color": "Filtro de color", "search.note.filters.date": "Filtro de fecha", "search.note.filters.date.mode_title": "Modo de filtro", "search.note.filters.date.mode_after": "Después de la fecha", "search.note.filters.date.mode_exact": "Fecha exacta", "search.note.filters.date.mode_before": "Antes de la fecha", "search.note.filters.tags": "Etiquetas", "search.note.filters.tags.selected.one": "{} seleccionada", "search.note.filters.tags.selected.other": "{} seleccionadas", "search.note.filters.clear": "Limpiar filtros", "drawing.color_black": "Negro", "drawing.exit_prompt": "Se perderán todos los datos no guardados. ¿Quieres salir?", "drawing.clear_canvas_warning": "Esta operación no se puede deshacer. ¿Continuar?", "drawing.tools.brush": "Pincel", "drawing.tools.eraser": "Borrador", "drawing.tools.marker": "Marcador", "drawing.tools.color_picker": "Color", "drawing.tools.radius_picker": "Tamaño", "drawing.tools.clear": "Limpiar lienzo", "setup.button.get_started": "Para comenzar", "setup.button.finish": "Finalizar", "setup.button.next": "Siguiente", "setup.button.back": "Atrás", "setup.welcome.catchphrase": "Tu nueva aplicación de notas favoritas", "setup.basic_customization.title": "Personalización básica", "setup.restore_import.title": "Restaurar e importar", "setup.restore_import.desc": "Puede optar a restaurar notas de una versión previa de Leaflet, o importarlas de una versión previa de PotatoNotes", "setup.restore_import.restore_btn": "Restaurar de Leaflet", "setup.restore_import.import_btn": "Importar de PotatoNotes", "setup.finish.title": "¡Todo listo!", "setup.finish.last_words": "Ha completado la configuración de Leaflet, ahora la aplicación debería estar lista para el primer uso. Si alguna vez quieres cambiar algo, dirígete a la configuración. ¡Espero que disfrutes de Leaflet tanto como yo!", "backup_restore.backup.title": "Crear respaldo", "backup_restore.backup.password": "Contraseña", "backup_restore.backup.name": "Nombre (opcional)", "backup_restore.backup.num_of_notes": "Número de notas en la copia de seguridad: {}", "backup_restore.backup.protected_notes_prompt": "Algunas notas están bloqueadas, requieren contraseña para continuar", "backup_restore.backup.creating": "Creando respaldo", "backup_restore.backup.creating_progress": "Respaldando nota {} de {}", "backup_restore.backup.complete.success": "¡Copia de seguridad completada con éxito!", "backup_restore.backup.complete.failure": "El proceso de copia de seguridad fue interrumpido", "backup_restore.backup.complete_desc.success": "¡El proceso de copia de seguridad fue un éxito! Puedes encontrar la copia de seguridad en ", "backup_restore.backup.complete_desc.success.no_file": "¡El proceso de copia de seguridad fue un éxito! Ahora puedes cerrar este diálogo", "backup_restore.backup.complete_desc.failure": "Algo salió mal o abortaste el proceso de guardado. Puedes volver a intentar el proceso de copia de seguridad en cualquier momento", "backup_restore.restore.title": "Seleccionar copia de seguridad para restaurar", "backup_restore.restore.file_open": "Abrir archivo", "backup_restore.restore.from_file": "{} (Del archivo)", "backup_restore.restore.info": "Número de notas: {}, Número de etiquetas: {}\nCreado el {}", "backup_restore.restore.no_backups": "No hay copias de seguridad disponibles. Intente abrir un archivo en su lugar", "backup_restore.restore.failure": "No se puede restaurar la copia de seguridad", "backup_restore.import.title": "Seleccionar origen de importación", "backup_restore.import.open_db": "Abra el archivo de copia de seguridad de PotatoNotes", "backup_restore.import.open_previous": "Abrir la base de datos de la versión anterior", "backup_restore.import.open_previous.unsupported_platform": "Solo Android admite la carga desde la versión anterior", "backup_restore.import.open_previous.no_file": "No se encontró ninguna base de datos de la versión anterior", "backup_restore.import.notes_loaded": "Notas cargadas correctamente", "backup_restore.select_notes": "Seleccionar notas para restaurar", "backup_restore.replace_existing": "Reemplazar notas existentes", "miscellaneous.updater.update_available": "¡Actualización disponible!", "miscellaneous.updater.update_available_desc": "Hay una nueva actualización disponible para descargar, haga clic en actualizar para descargar la actualización", "miscellaneous.updater.already_on_latest": "Última versión", "miscellaneous.updater.already_on_latest_desc": "Ya estás en la última versión de la aplicación", }; @override int get translatedStrings => 245; } class _$LocaleFrFR extends _$LocaleBase { @override String get locale => "fr-FR"; @override Map<String, String> get data => { "common.cancel": "Annuler", "common.reset": "Réinitialiser", "common.restore": "Restaurer", "common.confirm": "Confirmer", "common.save": "Sauvegarder", "common.delete": "Supprimer", "common.undo": "Retour", "common.redo": "Rétablir", "common.edit": "Éditer", "common.go_on": "Continuer", "common.exit": "Quitter", "common.ok": "OK", "common.share": "Partager", "common.not_now": "Pas maintenant", "common.update": "Mise à jour", "common.expand": "Agrandir", "common.collapse": "Réduire", "common.create": "Créer", "common.close": "Fermer", "common.x_of_y": "{} sur {}", "common.quick_tip": "Astuce rapide", "common.new_note": "Nouvelle note", "common.new_list": "Nouvelle liste", "common.new_image": "Nouvelle image", "common.new_drawing": "Nouveau dessin", "common.import_note": "Importer une note", "common.biometrics_prompt": "Confirmer les données biométriques", "common.master_pass.modify": "Modifier le mot de passe maître", "common.master_pass.confirm": "Confirmer le mot de passe maître", "common.master_pass.incorrect": "Mot de passe maître incorrect", "common.backup_password.title": "Entrez le mot de passe de sauvegarde", "common.backup_password.use_master_pass": "Utiliser le mot de passe maître comme mot de passe", "common.restore_dialog.title": "Confirmer la restauration de la note", "common.restore_dialog.backup_name": "Nom de la sauvegarde : {}", "common.restore_dialog.creation_date": "Date de création : {}", "common.restore_dialog.app_version": "Version de l'application : {}", "common.restore_dialog.note_count": "Nombre de notes : {}", "common.restore_dialog.tag_count": "Nombre de tags : {}", "common.are_you_sure": "Étes-vous sûr ?", "common.color.none": "Aucun", "common.color.red": "Rouge", "common.color.orange": "Orange", "common.color.yellow": "Jaune", "common.color.green": "Vert", "common.color.cyan": "Cyan", "common.color.light_blue": "Bleu clair", "common.color.blue": "Bleu", "common.color.purple": "Violet", "common.color.pink": "Rose", "common.notification.default_title": "Notification épinglée", "common.notification.details_title": "Notifications épinglées", "common.notification.details_desc": "Notifications épinglées par l'utilisateur", "common.tag.new": "Nouveau tag", "common.tag.modify": "Modifier un tag", "common.tag.textbox_hint": "Nom", "main_page.write_note": "Écrire une note", "main_page.settings": "Paramètres", "main_page.search": "Rechercher", "main_page.account": "Compte", "main_page.restore_prompt.archive": "Voulez-vous restaurer chaque note dans les archives ?", "main_page.restore_prompt.trash": "Voulez-vous restaurer chaque note de la corbeille ?", "main_page.tag_delete_prompt": "Ce tag sera définitivement perdu si vous le supprimez", "main_page.deleted_empty_note": "Note vide supprimée", "main_page.empty_state.home": "Aucune note n'a été ajoutée", "main_page.empty_state.archive": "Les archives sont vides", "main_page.empty_state.trash": "La corbeille est vide", "main_page.empty_state.favourites": "Aucun favori", "main_page.empty_state.tag": "Il n'y a pas de notes avec ce tag", "main_page.note_list_x_more_items.one": "{} élément de plus", "main_page.note_list_x_more_items.other": "{} autres éléments", "main_page.title.notes": "Notes", "main_page.title.archive": "Archive", "main_page.title.trash": "Corbeille", "main_page.title.favourites": "Favoris", "main_page.title.tag": "Tag", "main_page.title.all": "Tout", "main_page.selection_bar.close": "Fermer", "main_page.selection_bar.select": "Sélectionner", "main_page.selection_bar.select_all": "Sélectionner tout", "main_page.selection_bar.add_favourites": "Ajouter à vos favoris", "main_page.selection_bar.remove_favourites": "Retirer des favoris", "main_page.selection_bar.change_color": "Changer de couleur", "main_page.selection_bar.archive": "Archive", "main_page.selection_bar.delete": "Déplacer vers la corbeille", "main_page.selection_bar.perma_delete": "Supprimer", "main_page.selection_bar.pin": "Épingler", "main_page.selection_bar.unpin": "Désépingler", "main_page.selection_bar.save": "Sauvegarder localement", "main_page.selection_bar.save.note_locked": "La note est verrouillée, le mot de passe maître est requis", "main_page.selection_bar.save.success": "Note exportée avec succès", "main_page.selection_bar.save.oopsie": "Une erreur s'est produite lors de l'export ou l'opération a été annulée", "main_page.selection_bar.share": "Partager", "main_page.notes_deleted.one": "{} note a été déplaçée vers la corbeille", "main_page.notes_deleted.other": "{} notes ont été déplaçées vers la corbeille", "main_page.notes_perma_deleted.one": "{} note supprimée", "main_page.notes_perma_deleted.other": "{} notes supprimées", "main_page.notes_archived.one": "{} note à été archivée", "main_page.notes_archived.other": "{} ont été archivées", "main_page.notes_restored.one": "{} note a été restaurée", "main_page.notes_restored.other": "{} notes ont été restaurées", "main_page.export.success": "Note exportée avec succès", "main_page.export.failure": "Une erreur s'est produite lors de l'exportation", "main_page.import_psa": "Si vous ne trouvez pas vos anciennes notes de PotatoNotes, vous pouvez les restaurer en allant à\n\n{}\n\net de là sélectionnez \"{}\"", "note_page.title_hint": "Titre", "note_page.content_hint": "Contenu", "note_page.list_item_hint": "Entrée", "note_page.add_entry_hint": "Ajouter une entrée", "note_page.toolbar.tags": "Gérer les tags", "note_page.toolbar.color": "Changer de couleur", "note_page.toolbar.add_item": "Ajouter objet", "note_page.privacy.title": "Options de confidentialité", "note_page.privacy.hide_content": "Masquer les contenus sur la page d'accueil", "note_page.privacy.lock_note": "Verrouiller la note", "note_page.privacy.lock_note.missing_pass": "Vous devez définir un mot de passe maître dans les paramètres", "note_page.privacy.use_biometrics": "Utilisez les données biométriques pour déverrouiller", "note_page.toggle_list": "Afficher/masquer la liste", "note_page.image_gallery": "Image de la galerie", "note_page.image_camera": "Prendre une photo", "note_page.drawing": "Ajouter un dessin", "note_page.added_favourites": "Note ajoutée aux favoris", "note_page.removed_favourites": "Note retirée des favoris", "settings.title": "Paramètres", "settings.personalization.title": "Personnalisation", "settings.personalization.theme_mode": "Mode thème", "settings.personalization.theme_mode.system": "Système", "settings.personalization.theme_mode.light": "Clair", "settings.personalization.theme_mode.dark": "Sombre", "settings.personalization.use_amoled": "Utiliser le thème noir", "settings.personalization.use_custom_accent": "Suivre le thème du système", "settings.personalization.custom_accent": "Sélectionner un thème", "settings.personalization.use_grid": "Vue en mode grille", "settings.personalization.locale": "Langue de l'application", "settings.personalization.locale.device_default": "Appareil par défaut", "settings.personalization.locale.x_translated": "{}% traduits", "settings.privacy.title": "Vie privée", "settings.privacy.use_master_pass": "Utiliser un mot de passe", "settings.privacy.use_master_pass.disclaimer": "Attention : si vous oubliez votre mot de passe vous ne pourrez pas le réinitialiser. Vous devrez désinstaller l'application, ce qui supprimera toutes vos notes, et la réinstaller. Notez votre mot de passe quelque part", "settings.privacy.modify_master_pass": "Modifier le mot de passe maître", "settings.backup_restore.title": "Sauvegarde et restauration", "settings.backup_restore.backup": "Sauvegarde", "settings.backup_restore.backup_desc": "Créer une copie locale de vos notes", "settings.backup_restore.backup.nothing_to_restore.title": "Aucune note à restaurer !", "settings.backup_restore.backup.nothing_to_restore.desc": "Il n'y a aucune note enregistrée à sauvegarder", "settings.backup_restore.restore": "Restaurer", "settings.backup_restore.restore_desc": "Restaurer une sauvegarde créée à partir d'une version de Leaflet", "settings.backup_restore.restore.status.success": "La note a été restaurée avec succès", "settings.backup_restore.restore.status.wrong_format": "Le fichier spécifié n'est pas une sauvegarde Leaflet valide", "settings.backup_restore.restore.status.wrong_password": "Le mot de passe que vous avez inséré n'a pas pu décrypter la sauvegarde", "settings.backup_restore.restore.status.already_exists": "La note à l'intérieur de la sauvegarde est déjà présente dans la base de données", "settings.backup_restore.restore.status.unknown": "Il y a eu un problème lors de l'importation de la note", "settings.backup_restore.import": "Importer", "settings.backup_restore.import_desc": "Importer des notes depuis une version de PotatoNotes", "settings.info.title": "Infos", "settings.info.about_app": "À propos de PotatoNotes", "settings.info.update_check": "Vérifier les mises à jour de l'application", "settings.info.translate": "Traduire l'application", "settings.info.bug_report": "Signaler un bug", "settings.debug.title": "Débug", "settings.debug.show_setup_screen": "Afficher l'écran de bienvenue à la prochaine ouverture", "settings.debug.loading_overlay": "Tester la superposition de chargement", "settings.debug.clear_database": "Vider la base de données", "settings.debug.migrate_database": "Transférer les données", "settings.debug.generate_trash": "Générer la corbeille", "settings.debug.log_level": "Niveau de log", "about.title": "Paramètres", "about.pwa_version": "Version du PWA", "about.links": "Liens", "about.contributors": "Contributeurs", "about.contributors.hrx": "Développeur principal et designer de l'application", "about.contributors.bas": "Synchroniser l'API et l'application", "about.contributors.nico": "Synhroniser l'API", "about.contributors.kat": "Ancienne API de synchronisation", "about.contributors.rohit": "Illustrations et couleurs des notes", "about.contributors.rshbfn": "Icône de l'application et accent principal", "about.contributors.elias": "Nom de marque du Leaflet", "about.contributors.akshit": "Aide à la sécurité et au backend", "search.textbox_hint": "Rechercher", "search.tag_create_empty_hint": "Créer un nouveau tag", "search.tag_create_hint": "Créer le tag \"{}\"", "search.type_to_search": "Taper pour rechercher", "search.nothing_found": "Aucun résultat trouvé...", "search.note.filters.case_sensitive": "Sensible à la casse", "search.note.filters.favourites": "Favoris seulement", "search.note.filters.locations": "Emplacements des notes", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Archive", "search.note.filters.locations.trash": "Corbeille", "search.note.filters.locations.normal_title": "Notes normales", "search.note.filters.locations.archive_title": "Notes archivées", "search.note.filters.locations.trash_title": "Notes supprimées", "search.note.filters.color": "Filtre de couleur", "search.note.filters.date": "Filtrer par date", "search.note.filters.date.mode_title": "Mode du filtre", "search.note.filters.date.mode_after": "Après la date", "search.note.filters.date.mode_exact": "Date exacte", "search.note.filters.date.mode_before": "Avant la date", "search.note.filters.tags": "Tags", "search.note.filters.tags.selected.one": "{} sélectionné", "search.note.filters.tags.selected.other": "{} sélectionnés", "search.note.filters.clear": "Effacer les filtres", "drawing.color_black": "Noir", "drawing.exit_prompt": "Toute modification non enregistrée sera perdue. Voulez-vous vraiment quitter ?", "drawing.clear_canvas_warning": "Cette opération ne peut être annulée. Continuer?", "drawing.tools.brush": "Pinceau", "drawing.tools.eraser": "Gomme", "drawing.tools.marker": "Marqueur", "drawing.tools.color_picker": "Couleur ", "drawing.tools.radius_picker": "Rayon", "drawing.tools.clear": "Nettoyer le tableau", "setup.button.get_started": "Commencer", "setup.button.finish": "Terminer", "setup.button.next": "Suivant", "setup.button.back": "Retour", "setup.welcome.catchphrase": "Votre nouvelle application de notes préférée", "setup.basic_customization.title": "Personnalisation basique", "setup.restore_import.title": "Restaurer et importer", "setup.restore_import.desc": "Vous pouvez choisir de restaurer des notes à partir d'une autre version de Leaflet ou d'une ancienne version de PotatoNotes", "setup.restore_import.restore_btn": "Restaurer depuis Leaflet", "setup.restore_import.import_btn": "Importer depuis PotatoNotes", "setup.finish.title": "Tout est prêt !", "setup.finish.last_words": "Vous avez terminé la configuration de Leaflet, l'application devrait être prête pour la première utilisation. Si vous voulez changer quelque chose, rendez-vous dans les paramètres. J'espère que vous apprécierez Leaflet autant que moi !", "backup_restore.backup.title": "Créer une sauvegarde", "backup_restore.backup.password": "Mot de passe", "backup_restore.backup.name": "Nom (facultatif)", "backup_restore.backup.num_of_notes": "Nombre de notes dans la sauvegarde : {}", "backup_restore.backup.protected_notes_prompt": "Certaines notes sont verrouillées, nécessite un mot de passe pour continuer", "backup_restore.backup.creating": "Création de la sauvegarde", "backup_restore.backup.creating_progress": "Sauvegarde de la note {} sur {}", "backup_restore.backup.complete.success": "Sauvegarde terminée avec succès !", "backup_restore.backup.complete.failure": "Le processus de sauvegarde a été interrompu", "backup_restore.backup.complete_desc.success": "Le processus de sauvegarde a réussi ! Vous pouvez trouver la sauvegarde sur ", "backup_restore.backup.complete_desc.success.no_file": "Le processus de sauvegarde a réussi! Vous pouvez maintenant fermer cette boîte de dialogue", "backup_restore.backup.complete_desc.failure": "Quelque chose s'est mal passé ou vous avez abandonné le processus de sauvegarde. Vous pouvez réessayer le processus de sauvegarde à tout moment", "backup_restore.restore.title": "Sélectionner la sauvegarde à restaurer", "backup_restore.restore.file_open": "Ouvrir un fichier", "backup_restore.restore.from_file": "{} (depuis un fichier)", "backup_restore.restore.info": "Nombre de notes : {}, Nombre de tags : {}\nCréé le {}", "backup_restore.restore.no_backups": "Il n'y a aucune sauvegarde disponible. Essayez d'ouvrir un fichier à la place", "backup_restore.restore.failure": "Impossible de restaurer la sauvegarde", "backup_restore.import.title": "Sélectionnez l'origine de l'importation", "backup_restore.import.open_db": "Ouvrir un fichier de sauvegarde PotatoNotes", "backup_restore.import.open_previous": "Ouvrir la base de données de la version précédente", "backup_restore.import.open_previous.unsupported_platform": "Seul Android supporte le chargement à partir de la version précédente", "backup_restore.import.open_previous.no_file": "Aucune base de données trouvée à partir de l'ancienne version", "backup_restore.import.notes_loaded": "Notes chargées avec succès", "backup_restore.select_notes": "Sélectionnez les notes à restaurer", "backup_restore.replace_existing": "Remplacer les notes existantes", "miscellaneous.updater.update_available": "Mise à jour disponible !", "miscellaneous.updater.update_available_desc": "Une nouvelle mise à jour est disponible au téléchargement, cliquez sur mettre à jour pour télécharger la mise à jour", "miscellaneous.updater.already_on_latest": "Dernière version", "miscellaneous.updater.already_on_latest_desc": "Vous êtes déjà sur la dernière version de l'application", }; @override int get translatedStrings => 245; } class _$LocaleGlGL extends _$LocaleBase { @override String get locale => "gl-GL"; @override Map<String, String> get data => { "common.cancel": "Cancelar", "common.reset": "Restablecer", "common.restore": "Restaurar", "common.confirm": "Confirmar", "common.save": "Gardar", "common.delete": "Eliminar", "common.undo": "Desfacer", "common.redo": "Refacer", "common.edit": "Editar", "common.go_on": "Seguir", "common.exit": "Saír", "common.ok": "Ok", "common.share": "Compartir", "common.not_now": "Agora non", "common.update": "Actualizar", "common.expand": "Expandir", "common.collapse": "Colapsar", "common.create": "Crear", "common.close": "Pechar", "common.x_of_y": "{} de {}", "common.new_note": "Nova nota", "common.new_list": "Nova lista", "common.new_image": "Nova imaxe", "common.new_drawing": "Novo debuxo", "common.import_note": "Importar nota", "common.biometrics_prompt": "Confirme a biométrica", "common.master_pass.modify": "Modificar master pass", "common.master_pass.confirm": "Confirmar master pass", "common.master_pass.incorrect": "Master pass incorrecto", "common.backup_password.title": "Introduce o contrasinal da copia de seguridade", "common.backup_password.use_master_pass": "Usar o master pass como contrasinal", "common.restore_dialog.title": "Confirma a restauración da nota", "common.restore_dialog.backup_name": "Nome da copia de seguridade: {}", "common.restore_dialog.creation_date": "Data de creación: {}", "common.restore_dialog.app_version": "Versión da aplicación: {}", "common.restore_dialog.note_count": "Reconto de notas: {}", "common.restore_dialog.tag_count": "Reconto de etiquetas: {}", "common.are_you_sure": "Estás seguro?", "common.color.none": "Ningunha", "common.color.red": "Vermello", "common.color.orange": "Laranxa", "common.color.yellow": "Amarelo", "common.color.green": "Verde", "common.color.cyan": "Cian", "common.color.light_blue": "Azul claro", "common.color.blue": "Azul", "common.color.purple": "Violeta", "common.color.pink": "Rosa", "common.notification.default_title": "Notificación fixada", "common.notification.details_title": "Notificacións fixadas", "common.notification.details_desc": "Notificacións fixadas polo usuario", "common.tag.new": "Nova etiqueta", "common.tag.modify": "Modificar etiqueta", "common.tag.textbox_hint": "Nome", "main_page.write_note": "Escribir unha nota", "main_page.settings": "Axustes", "main_page.search": "Buscar", "main_page.account": "Conta", "main_page.restore_prompt.archive": "¿Quere restaurar todas as notas do arquivo?", "main_page.restore_prompt.trash": "¿Queres restaurar todas as notas do lixo?", "main_page.tag_delete_prompt": "Esta etiqueta perderase para sempre se a eliminas", "main_page.deleted_empty_note": "Nota baleira eliminada", "main_page.empty_state.home": "Aínda non se engadiron notas", "main_page.empty_state.archive": "O arquivo está baleiro", "main_page.empty_state.trash": "O lixo está baleiro", "main_page.empty_state.favourites": "Non hai favoritos por agora", "main_page.empty_state.tag": "Non hai notas con esta etiqueta", "main_page.note_list_x_more_items.one": "{} elemento máis", "main_page.note_list_x_more_items.other": "{} elementos máis", "main_page.title.notes": "Notas", "main_page.title.archive": "Arquivo", "main_page.title.trash": "Lixo", "main_page.title.favourites": "Favoritos", "main_page.title.tag": "Etiqueta", "main_page.title.all": "Todos", "main_page.selection_bar.close": "Pechar", "main_page.selection_bar.select": "Seleccionar", "main_page.selection_bar.select_all": "Seleccionar todo", "main_page.selection_bar.add_favourites": "Engadir aos favoritos", "main_page.selection_bar.remove_favourites": "Eliminar dos favoritos", "main_page.selection_bar.change_color": "Cambiar de cor", "main_page.selection_bar.archive": "Arquivo", "main_page.selection_bar.delete": "Mover ó lixo", "main_page.selection_bar.perma_delete": "Eliminar", "main_page.selection_bar.pin": "Fixar", "main_page.selection_bar.unpin": "Desfixar", "main_page.selection_bar.save": "Gardar localmente", "main_page.selection_bar.save.success": "Nota exportada correctamente", "main_page.selection_bar.share": "Compartir", "main_page.notes_deleted.one": "{} nota movida ó lixo", "main_page.notes_deleted.other": "{} notas movidas ó lixo", "main_page.notes_perma_deleted.one": "{} nota eliminada", "main_page.notes_perma_deleted.other": "{} notas eliminadas", "main_page.notes_archived.one": "Arquivouse {} nota", "main_page.notes_archived.other": "Arquivaronse {} notas", "main_page.notes_restored.one": "Restaurouse {} nota", "main_page.notes_restored.other": "Restauráronse {} notas", "main_page.export.success": "Nota exportada correctamente", "main_page.export.failure": "Produciuse un erro ao exportar", "note_page.title_hint": "Título", "note_page.content_hint": "Contido", "note_page.list_item_hint": "Entrada", "note_page.add_entry_hint": "Engadir entrada", "note_page.toolbar.tags": "Xestionar etiquetas", "note_page.toolbar.color": "Cambiar de cor", "note_page.toolbar.add_item": "Engadir elemento", "note_page.privacy.title": "Opcións de privacidade", "note_page.privacy.hide_content": "Ocultar contido na páxina principal", "note_page.privacy.lock_note": "Nota de bloqueo", "note_page.privacy.lock_note.missing_pass": "Debe establecer un pase mestre desde a configuración", "note_page.privacy.use_biometrics": "Usa a biometría para desbloquear", "note_page.toggle_list": "Cambiar lista", "note_page.image_gallery": "Imaxe da galería", "note_page.image_camera": "Sacar unha foto", "note_page.drawing": "Engadir un debuxo", "note_page.added_favourites": "Nota engadida aos favoritos", "note_page.removed_favourites": "Nota eliminada dos favoritos", "settings.title": "Axustes", "settings.personalization.title": "Personalización", "settings.personalization.theme_mode": "Modo de temas", "settings.personalization.theme_mode.system": "Sistema", "settings.personalization.theme_mode.light": "Claro", "settings.personalization.theme_mode.dark": "Escuro", "settings.personalization.use_amoled": "Usa tema negro", "settings.personalization.use_custom_accent": "Seguir o acento do sistema", "settings.personalization.custom_accent": "Escoller un acento personalizado", "settings.personalization.use_grid": "Vista de cuadrícula para notas", "settings.personalization.locale": "Aplicación local", "settings.personalization.locale.device_default": "Predeterminado do dispositivo", "settings.privacy.title": "Privacidade", "settings.privacy.use_master_pass": "Usar a master pass", "settings.privacy.use_master_pass.disclaimer": "Aviso: se esqueces o contrasinal, non podes restablecelo, terás que desinstalar a aplicación e, polo tanto, borrar todas as notas e reinstalala. Por favor escríbeo nalgures", "settings.privacy.modify_master_pass": "Modificar master pass", "settings.backup_restore.title": "Copia de seguridade e restauración", "settings.backup_restore.backup": "Copia de seguridade", "settings.backup_restore.backup_desc": "Crea unha copia local das túas notas", "settings.backup_restore.backup.nothing_to_restore.title": "Non hai notas que restaurar!", "settings.backup_restore.backup.nothing_to_restore.desc": "Non hai notas gardadas para a copia de seguridade", "settings.backup_restore.restore": "Restaurar", "settings.backup_restore.restore_desc": "Restaurar unha copia de seguridade creada a partir dunha versión de Leaflet", "settings.backup_restore.restore.status.success": "A nota restaurouse correctamente", "settings.backup_restore.restore.status.wrong_format": "O ficheiro especificado non é unha copia de seguridade de Leaflet válida", "settings.backup_restore.restore.status.wrong_password": "O contrasinal que inseriu non puido descifrar a copia de seguridade", "settings.backup_restore.restore.status.already_exists": "A nota dentro da copia de seguridade xa está presente na base de datos", "settings.backup_restore.restore.status.unknown": "Houbo un problema ao importar a nota", "settings.backup_restore.import": "Importar", "settings.backup_restore.import_desc": "Importa notas dunha versión de PotatoNotes", "settings.info.title": "Información", "settings.info.about_app": "Acerca de Leaflet", "settings.info.update_check": "Comprobe se hai actualizacións da aplicación", "settings.info.bug_report": "Informar dun erro", "settings.debug.title": "Depurar", "settings.debug.show_setup_screen": "Mostrar a pantalla de configuración no seguinte inicio", "settings.debug.loading_overlay": "Proba de superposición de carga", "settings.debug.clear_database": "Limpar a base de datos", "settings.debug.migrate_database": "Migrar base de datos", "settings.debug.generate_trash": "Xerar lixo", "settings.debug.log_level": "Nivel de rexistro", "about.title": "Acerca de", "about.pwa_version": "Versión de PWA", "about.links": "Ligazóns", "about.contributors": "Colaboradores", "about.contributors.hrx": "Desenvolvedor principal e deseño de aplicacións", "about.contributors.bas": "Sincronizar API e aplicación", "about.contributors.nico": "Sincronizar API", "about.contributors.kat": "Sincronización de API antiga", "about.contributors.rohit": "Ilustracións e cores de notas", "about.contributors.rshbfn": "Icona da aplicación e acento principal", "about.contributors.elias": "Leaflet marca principal", "about.contributors.akshit": "Axuda de seguridade e backend", "search.textbox_hint": "Buscar", "search.tag_create_empty_hint": "Crear nova etiqueta", "search.tag_create_hint": "Crear etiqueta \"{}\"", "search.type_to_search": "Escribe para comezar a buscar", "search.nothing_found": "Non se atopou nada...", "search.note.filters.case_sensitive": "Distinguir entre maiúsculas e minúsculas", "search.note.filters.favourites": "Só favoritos", "search.note.filters.locations": "Localización das notas", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Arquivo", "search.note.filters.locations.trash": "Lixo", "search.note.filters.locations.normal_title": "Notas normais", "search.note.filters.locations.archive_title": "Notas arquivadas", "search.note.filters.locations.trash_title": "Notas eliminadas", "search.note.filters.color": "Filtro de cor", "search.note.filters.date": "Filtro de data", "search.note.filters.date.mode_title": "Filtro de modo", "search.note.filters.date.mode_after": "Despois da data", "search.note.filters.date.mode_exact": "Data exacta", "search.note.filters.date.mode_before": "Antes da data", "search.note.filters.tags": "Etiquetas", "search.note.filters.tags.selected.one": "{} seleccionada", "search.note.filters.tags.selected.other": "{} seleccionadas", "search.note.filters.clear": "Crear filtros", "drawing.color_black": "Negro", "drawing.exit_prompt": "Calquera cambio sen gardar perderase. ¿Queres saír?", "drawing.clear_canvas_warning": "Esta operación non se pode desfacer. ¿Queres continuar?", "drawing.tools.brush": "Brocha", "drawing.tools.eraser": "Goma de borrar", "drawing.tools.marker": "Marcador", "drawing.tools.color_picker": "Cor", "drawing.tools.radius_picker": "Radio", "setup.button.get_started": "Comezar", "setup.button.finish": "Rematar", "setup.button.next": "Seguinte", "setup.button.back": "Voltar", "setup.welcome.catchphrase": "A túa nova aplicación de notas favoritas", "setup.basic_customization.title": "Personalización básica", "setup.restore_import.title": "Restaurar e importar", "setup.restore_import.desc": "Podes escoller restaurar notas desde outra versión de Leaflet ou desde unha versión anterior de PotatoNotes", "setup.finish.title": "¡Todo listo!", "setup.finish.last_words": "Rematou a configuración de Leaflet, agora a aplicación debería estar lista para o seu primeiro uso. Se algunha vez queres cambiar algo, diríxete á configuración. Espero que disfrutedes de Leaflet tanto coma min!", "backup_restore.backup.title": "Crear copia de seguridade", "backup_restore.backup.password": "Contrasinal", "backup_restore.backup.name": "Nome (opcional)", "backup_restore.backup.num_of_notes": "Número de notas na copia de seguridade: {}", "backup_restore.backup.protected_notes_prompt": "Algunhas notas están bloqueadas e requiren un contrasinal para continuar", "backup_restore.backup.creating": "Creando copia de seguridade", "backup_restore.backup.creating_progress": "Facendo copia de seguridade da nota {} de {}", "backup_restore.backup.complete.success": "A copia de seguridade completouse correctamente!", "backup_restore.backup.complete.failure": "O proceso de copia de seguridade interrompeuse", "backup_restore.backup.complete_desc.success": "O proceso de copia de seguridade foi un éxito. Podes atopar a copia de seguridade en ", "backup_restore.backup.complete_desc.success.no_file": "¡O proceso de copia de seguridade foi un éxito! Agora podes pechar este diálogo", "backup_restore.backup.complete_desc.failure": "Produciuse un erro ou abortouse o proceso de gardado. Podes tentar de novo o proceso de copia de seguridade en calquera momento", "backup_restore.restore.title": "Seleccione a copia de seguridade para restaurala", "backup_restore.restore.file_open": "Abrir arquivo", "backup_restore.restore.from_file": "{} (Do ficheiro)", "backup_restore.restore.info": "Reconto de notas: {}, reconto de etiquetas: {}\nCreado en {}", "backup_restore.restore.no_backups": "Non hai copias de seguridade dispoñibles. Tenta abrir un ficheiro", "backup_restore.restore.failure": "Non se puido restaurar a copia de seguridade", "backup_restore.import.title": "Selecciona a orixe de importación", "backup_restore.import.open_db": "Abra o ficheiro de copia de seguridade de PotatoNotes", "backup_restore.import.open_previous": "Abra a base de datos de versións anteriores", "backup_restore.import.open_previous.unsupported_platform": "Só Android admite a carga da versión anterior", "backup_restore.import.open_previous.no_file": "Non se atopou ningunha base de datos da versión antiga", "backup_restore.import.notes_loaded": "As notas cargáronse correctamente", "backup_restore.select_notes": "Selecciona notas para restaurar", "backup_restore.replace_existing": "Substitúe as notas existentes", "miscellaneous.updater.update_available": "Actualización dispoñible!", "miscellaneous.updater.update_available_desc": "Hai unha nova actualización dispoñible para descargar. Fai clic en Actualizar para descargar a actualización", "miscellaneous.updater.already_on_latest": "Última versión", "miscellaneous.updater.already_on_latest_desc": "Xa estás na última versión da aplicación", }; @override int get translatedStrings => 236; } class _$LocaleHuHU extends _$LocaleBase { @override String get locale => "hu-HU"; @override Map<String, String> get data => { "common.cancel": "Megszakítás", "common.reset": "Alaphelyzetbe állítás", "common.restore": "Visszaállítás", "common.confirm": "Megerősítés", "common.save": "Mentés", "common.delete": "Törlés", "common.undo": "Visszavonás", "common.redo": "Ismétlés", "common.edit": "Szerkesztés", "common.go_on": "Rajta", "common.exit": "Kilépés", "common.share": "Megosztás", "common.close": "Bezárás", "common.x_of_y": "{} a {} - ból", "common.new_note": "Új jegyzet", "common.new_list": "Új lista", "common.new_image": "Új kép", "common.new_drawing": "Új rajz", "common.biometrics_prompt": "Biometrikus jóváhagyás", "common.master_pass.modify": "Mesterjelszó megváltoztatása", "common.master_pass.confirm": "Mesterjelszó megerősítése", "common.are_you_sure": "Biztos vagy benne?", "common.color.none": "Egyik sem", "common.color.red": "Piros", "common.color.orange": "Narancssárga", "common.color.yellow": "Citromsárga", "common.color.green": "Zöld", "common.color.cyan": "Cián", "common.color.light_blue": "Világoskék", "common.color.blue": "Kék", "common.color.purple": "Lila", "common.color.pink": "Rózsaszín", "common.notification.default_title": "Rögzített értesítés", "common.notification.details_title": "Rögzített értesítések", "common.notification.details_desc": "Felhasználó által rögzített értesítések", "common.tag.new": "Új címke", "common.tag.modify": "Címke megváltoztatása", "common.tag.textbox_hint": "Név", "main_page.settings": "Beállítások", "main_page.search": "Keresés", "main_page.account": "Fiók", "main_page.restore_prompt.archive": "Biztosan helyreállítja az összes archivált jegyzetet?", "main_page.restore_prompt.trash": "Biztosan helyreállítja az összes kukában lévő jegyzetet?", "main_page.tag_delete_prompt": "Ez a címke örökké elveszik ha törlöd", "main_page.deleted_empty_note": "Üres jegyzet törölve", "main_page.empty_state.home": "Még nincsenek feljegyzések", "main_page.empty_state.archive": "Az archívum üres", "main_page.empty_state.trash": "A kuka üres", "main_page.empty_state.favourites": "Nincsen kedvenc feljegyzés", "main_page.empty_state.tag": "Nincs jegyzet ezzel a címkével", "main_page.title.archive": "Archívum", "main_page.title.trash": "Kuka", "main_page.title.favourites": "Kedvencek", "main_page.title.tag": "Címke", "main_page.title.all": "Összes", "main_page.selection_bar.close": "Bezárás", "main_page.selection_bar.add_favourites": "Hozzáadás a kedvencekhez", "main_page.selection_bar.remove_favourites": "Törlés a kedvencekből", "main_page.selection_bar.change_color": "Szín változtatása", "main_page.selection_bar.archive": "Archívum", "main_page.selection_bar.delete": "Áthelyezés a kukába", "main_page.selection_bar.perma_delete": "Törlés", "main_page.selection_bar.pin": "Rögzítés", "main_page.selection_bar.share": "Megosztás", "main_page.notes_deleted.one": "{} feljegyzés áthelyezve a kukába", "main_page.notes_deleted.other": "{} feljegyzések áthelyezve a kukába", "main_page.notes_archived.one": "{} nevű feljegyzés az archívumba helyezve", "main_page.notes_archived.other": "{} nevű feljegyzések az archívumba helyezve", "main_page.notes_restored.one": "{} nevű feljegyzés visszaállítva", "main_page.notes_restored.other": "{} feljegyzések visszaállítva", "note_page.title_hint": "Cím", "note_page.content_hint": "Tartalom", "note_page.list_item_hint": "Bemenet", "note_page.add_entry_hint": "Bejegyzés hozzáadása", "note_page.toolbar.tags": "Címkék kezelése", "note_page.toolbar.color": "Szín változtatása", "note_page.toolbar.add_item": "Elem hozzáadása", "note_page.privacy.title": "Adatvédelmi beállítások", "note_page.privacy.hide_content": "Tartalom elrejtése a kezdőlapon", "note_page.privacy.lock_note": "Jegyzet zárolása", "note_page.privacy.lock_note.missing_pass": "Elsőnek adj meg egy mesterjelszavat a beállításokban", "note_page.privacy.use_biometrics": "Biometrikus ellenőrzés használata", "note_page.toggle_list": "Lista kapcsolása", "note_page.image_gallery": "Kép a gallériából", "note_page.image_camera": "Fotó készítése", "note_page.drawing": "Rajz hozzáadása", "note_page.added_favourites": "Feljegyzés hozzáadva a kedvencekhez", "note_page.removed_favourites": "Feljegyzés eltávolítva a kedvencek közül", "settings.title": "Beállítások", "settings.personalization.title": "Testreszabás", "settings.personalization.theme_mode": "Téma mód", "settings.personalization.theme_mode.system": "Rendszer", "settings.personalization.theme_mode.light": "Világos", "settings.personalization.theme_mode.dark": "Sötét", "settings.personalization.use_amoled": "Sötét téma használata", "settings.personalization.use_custom_accent": "Rendszertéma alapján", "settings.personalization.custom_accent": "Egyéni szín választása", "settings.personalization.use_grid": "Rács megjelenítes a feljegyzésekhez", "settings.personalization.locale": "Helyszín", "settings.privacy.title": "Adatvédelem", "settings.privacy.use_master_pass": "Mesterjelszó használata", "settings.privacy.use_master_pass.disclaimer": "Figyelmeztetés : Ha a jövőben elfelejted a jelszavadat nem tudod visszaállítani , újra kell telepítened az alkalmazást , a biztonság kedvéért írja fel jelszavát valahova.", "settings.privacy.modify_master_pass": "Mesterjelszó megváltoztatása", "settings.backup_restore.restore": "Visszaállítás", "settings.info.title": "Tudnivaló", "settings.info.about_app": "A PotatoNotes - ről", "settings.debug.title": "Hibakeresés", "settings.debug.show_setup_screen": "A beállítás menü megjelenítése következő indításkor", "settings.debug.clear_database": "Databázis kitisztítása", "settings.debug.migrate_database": "Databázis költöztetése", "settings.debug.log_level": "Naplózási szint", "about.title": "Beállítások", "about.pwa_version": "PWA verzió", "about.links": "Linkek", "about.contributors": "Közreműködők", "about.contributors.hrx": "Fő fejlesztő és app dizájner", "about.contributors.bas": "API és alkalmazás szinkronizálása", "about.contributors.nico": "API szinkronizálása", "about.contributors.kat": "Régi API szinkronizálás", "about.contributors.rohit": "Illusztrációk és jegyzet színek", "about.contributors.rshbfn": "App ikon és fő hangsúly", "search.textbox_hint": "Keresés", "search.tag_create_hint": "Címke \"{}\" létrehozása", "search.type_to_search": "Kezdj el gépelni a kereséshez", "search.nothing_found": "Nincs találat.", "search.note.filters.locations.archive": "Archívum", "search.note.filters.locations.trash": "Kuka", "drawing.color_black": "Fekete", "drawing.exit_prompt": "A Nem mentett változtatások elvesznek. Biztosan ki szeretne lépni?", "drawing.tools.brush": "Ecset", "drawing.tools.eraser": "Radír", "drawing.tools.marker": "Filctoll", "drawing.tools.color_picker": "Szín", "drawing.tools.radius_picker": "Hatókör", "setup.button.get_started": "Vágjunk bele!", "setup.button.finish": "Befejezés", "setup.button.next": "Következő", "setup.button.back": "Vissza", "setup.welcome.catchphrase": "Az új kedvenc alkalmazásod a feljegyzésekhez", "setup.basic_customization.title": "Kezdő testreszabás", "setup.finish.title": "Készen állunk!", }; @override int get translatedStrings => 138; } class _$LocaleItIT extends _$LocaleBase { @override String get locale => "it-IT"; @override Map<String, String> get data => { "common.cancel": "Annulla", "common.reset": "Reimposta", "common.restore": "Ripristina", "common.confirm": "Conferma", "common.save": "Salva", "common.delete": "Elimina", "common.undo": "Annulla", "common.redo": "Ripeti", "common.edit": "Modifica", "common.go_on": "Prosegui", "common.exit": "Esci", "common.ok": "Ok", "common.share": "Condividi", "common.not_now": "Non ora", "common.update": "Aggiorna", "common.expand": "Espandi", "common.collapse": "Contrai", "common.create": "Crea", "common.close": "Chiudi", "common.x_of_y": "{} di {}", "common.quick_tip": "Suggerimento", "common.new_note": "Nuovo appunto", "common.new_list": "Nuovo elenco", "common.new_image": "Nuova immagine", "common.new_drawing": "Nuovo disegno", "common.import_note": "Importa appunto", "common.biometrics_prompt": "Conferma biometria", "common.master_pass.modify": "Modifica pass principale", "common.master_pass.confirm": "Conferma pass principale", "common.master_pass.incorrect": "Pass principale errato", "common.backup_password.title": "Inserisci la password del backup", "common.backup_password.use_master_pass": "Utilizza il pass principale come password", "common.restore_dialog.title": "Conferma ripristino dell'appunto", "common.restore_dialog.backup_name": "Nome backup: {}", "common.restore_dialog.creation_date": "Data di creazione: {}", "common.restore_dialog.app_version": "Versione dell'app: {}", "common.restore_dialog.note_count": "Numero di appunti: {}", "common.restore_dialog.tag_count": "Numero di etichette: {}", "common.are_you_sure": "Sei sicuro?", "common.color.none": "Nessuno", "common.color.red": "Rosso", "common.color.orange": "Arancione", "common.color.yellow": "Giallo", "common.color.green": "Verde", "common.color.cyan": "Ciano", "common.color.light_blue": "Blu chiaro", "common.color.blue": "Blu", "common.color.purple": "Viola", "common.color.pink": "Rosa", "common.notification.default_title": "Appunto fissato", "common.notification.details_title": "Appunti fissati", "common.notification.details_desc": "Appunti fissati dall'utente", "common.tag.new": "Nuova etichetta", "common.tag.modify": "Modifica etichetta", "common.tag.textbox_hint": "Nome", "main_page.write_note": "Scrivi un appunto", "main_page.settings": "Impostazioni", "main_page.search": "Cerca", "main_page.account": "Profilo", "main_page.restore_prompt.archive": "Vuoi ripristinare ogni appunto nell'archivio?", "main_page.restore_prompt.trash": "Vuoi ripristinare ogni appunto nel cestino?", "main_page.tag_delete_prompt": "Questa etichetta verrà persa per sempre se la elimini", "main_page.deleted_empty_note": "Appunto vuoto eliminato", "main_page.empty_state.home": "Ancora nessun appunto", "main_page.empty_state.archive": "L'archivio è vuoto", "main_page.empty_state.trash": "Il cestino è vuoto", "main_page.empty_state.favourites": "Nessun preferito per ora", "main_page.empty_state.tag": "Nessun appunto con questa etichetta", "main_page.note_list_x_more_items.one": "{} altro elemento", "main_page.note_list_x_more_items.other": "{} altri elementi", "main_page.title.notes": "Appunti", "main_page.title.archive": "Archivio", "main_page.title.trash": "Cestino", "main_page.title.favourites": "Preferiti", "main_page.title.tag": "Etichetta", "main_page.title.all": "Tutti", "main_page.selection_bar.close": "Chiudi", "main_page.selection_bar.select": "Seleziona", "main_page.selection_bar.select_all": "Seleziona tutto", "main_page.selection_bar.add_favourites": "Aggiungi ai preferiti", "main_page.selection_bar.remove_favourites": "Rimuovi dai preferiti", "main_page.selection_bar.change_color": "Cambia colore", "main_page.selection_bar.archive": "Archivio", "main_page.selection_bar.delete": "Sposta nel cestino", "main_page.selection_bar.perma_delete": "Elimina", "main_page.selection_bar.pin": "Fissa", "main_page.selection_bar.unpin": "Stacca", "main_page.selection_bar.save": "Salva localmente", "main_page.selection_bar.save.note_locked": "L'appunto è bloccato, è richiesto il pass principale", "main_page.selection_bar.save.success": "Appunto esportato con successo", "main_page.selection_bar.save.oopsie": "Qualcosa è andato storto durante l'esportazione o l'operazione è stata annullata", "main_page.selection_bar.share": "Condividi", "main_page.notes_deleted.one": "{} appunto spostato nel cestino", "main_page.notes_deleted.other": "{} appunti spostati nel cestino", "main_page.notes_perma_deleted.one": "{} appunto eliminato", "main_page.notes_perma_deleted.other": "{} appunti eliminati", "main_page.notes_archived.one": "{} appunto archiviato", "main_page.notes_archived.other": "{} appunti archiviati", "main_page.notes_restored.one": "{} appunto ripristinato", "main_page.notes_restored.other": "{} appunti ripristinati", "main_page.export.success": "Appunto esportato con successo", "main_page.export.failure": "Qualcosa è andato storto durante l'esportazione", "main_page.import_psa": "Se non ritrovi gli appunti della versione precedente di PotatoNotes puoi ripristinarli andando su\n\n{}\n\ne da lì seleziona \"{}\"", "note_page.title_hint": "Titolo", "note_page.content_hint": "Contenuto", "note_page.list_item_hint": "Elemento", "note_page.add_entry_hint": "Aggiungi voce", "note_page.toolbar.tags": "Gestisci etichette", "note_page.toolbar.color": "Cambia colore", "note_page.toolbar.add_item": "Aggiungi oggetto", "note_page.privacy.title": "Opzioni privacy", "note_page.privacy.hide_content": "Nascondi contenuto nella pagina principale", "note_page.privacy.lock_note": "Proteggi nota", "note_page.privacy.lock_note.missing_pass": "È necessario aggiungere un pass principale dalle impostazioni", "note_page.privacy.use_biometrics": "Usa biometria per sbloccare", "note_page.toggle_list": "Attiva/disattiva elenco", "note_page.image_gallery": "Immagine dalla galleria", "note_page.image_camera": "Scatta una foto", "note_page.drawing": "Aggiungi un disegno", "note_page.added_favourites": "Appunto aggiunto ai preferiti", "note_page.removed_favourites": "Appunto rimosso dai preferiti", "settings.title": "Impostazioni", "settings.personalization.title": "Personalizzazione", "settings.personalization.theme_mode": "Modalità tema", "settings.personalization.theme_mode.system": "Sistema", "settings.personalization.theme_mode.light": "Chiaro", "settings.personalization.theme_mode.dark": "Scuro", "settings.personalization.use_amoled": "Usa tema nero", "settings.personalization.use_custom_accent": "Usa il colore di sistema", "settings.personalization.custom_accent": "Scegli un accento personalizzato", "settings.personalization.use_grid": "Vista a griglia per gli appunti", "settings.personalization.locale": "Linguaggio dell'app", "settings.personalization.locale.device_default": "Predefinito del dispositivo", "settings.personalization.locale.x_translated": "Tradotto al {}%", "settings.privacy.title": "Privacy", "settings.privacy.use_master_pass": "Usa pass principale", "settings.privacy.use_master_pass.disclaimer": "Attenzione: se mai dovessi dimenticare il pass non potrai reimpostarlo. Avrai bisogno di disinstallare l'app, di conseguenza perdendo tutti gli appunti, e reinstallarla. Per favore, annota il pass da qualche parte", "settings.privacy.modify_master_pass": "Modifica pass principale", "settings.backup_restore.title": "Backup e Ripristino", "settings.backup_restore.backup": "Backup", "settings.backup_restore.backup_desc": "Crea una copia locale dei tuoi appunti", "settings.backup_restore.backup.nothing_to_restore.title": "Nessun'appunto da ripristinare!", "settings.backup_restore.backup.nothing_to_restore.desc": "Non ci sono appunti per eseguire il backup", "settings.backup_restore.restore": "Ripristina", "settings.backup_restore.restore_desc": "Ripristina un backup creato in una versione di Leaflet", "settings.backup_restore.restore.status.success": "L'appunto è stato ripristinato con successo", "settings.backup_restore.restore.status.wrong_format": "Il file specificato non è un file di backup valido", "settings.backup_restore.restore.status.wrong_password": "La password inserita non è riuscita a decriptare il backup", "settings.backup_restore.restore.status.already_exists": "L'appunto all'interno del backup è già presente nel database", "settings.backup_restore.restore.status.unknown": "Si è verificato un problema durante l'importazione dell'appunto", "settings.backup_restore.import": "Importa", "settings.backup_restore.import_desc": "Importa gli appunti da una versione di PotatoNotes", "settings.info.title": "Info", "settings.info.about_app": "Informazioni su Leaflet", "settings.info.update_check": "Controlla aggiornamenti", "settings.info.translate": "Traduci l'app", "settings.info.bug_report": "Segnala un bug", "settings.debug.title": "Debug", "settings.debug.show_setup_screen": "Mostra la schermata iniziale al prossimo avvio", "settings.debug.loading_overlay": "Prova l'overlay di caricamento", "settings.debug.clear_database": "Pulisci database", "settings.debug.migrate_database": "Migra database", "settings.debug.generate_trash": "Genera spazzatura", "settings.debug.log_level": "Livello di log", "about.title": "Crediti", "about.pwa_version": "Versione PWA", "about.links": "Collegamenti", "about.contributors": "Collaboratori", "about.contributors.hrx": "Sviluppatore principale e design app", "about.contributors.bas": "API sync e app", "about.contributors.nico": "API sync", "about.contributors.kat": "API sync precedente", "about.contributors.rohit": "Illustrazioni e colori degli appunti", "about.contributors.rshbfn": "Icon dell'app e colore principale", "about.contributors.elias": "Ideazione marchio Leaflet", "about.contributors.akshit": "Aiuto con la sicurezza e con il backend dell'app", "search.textbox_hint": "Cerca", "search.tag_create_empty_hint": "Crea nuova etichetta", "search.tag_create_hint": "Crea etichetta \"{}\"", "search.type_to_search": "Digita per iniziare la ricerca", "search.nothing_found": "Nessun risultato...", "search.note.filters.case_sensitive": "Distingui maiuscole", "search.note.filters.favourites": "Solo appunti preferiti", "search.note.filters.locations": "Posizione appunti", "search.note.filters.locations.normal": "Principale", "search.note.filters.locations.archive": "Archivio", "search.note.filters.locations.trash": "Cestino", "search.note.filters.locations.normal_title": "Appunti principali", "search.note.filters.locations.archive_title": "Appunti archiviati", "search.note.filters.locations.trash_title": "Appunti nel cestino", "search.note.filters.color": "Colore", "search.note.filters.date": "Data", "search.note.filters.date.mode_title": "Modalità filtro", "search.note.filters.date.mode_after": "Dopo la data", "search.note.filters.date.mode_exact": "Data esatta", "search.note.filters.date.mode_before": "Prima della data", "search.note.filters.tags": "Etichette", "search.note.filters.tags.selected.one": "{} selezionata", "search.note.filters.tags.selected.other": "{} selezionate", "search.note.filters.clear": "Cancella filtri", "drawing.color_black": "Nero", "drawing.exit_prompt": "Le modifiche non salvate andranno perse. Vuoi uscire?", "drawing.clear_canvas_warning": "Questa operazione non può essere annullata. Continuare?", "drawing.tools.brush": "Pennello", "drawing.tools.eraser": "Gomma", "drawing.tools.marker": "Evidenziatore", "drawing.tools.color_picker": "Colore", "drawing.tools.radius_picker": "Dimensione", "drawing.tools.clear": "Pulisci canvas", "setup.button.get_started": "Iniziamo", "setup.button.finish": "Termina", "setup.button.next": "Prossimo", "setup.button.back": "Precedente", "setup.welcome.catchphrase": "La tua nuova app per gli appunti preferita", "setup.basic_customization.title": "Personalizzazione di base", "setup.restore_import.title": "Ripristina e importa", "setup.restore_import.desc": "Puoi scegliere di ripristinare gli appunti da un'altra versione di Leaflet o importare gli appunti da una versione precedente di PotatoNotes", "setup.restore_import.restore_btn": "Ripristina da Leaflet", "setup.restore_import.import_btn": "Importa da PotatoNotes", "setup.finish.title": "Tutto pronto!", "setup.finish.last_words": "Hai completato il setup per Leaflet, ora l'app dovrebbe essere pronta per il primo utilizzo. Se mai volessi cambiare qualcosa, puoi andare sulle impostazioni. Spero che apprezzerai Leaflet quanto me!", "backup_restore.backup.title": "Crea backup", "backup_restore.backup.password": "Password", "backup_restore.backup.name": "Nome (opzionale)", "backup_restore.backup.num_of_notes": "Numero di appunti nel backup: {}", "backup_restore.backup.protected_notes_prompt": "Alcuni appunti sono bloccati, inserisci il pass principale per continuare", "backup_restore.backup.creating": "Creazione backup", "backup_restore.backup.creating_progress": "Backup dell'appunti {} di {}", "backup_restore.backup.complete.success": "Backup completato con successo!", "backup_restore.backup.complete.failure": "Il processo di backup è stato interrotto", "backup_restore.backup.complete_desc.success": "Il processo di backup è stato un successo! Puoi trovare il backup a ", "backup_restore.backup.complete_desc.success.no_file": "Il processo di backup è stato un successo! Ora puoi chiudere questa finestra", "backup_restore.backup.complete_desc.failure": "Qualcosa è andato storto o hai interrotto il processo di salvataggio. Puoi riavviare il processo di backup in qualsiasi momento", "backup_restore.restore.title": "Seleziona un backup da ripristinare", "backup_restore.restore.file_open": "Apri file", "backup_restore.restore.from_file": "{} (Da file)", "backup_restore.restore.info": "Numero appunti: {}, Numero etichette: {}\nCreato il {}", "backup_restore.restore.no_backups": "Non ci sono backup disponibili. Prova ad aprire un file", "backup_restore.restore.failure": "Impossibile ripristinare il backup", "backup_restore.import.title": "Seleziona origine importazione", "backup_restore.import.open_db": "Apri file di backup PotatoNotes", "backup_restore.import.open_previous": "Apri il database della versione precedente", "backup_restore.import.open_previous.unsupported_platform": "Solo Android supporta il caricamento da versione precedente", "backup_restore.import.open_previous.no_file": "Non è stato trovato nessun database dalla versione precedente", "backup_restore.import.notes_loaded": "Appunti caricati con successo", "backup_restore.select_notes": "Seleziona appunti da ripristinare", "backup_restore.replace_existing": "Sostituisci appunti esistenti", "miscellaneous.updater.update_available": "Aggiornamento disponibile!", "miscellaneous.updater.update_available_desc": "È disponibile una nuova versione per il download, clicca aggiorna per scaricare il file di aggiornamento", "miscellaneous.updater.already_on_latest": "Ultima versione", "miscellaneous.updater.already_on_latest_desc": "Sei già sull'ultima versione dell'app", }; @override int get translatedStrings => 245; } class _$LocaleNlNL extends _$LocaleBase { @override String get locale => "nl-NL"; @override Map<String, String> get data => { "common.cancel": "Annuleer", "common.reset": "Reset", "common.restore": "Herstel", "common.confirm": "Bevestigen", "common.save": "Opslaan", "common.delete": "Verwijder", "common.undo": "Maak ongedaan", "common.redo": "Opnieuw", "common.edit": "Bewerken", "common.go_on": "Ga verder", "common.exit": "Sluiten", "common.ok": "Oké", "common.share": "Delen", "common.not_now": "Niet nu", "common.update": "Vernieuwen", "common.expand": "Uitklappen", "common.collapse": "Inklappen", "common.create": "Maken", "common.close": "Sluiten", "common.x_of_y": "{} van {}", "common.quick_tip": "Snelle tip", "common.new_note": "Nieuwe notitie", "common.new_list": "Nieuwe lijst", "common.new_image": "Nieuwe afbeelding", "common.new_drawing": "Nieuwe tekening", "common.import_note": "Notitie importeren", "common.biometrics_prompt": "Biometrische gegevens bevestigen", "common.master_pass.modify": "Wijzig hoofdwachtwoord", "common.master_pass.confirm": "Bevestig het hoofdwachtwoord", "common.master_pass.incorrect": "Onjuist hoofdwachtworod", "common.backup_password.title": "Wachtwoord voor back-up invoeren", "common.backup_password.use_master_pass": "Hoofdwachtwoord gebruiken als wachtwoord", "common.restore_dialog.title": "Notitieherstel bevestigen", "common.restore_dialog.backup_name": "Back-up naam: {}", "common.restore_dialog.creation_date": "Aanmaakdatum: {}", "common.restore_dialog.app_version": "App versie: {}", "common.restore_dialog.note_count": "Aantal notities: {}", "common.restore_dialog.tag_count": "Aantal tags: {}", "common.are_you_sure": "Weet je het zeker?", "common.color.none": "Geen", "common.color.red": "Rood", "common.color.orange": "Oranje", "common.color.yellow": "Geel", "common.color.green": "Groen", "common.color.cyan": "Cyaan", "common.color.light_blue": "Lichtblauw", "common.color.blue": "Blauw", "common.color.purple": "Paars", "common.color.pink": "Roze", "common.notification.default_title": "Vastgezette melding", "common.notification.details_title": "Vastgezette meldingen", "common.notification.details_desc": "Door de gebruiker vastgezette meldingen", "common.tag.new": "Nieuw label", "common.tag.modify": "Wijzig label", "common.tag.textbox_hint": "Naam", "main_page.write_note": "Schrijf een notitie", "main_page.settings": "Instellingen", "main_page.search": "Zoeken", "main_page.account": "Account", "main_page.restore_prompt.archive": "Wil je alle notities in het archief terugzetten?", "main_page.restore_prompt.trash": "Wil je alle notities in de prullenbak herstellen?", "main_page.tag_delete_prompt": "Dit label zal voor altijd verloren gaan als je het verwijdert", "main_page.deleted_empty_note": "Lege notitie verwijderd", "main_page.empty_state.home": "Er zijn nog geen notities toegevoegd", "main_page.empty_state.archive": "Het archief is leeg", "main_page.empty_state.trash": "De prullenbak is leeg", "main_page.empty_state.favourites": "Nog geen favorieten", "main_page.empty_state.tag": "Geen notities met dit label", "main_page.note_list_x_more_items.one": "Nog {} item", "main_page.note_list_x_more_items.other": "Nog {} items", "main_page.title.notes": "Notities", "main_page.title.archive": "Archief", "main_page.title.trash": "Prullenbak", "main_page.title.favourites": "Favorieten", "main_page.title.tag": "Label", "main_page.title.all": "Alles", "main_page.selection_bar.close": "Sluiten", "main_page.selection_bar.select": "Selecteren", "main_page.selection_bar.select_all": "Alles selecteren", "main_page.selection_bar.add_favourites": "Voeg toe aan favorieten", "main_page.selection_bar.remove_favourites": "Verwijder uit favorieten", "main_page.selection_bar.change_color": "Kleur wijzigen", "main_page.selection_bar.archive": "Archief", "main_page.selection_bar.delete": "Naar prullenbak verplaatsen", "main_page.selection_bar.perma_delete": "Verwijder", "main_page.selection_bar.pin": "Vastzetten", "main_page.selection_bar.unpin": "Losmaken", "main_page.selection_bar.save": "Lokaal opslaan", "main_page.selection_bar.save.note_locked": "Notitie is vergrendeld, hoofdwachtwoord is vereist", "main_page.selection_bar.save.success": "Notitie succesvol geëxporteerd", "main_page.selection_bar.save.oopsie": "Er ging iets mis tijdens het exporteren of bewerking geannuleerd", "main_page.selection_bar.share": "Delen", "main_page.notes_deleted.one": "{} notitie verplaatst naar de prullenbak", "main_page.notes_deleted.other": "{} notities verplaatst naar de prullenbak", "main_page.notes_perma_deleted.one": "{} notitie verwijderd", "main_page.notes_perma_deleted.other": "{} notities verwijderd", "main_page.notes_archived.one": "{} notitie gearchiveerd", "main_page.notes_archived.other": "{} notities gearchiveerd", "main_page.notes_restored.one": "{} notitie hersteld", "main_page.notes_restored.other": "{} notities hersteld", "main_page.export.success": "Notitie succesvol geëxporteerd", "main_page.export.failure": "Er ging iets mis tijdens het exporteren", "main_page.import_psa": "Als je oudere notities vanuit PotatoNotes niet kunt vinden kun je ze herstellen door naar\n\n{}\n\nte gaan en uit daar \"{}\" te kiezen", "note_page.title_hint": "Titel", "note_page.content_hint": "Inhoud", "note_page.list_item_hint": "Inhoud", "note_page.add_entry_hint": "Voeg item toe", "note_page.toolbar.tags": "Labels beheren", "note_page.toolbar.color": "Kleur wijzigen", "note_page.toolbar.add_item": "Item toevoegen", "note_page.privacy.title": "Privacy opties", "note_page.privacy.hide_content": "Verberg inhoud op hoofdpagina", "note_page.privacy.lock_note": "Notitie vergrendelen", "note_page.privacy.lock_note.missing_pass": "Je moet een hoofdwachtwoord instellen vanuit instellingen", "note_page.privacy.use_biometrics": "Biometrie gebruiken om te ontgrendelen", "note_page.toggle_list": "Checklist", "note_page.image_gallery": "Afbeelding uit galerij", "note_page.image_camera": "Maak een foto", "note_page.drawing": "Voeg tekening toe", "note_page.added_favourites": "Notitie toegevoegd aan favorieten", "note_page.removed_favourites": "Notitie verwijderd uit favorieten", "settings.title": "Instellingen", "settings.personalization.title": "Personalisatie", "settings.personalization.theme_mode": "Thema modus", "settings.personalization.theme_mode.system": "Systeem", "settings.personalization.theme_mode.light": "Licht", "settings.personalization.theme_mode.dark": "Donker", "settings.personalization.use_amoled": "Gebruik zwart thema", "settings.personalization.use_custom_accent": "Volg systeemaccent", "settings.personalization.custom_accent": "Kies een aangepast accent", "settings.personalization.use_grid": "Rasterweergave voor notities", "settings.personalization.locale": "App lokalisatie", "settings.personalization.locale.device_default": "Standaardinstelling van apparaat", "settings.personalization.locale.x_translated": "{}% vertaald", "settings.privacy.title": "Privacy", "settings.privacy.use_master_pass": "Gebruik hoofdwachtwoord", "settings.privacy.use_master_pass.disclaimer": "Waarschuwing: als je ooit het hoofdwachtwoord vergeet kun je deze niet opnieuw instellen, je moet de app opnieuw installeren, waardoor alle notities worden gewist. Schrijf het alsjeblieft ergens op", "settings.privacy.modify_master_pass": "Wijzig hoofdwachtwoord", "settings.backup_restore.title": "Back-up en terugzetten", "settings.backup_restore.backup": "Back-up", "settings.backup_restore.backup_desc": "Maak een lokale kopie van uw notities", "settings.backup_restore.backup.nothing_to_restore.title": "Geen notities om te herstellen!", "settings.backup_restore.backup.nothing_to_restore.desc": "Er zijn geen notities opgeslagen om een back-up te maken", "settings.backup_restore.restore": "Herstel", "settings.backup_restore.restore_desc": "Herstel een back-up gemaakt van een versie van Leaflet", "settings.backup_restore.restore.status.success": "De notitie is succesvol hersteld", "settings.backup_restore.restore.status.wrong_format": "Het opgegeven bestand is geen geldige Leaflet back-up", "settings.backup_restore.restore.status.wrong_password": "Het wachtwoord dat je hebt ingevoerd kon de back-up niet ontsleutelen", "settings.backup_restore.restore.status.already_exists": "De notitie in de back-up is al aanwezig in de database", "settings.backup_restore.restore.status.unknown": "Er is een probleem opgetreden tijdens het importeren van de notitie", "settings.backup_restore.import": "Importeren", "settings.backup_restore.import_desc": "Notities importeren uit een versie van PotatoNotes", "settings.info.title": "Info", "settings.info.about_app": "Over Leaflet", "settings.info.update_check": "Controleren op app-updates", "settings.info.translate": "Vertaal de app", "settings.info.bug_report": "Rapporteer een bug", "settings.debug.title": "Debug", "settings.debug.show_setup_screen": "Setup-scherm bij volgende start weergeven", "settings.debug.loading_overlay": "Test laadoverlay", "settings.debug.clear_database": "Database leegmaken", "settings.debug.migrate_database": "Database migreren", "settings.debug.generate_trash": "Prullenbak creëren", "settings.debug.log_level": "Log niveau", "about.title": "Over", "about.pwa_version": "PWA versie", "about.links": "Koppelingen", "about.contributors": "Bijdragers", "about.contributors.hrx": "Hoofdontwikkelaar en app ontwerp", "about.contributors.bas": "Sync API en app", "about.contributors.nico": "Sync API", "about.contributors.kat": "Oude sync API", "about.contributors.rohit": "Illustraties en notitie-kleuren", "about.contributors.rshbfn": "App icoon en hoofdaccent", "about.contributors.elias": "Leaflet merknaam", "about.contributors.akshit": "Beveiliging en backend hulp", "search.textbox_hint": "Zoeken", "search.tag_create_empty_hint": "Maak label", "search.tag_create_hint": "Maak label \"{}\"", "search.type_to_search": "Typ om te beginnen met zoeken", "search.nothing_found": "Niets gevonden...", "search.note.filters.case_sensitive": "Hoofdlettergevoelig", "search.note.filters.favourites": "Alleen favorieten", "search.note.filters.locations": "Notitie locaties", "search.note.filters.locations.normal": "Normaal", "search.note.filters.locations.archive": "Archief", "search.note.filters.locations.trash": "Prullenbak", "search.note.filters.locations.normal_title": "Normale notities", "search.note.filters.locations.archive_title": "Gearchiveerde notities", "search.note.filters.locations.trash_title": "Verwijderde notities", "search.note.filters.color": "Kleur filter", "search.note.filters.date": "Datum filter", "search.note.filters.date.mode_title": "Filter modus", "search.note.filters.date.mode_after": "Na datum", "search.note.filters.date.mode_exact": "Exacte datum", "search.note.filters.date.mode_before": "Voor datum", "search.note.filters.tags": "Label", "search.note.filters.tags.selected.one": "{} geselecteerd", "search.note.filters.tags.selected.other": "{} geselecteerd", "search.note.filters.clear": "Filters wissen", "drawing.color_black": "Zwart", "drawing.exit_prompt": "Niet-opgeslagen wijzigingen zullen verloren gaan. Weet je zeker dat je wil afsluiten?", "drawing.clear_canvas_warning": "Deze actie kan niet ongedaan worden gemaakt. Doorgaan?", "drawing.tools.brush": "Kwast", "drawing.tools.eraser": "Gum", "drawing.tools.marker": "Markeerstift", "drawing.tools.color_picker": "Kleur", "drawing.tools.radius_picker": "Straal", "drawing.tools.clear": "Leeg canvas", "setup.button.get_started": "Aan de slag", "setup.button.finish": "Voltooi", "setup.button.next": "Volgende", "setup.button.back": "Terug", "setup.welcome.catchphrase": "Je nieuwe favoriete app voor notities", "setup.basic_customization.title": "Basis personalisatie", "setup.restore_import.title": "Herstel en importeer", "setup.restore_import.desc": "Je kunt notities herstellen vanuit een andere versie van Leaflet of vanuit een oudere versie van PotatoNotes", "setup.restore_import.restore_btn": "Herstellen vanuit Leaflet", "setup.restore_import.import_btn": "Importeren uit PotatoNotes", "setup.finish.title": "Klaar!", "setup.finish.last_words": "Je hebt de installatie van Leaflet voltooid, nu moet de app klaar zijn voor eerste gebruik. Als je ooit iets wilt veranderen, ga dan naar de instellingen. Ik hoop dat je net zo veel van Leaflet zult genieten als ik!", "backup_restore.backup.title": "Back-up maken", "backup_restore.backup.password": "Wachtwoord", "backup_restore.backup.name": "Naam (optioneel)", "backup_restore.backup.num_of_notes": "Aantal notities in de back-up: {}", "backup_restore.backup.protected_notes_prompt": "Sommige notities zijn vergrendeld, wachtwoord is vereist om verder te gaan", "backup_restore.backup.creating": "Back-up maken", "backup_restore.backup.creating_progress": "Back-up maken van notitie {} van {}", "backup_restore.backup.complete.success": "Back-up succesvol voltooid!", "backup_restore.backup.complete.failure": "Back-up proces is onderbroken", "backup_restore.backup.complete_desc.success": "Het back-upproces was een succes! U kunt de back-up vinden op ", "backup_restore.backup.complete_desc.success.no_file": "Het back-up proces was een succes! U kunt dit dialoogvenster nu sluiten", "backup_restore.backup.complete_desc.failure": "Er ging iets mis of u heeft het opslagproces afgebroken. U kunt het back-upproces op elk gewenst moment opnieuw proberen", "backup_restore.restore.title": "Selecteer back-up om te herstellen", "backup_restore.restore.file_open": "Bestand openen", "backup_restore.restore.from_file": "{} (Van bestand)", "backup_restore.restore.info": "Aantal notities: {}, Tag aantal: {}\naangemaakt op {}", "backup_restore.restore.no_backups": "Er zijn geen back-ups beschikbaar. Probeer in plaats daarvan een bestand te openen", "backup_restore.restore.failure": "Kan back-up niet herstellen", "backup_restore.import.title": "Selecteer oorsprong import", "backup_restore.import.open_db": "Open PotatoNotes backup bestand", "backup_restore.import.open_previous": "Open vorige versie database", "backup_restore.import.open_previous.unsupported_platform": "Alleen Android ondersteunt het laden van vorige versies", "backup_restore.import.open_previous.no_file": "Er is geen database gevonden van de oude versie", "backup_restore.import.notes_loaded": "Notities met succes geladen", "backup_restore.select_notes": "Selecteer notities om te herstellen", "backup_restore.replace_existing": "Bestaande notities vervangen", "miscellaneous.updater.update_available": "Update beschikbaar!", "miscellaneous.updater.update_available_desc": "Er is een nieuwe update beschikbaar om te downloaden, klik op update om de update te downloaden", "miscellaneous.updater.already_on_latest": "Laatste versie", "miscellaneous.updater.already_on_latest_desc": "Je hebt al de laatste versie van de app", }; @override int get translatedStrings => 245; } class _$LocalePlPL extends _$LocaleBase { @override String get locale => "pl-PL"; @override Map<String, String> get data => { "common.cancel": "Anuluj", "common.reset": "Przywróć domyślne", "common.restore": "Przywróć", "common.confirm": "Potwierdź", "common.save": "Zapisz", "common.delete": "Usuń", "common.undo": "Cofnij", "common.redo": "Powtórz", "common.edit": "Edytuj", "common.go_on": "Kontynuuj", "common.exit": "Zakończ", "common.ok": "Ok", "common.share": "Udostępnij", "common.not_now": "Nie teraz", "common.update": "Aktualizuj", "common.expand": "Rozwiń", "common.collapse": "Zwiń", "common.create": "Utwórz", "common.close": "Zamknij", "common.x_of_y": "{} z {}", "common.quick_tip": "Szybka porada", "common.new_note": "Nowa notatka", "common.new_list": "Nowa lista", "common.new_image": "Nowy obraz", "common.new_drawing": "Nowy rysunek", "common.import_note": "Importuj notatkę", "common.biometrics_prompt": "Potwierdź dane biometryczne", "common.master_pass.modify": "Modyfikuj hasło główne", "common.master_pass.confirm": "Potwierdź hasło główne", "common.master_pass.incorrect": "Niepoprawne hasło główne", "common.backup_password.title": "Wprowadź hasło kopii zapasowej", "common.backup_password.use_master_pass": "Użyj głównego hasła jako hasła", "common.restore_dialog.title": "Potwierdź przywracanie notatki", "common.restore_dialog.backup_name": "Nazwa kopii zapasowej: {}", "common.restore_dialog.creation_date": "Data utworzenia: {}", "common.restore_dialog.app_version": "Wersja aplikacji: {}", "common.restore_dialog.note_count": "Liczba notatek: {}", "common.restore_dialog.tag_count": "Liczba etykiet: {}", "common.are_you_sure": "Na pewno?", "common.color.none": "Brak", "common.color.red": "Czerwony", "common.color.orange": "Pomarańczowy", "common.color.yellow": "Żółty", "common.color.green": "Zielony", "common.color.cyan": "Błękitny", "common.color.light_blue": "Jasnoniebieski", "common.color.blue": "Niebieski", "common.color.purple": "Fioletowy", "common.color.pink": "Różowy", "common.notification.default_title": "Przypięte powiadomienie", "common.notification.details_title": "Przypięte powiadomienia", "common.notification.details_desc": "Przypięte powiadomienia przez użytkownika", "common.tag.new": "Nowa etykieta", "common.tag.modify": "Modyfikuj etykietę", "common.tag.textbox_hint": "Nazwa", "main_page.write_note": "Napisz notatkę", "main_page.settings": "Ustawienia", "main_page.search": "Szukaj", "main_page.account": "Konto", "main_page.restore_prompt.archive": "Czy chcesz przywrócić każdą notatkę w archiwum?", "main_page.restore_prompt.trash": "Czy chcesz przywrócić każdą notatkę w koszu?", "main_page.tag_delete_prompt": "Ta etykieta zostanie utracona na zawsze po jej usunięciu", "main_page.deleted_empty_note": "Usunięto pustą notatkę", "main_page.empty_state.home": "Nie dodano jeszcze żadnych notatek", "main_page.empty_state.archive": "Archiwum jest puste", "main_page.empty_state.trash": "Kosz jest pusty", "main_page.empty_state.favourites": "Brak ulubionych na razie", "main_page.empty_state.tag": "Brak notatek z tą etykietą", "main_page.note_list_x_more_items.one": "{} więcej przedmiotów", "main_page.note_list_x_more_items.few": "{} więcej przedmiotów", "main_page.note_list_x_more_items.many": "{} więcej przedmiotów", "main_page.note_list_x_more_items.other": "{} więcej przedmiotów", "main_page.title.notes": "Notatki", "main_page.title.archive": "Archiwum", "main_page.title.trash": "Kosz", "main_page.title.favourites": "Ulubione", "main_page.title.tag": "Etykieta", "main_page.title.all": "Wszystko", "main_page.selection_bar.close": "Zamknij", "main_page.selection_bar.select": "Wybierz", "main_page.selection_bar.select_all": "Wybierz wszystko", "main_page.selection_bar.add_favourites": "Dodaj do ulubionych", "main_page.selection_bar.remove_favourites": "Usuń z ulubionych", "main_page.selection_bar.change_color": "Zmień kolor", "main_page.selection_bar.archive": "Archiwizuj", "main_page.selection_bar.delete": "Przenieś do kosza", "main_page.selection_bar.perma_delete": "Usuń", "main_page.selection_bar.pin": "Przypnij", "main_page.selection_bar.unpin": "Odepnij", "main_page.selection_bar.save": "Zapisz lokalnie", "main_page.selection_bar.save.note_locked": "Notatka jest zablokowana, wymagane jest hasło główne", "main_page.selection_bar.save.success": "Notatka pomyślnie wyeksportowana", "main_page.selection_bar.save.oopsie": "Coś poszło nie tak podczas eksportowania lub operacja została anulowana", "main_page.selection_bar.share": "Udostępnij", "main_page.notes_deleted.one": "{} notatka została przeniesiona do kosza", "main_page.notes_deleted.few": "{} notatek zostało przeniesionych do kosza", "main_page.notes_deleted.many": "{} notatek zostało przeniesionych do kosza", "main_page.notes_deleted.other": "{} notatek zostało przeniesionych do kosza", "main_page.notes_perma_deleted.one": "{} notatka usunięta", "main_page.notes_perma_deleted.few": "{} notatki usunięte", "main_page.notes_perma_deleted.many": "{} notatek usuniętych", "main_page.notes_perma_deleted.other": "{} notatek usuniętych", "main_page.notes_archived.one": "Zarchiwizowano {} notatkę", "main_page.notes_archived.few": "Zarchiwizowano {} notatek", "main_page.notes_archived.many": "Zarchiwizowano {} notatek", "main_page.notes_archived.other": "Zarchiwizowano {} notatek", "main_page.notes_restored.one": "Przywrócono {} notatkę", "main_page.notes_restored.few": "Przywrócono {} notatek", "main_page.notes_restored.many": "Przywrócono {} notatek", "main_page.notes_restored.other": "Przywrócono {} notatek", "main_page.export.success": "Notatka pomyślnie wyeksportowana", "main_page.export.failure": "Coś poszło nie tak podczas eksportu", "main_page.import_psa": "Jeśli nie możesz znaleźć swoich starszych notatek z PotatoNotes możesz je przywrócić, przechodząc do\n\n{}\n\n, a następnie wybierając \"{}\"", "note_page.title_hint": "Tytuł", "note_page.content_hint": "Zawartość", "note_page.list_item_hint": "Wprowadzanie", "note_page.add_entry_hint": "Dodaj wpis", "note_page.toolbar.tags": "Zarządzaj etykietami", "note_page.toolbar.color": "Zmień kolor", "note_page.toolbar.add_item": "Dodaj element", "note_page.privacy.title": "Ustawienia prywatności", "note_page.privacy.hide_content": "Ukryj zawartość na stronie głównej", "note_page.privacy.lock_note": "Zablokuj notatkę", "note_page.privacy.lock_note.missing_pass": "Musisz ustawić hasło główne w ustawieniach", "note_page.privacy.use_biometrics": "Użyj danych biometrycznych aby odblokować", "note_page.toggle_list": "Przełącz na listę", "note_page.image_gallery": "Obrazek z galerii", "note_page.image_camera": "Zrób zdjęcie", "note_page.drawing": "Dodaj rysunek", "note_page.added_favourites": "Dodano notatkę do ulubionych", "note_page.removed_favourites": "Usunięto notatkę do ulubionych", "settings.title": "Ustawienia", "settings.personalization.title": "Personalizacja", "settings.personalization.theme_mode": "Tryb motywu", "settings.personalization.theme_mode.system": "Systemowy", "settings.personalization.theme_mode.light": "Jasny", "settings.personalization.theme_mode.dark": "Ciemny", "settings.personalization.use_amoled": "Użyj czarnego motywu", "settings.personalization.use_custom_accent": "Użyj akcentu systemu", "settings.personalization.custom_accent": "Wybierz własny akcent", "settings.personalization.use_grid": "Widok siatki dla notatek", "settings.personalization.locale": "Język aplikacji", "settings.personalization.locale.device_default": "Domyślny urządzenia", "settings.personalization.locale.x_translated": "{}% przetłumaczone", "settings.privacy.title": "Prywatność", "settings.privacy.use_master_pass": "Użyj hasła głównego", "settings.privacy.use_master_pass.disclaimer": "Ostrzeżenie: jeśli kiedykolwiek zapomnisz hasła, nie będziesz mógł go zresetować - będziesz musiał odinstalować aplikację, usuwając w tym procesie wszystkie notatki, a następnie zainstalować ją ponownie. Zapisz je gdzieś", "settings.privacy.modify_master_pass": "Modyfikuj hasło główne", "settings.backup_restore.title": "Kopia zapasowa i przywracanie", "settings.backup_restore.backup": "Kopia zapasowa", "settings.backup_restore.backup_desc": "Utwórz lokalną kopię notatek", "settings.backup_restore.backup.nothing_to_restore.title": "Brak notatek do przywrócenia!", "settings.backup_restore.backup.nothing_to_restore.desc": "Brak zapisanych notatek, by zrobić kopię zapasową", "settings.backup_restore.restore": "Przywróć", "settings.backup_restore.restore_desc": "Przywróć kopię zapasową utworzoną z wersji Leaflet", "settings.backup_restore.restore.status.success": "Notatka została pomyślnie przywrócona", "settings.backup_restore.restore.status.wrong_format": "Podany plik nie jest poprawną kopią zapasową Leaflet", "settings.backup_restore.restore.status.wrong_password": "Wprowadzone hasło nie było w stanie odszyfrować kopii zapasowej", "settings.backup_restore.restore.status.already_exists": "Notatka wewnątrz kopii zapasowej jest już obecna w bazie danych", "settings.backup_restore.restore.status.unknown": "Wystąpił problem podczas importowania notatki", "settings.backup_restore.import": "Importuj", "settings.backup_restore.import_desc": "Importuj notatki z wersji PotatoNotes", "settings.info.title": "Informacje", "settings.info.about_app": "O PotatoNotes", "settings.info.update_check": "Sprawdź dostępność aktualizacji aplikacji", "settings.info.translate": "Przetłumacz aplikację", "settings.info.bug_report": "Zgłoś błąd", "settings.debug.title": "Debugowanie", "settings.debug.show_setup_screen": "Pokaż ekran wstępnej konfiguracji przy następnym uruchomieniu", "settings.debug.loading_overlay": "Test ładowania nakładki", "settings.debug.clear_database": "Wyczyść bazę danych", "settings.debug.migrate_database": "Przenieś bazę danych", "settings.debug.generate_trash": "Generuj kosz", "settings.debug.log_level": "Poziom logów", "about.title": "O aplikacji", "about.pwa_version": "Wersja PWA", "about.links": "Odnośniki", "about.contributors": "Współtwórcy", "about.contributors.hrx": "Główny programista i projekt aplikacji", "about.contributors.bas": "API synchronizacji i aplikacja", "about.contributors.nico": "API synchronizacji", "about.contributors.kat": "Stare API synchronizacji", "about.contributors.rohit": "Ilustracje i kolory notatek", "about.contributors.rshbfn": "Ikona aplikacji i główny akcent", "about.contributors.elias": "Nazwa marki Leaflet", "about.contributors.akshit": "Pomoc w zakresie bezpieczeństwa i zaplecza", "search.textbox_hint": "Szukaj", "search.tag_create_empty_hint": "Utwórz nową etykietę", "search.tag_create_hint": "Utwórz etykietę \"{}\"", "search.type_to_search": "Pisz, aby rozpocząć wyszukiwanie", "search.nothing_found": "Nic nie znaleziono...", "search.note.filters.case_sensitive": "Wielkość liter ma znaczenie", "search.note.filters.favourites": "Tylko ulubione", "search.note.filters.locations": "Lokalizacje notatki", "search.note.filters.locations.normal": "Normalny", "search.note.filters.locations.archive": "Archiwum", "search.note.filters.locations.trash": "Kosz", "search.note.filters.locations.normal_title": "Normalne notatki", "search.note.filters.locations.archive_title": "Zarchiwizowane notatki", "search.note.filters.locations.trash_title": "Usunięte notatki", "search.note.filters.color": "Filtr kolorów", "search.note.filters.date": "Filtr daty", "search.note.filters.date.mode_title": "Tryb filtrowania", "search.note.filters.date.mode_after": "Po dacie", "search.note.filters.date.mode_exact": "Dokładna data", "search.note.filters.date.mode_before": "Przed datą", "search.note.filters.tags": "Etykiety", "search.note.filters.tags.selected.one": "{} wybrana", "search.note.filters.tags.selected.few": "{} wybranych", "search.note.filters.tags.selected.many": "{} wybranych", "search.note.filters.tags.selected.other": "{} wybranych", "search.note.filters.clear": "Wyczyść filtry", "drawing.color_black": "Czarny", "drawing.exit_prompt": "Wszelkie niezapisane zmiany zostaną utracone, czy na pewno chcesz opuścić?", "drawing.clear_canvas_warning": "Tej operacji nie można cofnąć. Kontynuować?", "drawing.tools.brush": "Pędzel", "drawing.tools.eraser": "Gumka", "drawing.tools.marker": "Marker", "drawing.tools.color_picker": "Kolor", "drawing.tools.radius_picker": "Promień", "drawing.tools.clear": "Wyczyść płótno", "setup.button.get_started": "Zaczynajmy", "setup.button.finish": "Zakończ", "setup.button.next": "Dalej", "setup.button.back": "Wstecz", "setup.welcome.catchphrase": "Twoja nowa ulubiona aplikacja do notatek", "setup.basic_customization.title": "Podstawowe dostosowywanie", "setup.restore_import.title": "Przywróć i importuj", "setup.restore_import.desc": "Możesz przywrócić notatki z innej wersji Leaflet lub ze starszej wersji PotatoNotes", "setup.restore_import.restore_btn": "Przywróć kopię zapasową Leaflet", "setup.restore_import.import_btn": "Przywróć kopię zapasową PotatoNotes", "setup.finish.title": "Wszystko gotowe!", "setup.finish.last_words": "Ukończyłeś konfigurację Leaflet, teraz aplikacja powinna być gotowa do pierwszego użycia. Jeśli kiedykolwiek chcesz coś zmienić, przejdź do ustawień. Mam nadzieję, że będziesz zadowolony z Leaflet tak bardzo, jak ja!", "backup_restore.backup.title": "Utwórz kopię zapasową", "backup_restore.backup.password": "Hasło", "backup_restore.backup.name": "Nazwa (opcjonalnie)", "backup_restore.backup.num_of_notes": "Liczba notatek w kopii zapasowej: {}", "backup_restore.backup.protected_notes_prompt": "Niektóre notatki są zablokowane, aby kontynuować wymagają hasła", "backup_restore.backup.creating": "Tworzenie kopii zapasowej", "backup_restore.backup.creating_progress": "Tworzenie kopii zapasowej notatki {} z {}", "backup_restore.backup.complete.success": "Proces tworzenia kopii zapasowej został zakończony pomyślnie!", "backup_restore.backup.complete.failure": "Proces tworzenia kopii zapasowej został przerwany", "backup_restore.backup.complete_desc.success": "Proces tworzenia kopii zapasowej zakończył się sukcesem! Kopię zapasową można znaleźć w ", "backup_restore.backup.complete_desc.success.no_file": "Proces tworzenia kopii zapasowej zakończył się sukcesem! Teraz możesz zamknąć to okno", "backup_restore.backup.complete_desc.failure": "Coś poszło nie tak lub przerwałeś proces zapisu. Możesz spróbować ponownie w dowolnym momencie", "backup_restore.restore.title": "Wybierz kopię zapasową do przywrócenia", "backup_restore.restore.file_open": "Otwórz plik", "backup_restore.restore.from_file": "{} (Z pliku)", "backup_restore.restore.info": "Liczba notatek: {}, liczba etykiet: {}\nUtworzono {}", "backup_restore.restore.no_backups": "Brak dostępnych kopii zapasowych. Spróbuj otworzyć plik", "backup_restore.restore.failure": "Nie można przywrócić kopii zapasowej", "backup_restore.import.title": "Wybierz źródło importu", "backup_restore.import.open_db": "Otwórz plik kopii zapasowej PotatoNotes", "backup_restore.import.open_previous": "Otwórz bazę danych poprzedniej wersji", "backup_restore.import.open_previous.unsupported_platform": "Tylko Android obsługuje ładowanie z poprzedniej wersji", "backup_restore.import.open_previous.no_file": "Nie znaleziono żadnej bazy danych ze starej wersji", "backup_restore.import.notes_loaded": "Notatki pomyślnie załadowane", "backup_restore.select_notes": "Wybierz notatki do przywrócenia", "backup_restore.replace_existing": "Zastąp istniejące notatki", "miscellaneous.updater.update_available": "Aktualizacja jest dostępna!", "miscellaneous.updater.update_available_desc": "Nowa aktualizacja jest dostępna do pobrania, kliknij przycisk Aktualizuj, aby pobrać aktualizację", "miscellaneous.updater.already_on_latest": "Najnowsza wersja", "miscellaneous.updater.already_on_latest_desc": "Masz już najnowszą wersję aplikacji", }; @override int get translatedStrings => 245; } class _$LocalePtBR extends _$LocaleBase { @override String get locale => "pt-BR"; @override Map<String, String> get data => { "common.cancel": "Cancelar", "common.reset": "Redefinir", "common.restore": "Restaurar", "common.confirm": "Confirmar", "common.save": "Salvar", "common.delete": "Excluir", "common.undo": "Desfazer", "common.redo": "Refazer", "common.edit": "Editar", "common.go_on": "Continuar", "common.exit": "Sair", "common.share": "Compartilhar", "common.close": "Fechar", "common.x_of_y": "{} de {}", "common.new_note": "Nova anotação", "common.new_list": "Nova lista", "common.new_image": "Nova imagem", "common.new_drawing": "Novo desenho", "common.biometrics_prompt": "Confirmar com a digital", "common.master_pass.modify": "Modificar palavra passe", "common.master_pass.confirm": "Confirmar palavra passe", "common.are_you_sure": "Você tem certeza?", "common.color.none": "Nada", "common.color.red": "Vermelho", "common.color.orange": "Laranja", "common.color.yellow": "Amarelo", "common.color.green": "Verde", "common.color.cyan": "Ciano", "common.color.light_blue": "Azul claro", "common.color.blue": "Azul", "common.color.purple": "Roxo", "common.color.pink": "Rosa", "common.notification.default_title": "Fixar nas notificações", "common.notification.details_title": "Fixar nas notificações", "common.notification.details_desc": "Notificações fixadas pelo usuário", "common.tag.new": "Novo marcador", "common.tag.modify": "Modificar marcador", "common.tag.textbox_hint": "Nome", "main_page.settings": "Beállítások", "main_page.search": "Pesquisar", "main_page.account": "Conta", "main_page.restore_prompt.archive": "Você deseja restaurar todas as notas do arquivo?", "main_page.restore_prompt.trash": "Você quer restaurar todas as notas na lixeira?", "main_page.tag_delete_prompt": "Essa marcação será perdida para sempre se você excluí-la", "main_page.deleted_empty_note": "Nota vazia excluída", "main_page.empty_state.home": "Nenhuma nota foi adicionada ainda", "main_page.empty_state.archive": "O arquivo está vazio", "main_page.empty_state.trash": "Sua lixeira está vazia", "main_page.empty_state.favourites": "Nenhum favorito no momento", "main_page.empty_state.tag": "Sem notas com esta tag", "main_page.title.archive": "Arquivar", "main_page.title.trash": "Lixeira", "main_page.title.favourites": "Favoritos", "main_page.title.tag": "Marcação", "main_page.title.all": "Tudo", "main_page.selection_bar.close": "Fechar", "main_page.selection_bar.add_favourites": "Adicionar aos favoritos", "main_page.selection_bar.remove_favourites": "Remover dos favoritos", "main_page.selection_bar.change_color": "Szín változtatása", "main_page.selection_bar.archive": "Arquivar", "main_page.selection_bar.delete": "Mover para lixeira", "main_page.selection_bar.perma_delete": "Excluir", "main_page.selection_bar.pin": "Fixar", "main_page.selection_bar.share": "Compartilhar", "main_page.notes_deleted.one": "{} nota movida para a lixeira", "main_page.notes_deleted.other": "{} notas movidas para a lixeira", "main_page.notes_archived.one": "Arquivado {} notas", "main_page.notes_archived.other": "{} notas arquivadas", "main_page.notes_restored.one": "{} nota restaurada", "main_page.notes_restored.other": "{} notas restauradas", "note_page.title_hint": "Cím", "note_page.content_hint": "Tartalom", "note_page.list_item_hint": "Bemenet", "note_page.add_entry_hint": "Bejegyzés hozzáadása", "note_page.toolbar.tags": "Címkék kezelése", "note_page.toolbar.color": "Szín változtatása", "note_page.toolbar.add_item": "Elem hozzáadása", "note_page.privacy.title": "Adatvédelmi beállítások", "note_page.privacy.hide_content": "Tartalom elrejtése a kezdőlapon", "note_page.privacy.lock_note": "Jegyzet zárolása", "note_page.privacy.lock_note.missing_pass": "Elsőnek adj meg egy mesterjelszavat a beállításokban", "note_page.privacy.use_biometrics": "Biometrikus ellenőrzés használata", "note_page.toggle_list": "Lista kapcsolása", "note_page.image_gallery": "Kép a gallériából", "note_page.image_camera": "Fotó készítése", "note_page.drawing": "Rajz hozzáadása", "note_page.added_favourites": "Feljegyzés hozzáadva a kedvencekhez", "note_page.removed_favourites": "Feljegyzés eltávolítva a kedvencek közül", "settings.title": "Beállítások", "settings.personalization.title": "Testreszabás", "settings.personalization.theme_mode": "Téma mód", "settings.personalization.theme_mode.system": "Rendszer", "settings.personalization.theme_mode.light": "Világos", "settings.personalization.theme_mode.dark": "Sötét", "settings.personalization.use_amoled": "Sötét téma használata", "settings.personalization.use_custom_accent": "Rendszertéma alapján", "settings.personalization.custom_accent": "Egyéni szín választása", "settings.personalization.use_grid": "Rács megjelenítes a feljegyzésekhez", "settings.personalization.locale": "Helyszín", "settings.privacy.title": "Adatvédelem", "settings.privacy.use_master_pass": "Mesterjelszó használata", "settings.privacy.use_master_pass.disclaimer": "Figyelmeztetés : Ha a jövőben elfelejted a jelszavadat nem tudod visszaállítani , újra kell telepítened az alkalmazást , a biztonság kedvéért írja fel jelszavát valahova.", "settings.privacy.modify_master_pass": "Modificar palavra passe", "settings.backup_restore.restore": "Restaurar", "settings.info.title": "Tudnivaló", "settings.info.about_app": "A PotatoNotes - ről", "settings.debug.title": "Hibakeresés", "settings.debug.show_setup_screen": "A beállítás menü megjelenítése következő indításkor", "settings.debug.clear_database": "Databázis kitisztítása", "settings.debug.migrate_database": "Databázis költöztetése", "settings.debug.log_level": "Naplózási szint", "about.title": "Configurações", "about.pwa_version": "Versão do PWA", "about.links": "Links", "about.contributors": "Colaboradores", "about.contributors.hrx": "Desenvolvedor chefe e designer do aplicativo", "about.contributors.bas": "Sincronizar API e app", "about.contributors.nico": "Sincronizar API", "about.contributors.kat": "API de sincronização antiga", "about.contributors.rohit": "Ilustrações e cores de notas", "about.contributors.rshbfn": "Ícone do aplicativo e cor de destaque", "search.textbox_hint": "Pesquisar", "search.tag_create_hint": "Criar etiqueta \"{}\"", "search.type_to_search": "Digite para iniciar a pesquisa", "search.nothing_found": "Nada encontrado...", "search.note.filters.locations.archive": "Arquivar", "search.note.filters.locations.trash": "Lixeira", "drawing.color_black": "Preto", "drawing.exit_prompt": "Qualquer alteração não salva será perdida, tem certeza que quer sair?", "drawing.tools.brush": "Pincel", "drawing.tools.eraser": "Borracha", "drawing.tools.marker": "Marcador", "drawing.tools.color_picker": "Cor", "drawing.tools.radius_picker": "Raio", "setup.button.get_started": "Comece agora! :)", "setup.button.finish": "Finalizar", "setup.button.next": "Próxima", "setup.button.back": "Voltar", "setup.welcome.catchphrase": "O seu novo app de notas favorito", "setup.basic_customization.title": "Personalizações Básicas", "setup.finish.title": "Tudo pronto!", }; @override int get translatedStrings => 138; } class _$LocaleRoRO extends _$LocaleBase { @override String get locale => "ro-RO"; @override Map<String, String> get data => { "common.cancel": "Anulează", "common.reset": "Resetează", "common.restore": "Restaurează", "common.confirm": "Confirmă", "common.save": "Salvează", "common.delete": "Șterge", "common.undo": "Revenire", "common.redo": "Refacere", "common.edit": "Editare", "common.go_on": "Continuă", "common.exit": "Iesire", "common.ok": "Bine", "common.share": "Distribuie", "common.not_now": "Nu acum", "common.update": "Actualizare", "common.expand": "Extindeți", "common.collapse": "Restrângeți", "common.create": "Crează", "common.close": "Închide", "common.x_of_y": "{} din {}", "common.new_note": "Notă nouă", "common.new_list": "Listă nouă", "common.new_image": "Imagine Noua", "common.new_drawing": "Schiță nouă", "common.import_note": "Importare notă", "common.biometrics_prompt": "Confirmă datele biometrice", "common.master_pass.modify": "Modifică parola principală", "common.master_pass.confirm": "Confirmă parola principală", "common.master_pass.incorrect": "Trecere principală incorectă", "common.backup_password.title": "Introduceți parola backup-ului", "common.backup_password.use_master_pass": "Utilizați parola principală", "common.restore_dialog.title": "Confirmă restaurarea notelor", "common.restore_dialog.backup_name": "Nume copie: {}", "common.restore_dialog.creation_date": "Data creării: {}", "common.restore_dialog.app_version": "Versiunea aplicației: {}", "common.restore_dialog.note_count": "Numărul de notițe: {}", "common.restore_dialog.tag_count": "Numărul de notițe: {}", "common.are_you_sure": "Sunteți sigur?", "common.color.none": "Nimic", "common.color.red": "Roșu", "common.color.orange": "Portocaliu", "common.color.yellow": "Galben", "common.color.green": "Verde", "common.color.cyan": "Turcoaz", "common.color.light_blue": "Albastru deschis", "common.color.blue": "Albastru", "common.color.purple": "Mov", "common.color.pink": "Roz", "common.notification.default_title": "Notificare fixată", "common.notification.details_title": "Notificări fixate", "common.notification.details_desc": "Notificări fixate de utilizator", "common.tag.new": "Etichetă nouă", "common.tag.modify": "Modifică eticheta", "common.tag.textbox_hint": "Nume", "main_page.write_note": "Scrieți o notă", "main_page.settings": "Setări", "main_page.search": "Caută", "main_page.account": "Cont", "main_page.restore_prompt.archive": "Vrei să restaurezi fiecare notă din arhivă?", "main_page.restore_prompt.trash": "Vrei să restaurezi fiecare notă în coşul de gunoi?", "main_page.tag_delete_prompt": "Această etichetă va fi pierdută pentru totdeauna dacă o ștergeți", "main_page.deleted_empty_note": "Notă goală ştearsă", "main_page.empty_state.home": "Încă nu au fost adăugate note", "main_page.empty_state.archive": "Arhiva este goală", "main_page.empty_state.trash": "Gunoiul este gol", "main_page.empty_state.favourites": "Nu sunt favorite deocamdată", "main_page.empty_state.tag": "Nu există note cu această etichetă", "main_page.note_list_x_more_items.one": "{} mai multe articole", "main_page.note_list_x_more_items.few": "{} mai multe articole", "main_page.note_list_x_more_items.other": "{} alte elemente", "main_page.title.notes": "Notițe", "main_page.title.archive": "Arhivă", "main_page.title.trash": "Gunoi", "main_page.title.favourites": "Favorite", "main_page.title.tag": "Etichetă", "main_page.title.all": "Toate", "main_page.selection_bar.close": "Închide", "main_page.selection_bar.select": "Selectează", "main_page.selection_bar.select_all": "Selectează tot", "main_page.selection_bar.add_favourites": "Adaugă la favorite", "main_page.selection_bar.remove_favourites": "Elimină de la favorite", "main_page.selection_bar.change_color": "Schimbă culoarea", "main_page.selection_bar.archive": "Arhivă", "main_page.selection_bar.delete": "Mută la gunoi", "main_page.selection_bar.perma_delete": "Șterge", "main_page.selection_bar.pin": "Fixează", "main_page.selection_bar.save": "Salvați local", "main_page.selection_bar.save.success": "Notă exportată cu succes", "main_page.selection_bar.share": "Distribuie", "main_page.notes_deleted.one": "{} notă mutată la gunoi", "main_page.notes_deleted.few": "{} note mutate la gunoi", "main_page.notes_deleted.other": "{} note mutate la gunoi", "main_page.notes_perma_deleted.one": "{} notă ștearsă", "main_page.notes_perma_deleted.few": "{} note șterse", "main_page.notes_perma_deleted.other": "{} note șterse", "main_page.notes_archived.one": "Notă arhivată {}", "main_page.notes_archived.few": "Note arhivate {}", "main_page.notes_archived.other": "Note arhivate {}", "main_page.notes_restored.one": "Restaurat {} notă", "main_page.notes_restored.few": "Restaurat {} note", "main_page.notes_restored.other": "Restaurat {} note", "main_page.export.success": "Notă exportată cu succes", "main_page.export.failure": "Ceva nu a funcționat în timpul exportului", "note_page.title_hint": "Titlu", "note_page.content_hint": "Conținut", "note_page.list_item_hint": "Intrare", "note_page.add_entry_hint": "Adăugare intrare", "note_page.toolbar.tags": "Gestionare etichete", "note_page.toolbar.color": "Schimbă culoarea", "note_page.toolbar.add_item": "Adaugă element", "note_page.privacy.title": "Opțiuni de confidențialitate", "note_page.privacy.hide_content": "Ascundeți conținutul pe pagina principală", "note_page.privacy.lock_note": "Blocare notă", "note_page.privacy.lock_note.missing_pass": "Trebuie să setați o parolă principală din setări", "note_page.privacy.use_biometrics": "Utilizați datele biometrice pentru a debloca", "note_page.toggle_list": "Comutare listă", "note_page.image_gallery": "Imagine din galerie", "note_page.image_camera": "Faceți o fotografie", "note_page.drawing": "Adaugă un desen", "note_page.added_favourites": "Notă adăugată la favorite", "note_page.removed_favourites": "Notă eliminată de la favorite", "settings.title": "Setări", "settings.personalization.title": "Personalizare", "settings.personalization.theme_mode": "Mod temă", "settings.personalization.theme_mode.system": "Sistem", "settings.personalization.theme_mode.light": "Luminos", "settings.personalization.theme_mode.dark": "Întunecat", "settings.personalization.use_amoled": "Folosește tema neagră", "settings.personalization.use_custom_accent": "Urmăriți accentul sistemului", "settings.personalization.custom_accent": "Alege un accent personalizat", "settings.personalization.use_grid": "Vizualizare grilă pentru note", "settings.personalization.locale": "Localizare aplicație", "settings.personalization.locale.device_default": "Dispozitiv prestabilit", "settings.privacy.title": "Confidențialitate", "settings.privacy.use_master_pass": "Folosește parolă principală", "settings.privacy.use_master_pass.disclaimer": "Atenție: dacă uitați vreodată parola, nu o puteți reseta, va trebui să dezinstalezi aplicația, deci să ștergi toate notele și să le reinstalezi. Te rog să o notezi undeva.", "settings.privacy.modify_master_pass": "Modifică parola principală", "settings.backup_restore.title": "Backup și Restaurare", "settings.backup_restore.backup": "Backup", "settings.backup_restore.backup_desc": "Creează o copie locală a notelor tale", "settings.backup_restore.backup.nothing_to_restore.title": "Nici o notiță de restaurat!", "settings.backup_restore.backup.nothing_to_restore.desc": "Nu există note salvate pentru backup", "settings.backup_restore.restore": "Restaurează", "settings.info.title": "Informații", "settings.info.about_app": "Despre PotatoNotes", "settings.debug.title": "Depanare", "settings.debug.show_setup_screen": "Arată ecranul de configurare la următoarea pornire", "settings.debug.clear_database": "Șterge baza de date", "settings.debug.migrate_database": "Migrează baza de date", "settings.debug.log_level": "Nivel jurnal", "about.title": "Setări", "about.pwa_version": "Versiune PWA", "about.links": "Link-uri", "about.contributors": "Contribuitori", "about.contributors.hrx": "Dezvoltator principal și designer aplicație", "about.contributors.bas": "Sincronizare API și aplicație", "about.contributors.nico": "Sincronizare API", "about.contributors.kat": "Sincronizare veche API", "about.contributors.rohit": "Ilustraţii şi culori pentru note", "about.contributors.rshbfn": "Pictograma aplicației și accent principal", "search.textbox_hint": "Caută", "search.tag_create_hint": "Creează eticheta \"{}\"", "search.type_to_search": "Tastați pentru a începe căutarea", "search.nothing_found": "Nimic găsit...", "search.note.filters.locations.archive": "Arhivă", "search.note.filters.locations.trash": "Gunoi", "drawing.color_black": "Negru", "drawing.exit_prompt": "Orice modificare nesalvată va fi pierdută. Doriți să ieșiți?", "drawing.tools.brush": "Pensulă", "drawing.tools.eraser": "Radieră", "drawing.tools.marker": "Marker", "drawing.tools.color_picker": "Culoare", "drawing.tools.radius_picker": "Rază", "setup.button.get_started": "Să începem", "setup.button.finish": "Termină", "setup.button.next": "Următorul", "setup.button.back": "Înapoi", "setup.welcome.catchphrase": "Noua ta aplicație pentru notițele favorite", "setup.basic_customization.title": "Personalizare de bază", "setup.finish.title": "Totul este gata!", }; @override int get translatedStrings => 170; } class _$LocaleRuRU extends _$LocaleBase { @override String get locale => "ru-RU"; @override Map<String, String> get data => { "common.cancel": "Отмена", "common.reset": "Сбросить", "common.restore": "Восстановление", "common.confirm": "Подтвердить", "common.save": "Сохранить", "common.delete": "Удалить", "common.undo": "Отменить", "common.redo": "Вернуть", "common.edit": "Изменить", "common.go_on": "Продолжить", "common.exit": "Выйти", "common.ok": "Ок", "common.share": "Поделиться", "common.not_now": "Не сейчас", "common.update": "Обновить", "common.expand": "Развернуть", "common.collapse": "Свернуть", "common.create": "Создать", "common.close": "Закрыть", "common.x_of_y": "{} из {}", "common.quick_tip": "Подсказка", "common.new_note": "Новая заметка", "common.new_list": "Новый список", "common.new_image": "Новое изображение", "common.new_drawing": "Новый рисунок", "common.import_note": "Импортировать заметку", "common.biometrics_prompt": "Подтвердите биометрию", "common.master_pass.modify": "Изменить мастер-пароль", "common.master_pass.confirm": "Подтвердите мастер-пароль", "common.master_pass.incorrect": "Неправильный мастер-пароль", "common.backup_password.title": "Введите пароль резервной копии", "common.backup_password.use_master_pass": "Использовать мастер-пароль в качестве пароля", "common.restore_dialog.title": "Подтвердите восстановление заметок", "common.restore_dialog.backup_name": "Имя резервной копии: {}", "common.restore_dialog.creation_date": "Дата создания: {}", "common.restore_dialog.app_version": "Версия приложения: {}", "common.restore_dialog.note_count": "Количество заметок: {}", "common.restore_dialog.tag_count": "Количество тегов: {}", "common.are_you_sure": "Вы уверены?", "common.color.none": "Стандартный", "common.color.red": "Красный", "common.color.orange": "Оранжевый", "common.color.yellow": "Желтый", "common.color.green": "Зеленый", "common.color.cyan": "Бирюзовый", "common.color.light_blue": "Светло-синий", "common.color.blue": "Синий", "common.color.purple": "Фиолетовый", "common.color.pink": "Розовый", "common.notification.default_title": "Закрепленное уведомление", "common.notification.details_title": "Закрепленные уведомления", "common.notification.details_desc": "Уведомления прикрепленные пользователем", "common.tag.new": "Новый тег", "common.tag.modify": "Изменить тег", "common.tag.textbox_hint": "Название", "main_page.write_note": "Написать заметку", "main_page.settings": "Настройки", "main_page.search": "Поиск", "main_page.account": "Профиль", "main_page.restore_prompt.archive": "Вы хотите восстановить все заметки в архиве?", "main_page.restore_prompt.trash": "Вы хотите восстановить все записи в корзине?", "main_page.tag_delete_prompt": "Этот тег будет потерян навсегда при его удалении", "main_page.deleted_empty_note": "Пустая заметка удалена", "main_page.empty_state.home": "Пока нет заметок", "main_page.empty_state.archive": "Архив пуст", "main_page.empty_state.trash": "Корзина пуста", "main_page.empty_state.favourites": "Сейчас нет избранного", "main_page.empty_state.tag": "Нет заметок с этим тегом", "main_page.note_list_x_more_items.one": "Ещё {} элемент", "main_page.note_list_x_more_items.few": "Ещё {} элемента", "main_page.note_list_x_more_items.many": "Ещё {} элементов", "main_page.note_list_x_more_items.other": "Ещё {} элементов", "main_page.title.notes": "Заметки", "main_page.title.archive": "Архив", "main_page.title.trash": "Корзина", "main_page.title.favourites": "Избранное", "main_page.title.tag": "Тег", "main_page.title.all": "Все", "main_page.selection_bar.close": "Закрыть", "main_page.selection_bar.select": "Выбрать", "main_page.selection_bar.select_all": "Выбрать все", "main_page.selection_bar.add_favourites": "Добавить в избранное", "main_page.selection_bar.remove_favourites": "Удалить из избранного", "main_page.selection_bar.change_color": "Изменить цвет", "main_page.selection_bar.archive": "Архив", "main_page.selection_bar.delete": "Переместить в корзину", "main_page.selection_bar.perma_delete": "Удалить", "main_page.selection_bar.pin": "Закрепить", "main_page.selection_bar.unpin": "Открепить", "main_page.selection_bar.save": "Сохранить локально", "main_page.selection_bar.save.note_locked": "Заметка заблокирована, требуется мастер-пароль", "main_page.selection_bar.save.success": "Заметка успешно экспортирована", "main_page.selection_bar.save.oopsie": "Что-то пошло не так во время экспорта или операция была отменена", "main_page.selection_bar.share": "Поделиться", "main_page.notes_deleted.one": "{} заметка перемещена в корзину", "main_page.notes_deleted.few": "{} заметки перемещены в корзину", "main_page.notes_deleted.many": "{} заметок перемещено в корзину", "main_page.notes_deleted.other": "{} заметок перемещено в корзину", "main_page.notes_perma_deleted.one": "{} заметка удалена", "main_page.notes_perma_deleted.few": "{} заметки удалены", "main_page.notes_perma_deleted.many": "{} заметок удалено", "main_page.notes_perma_deleted.other": "{} заметок удалено", "main_page.notes_archived.one": "Архивирована {} заметка", "main_page.notes_archived.few": "Архивированы {} заметки", "main_page.notes_archived.many": "Архивированы {} заметок", "main_page.notes_archived.other": "Архивированы {} заметок", "main_page.notes_restored.one": "Восстановлена {} заметка", "main_page.notes_restored.few": "Восстановлены {} заметки", "main_page.notes_restored.many": "Восстановлено {} заметок", "main_page.notes_restored.other": "Восстановлено {} заметок", "main_page.export.success": "Заметка успешно экспортирована", "main_page.export.failure": "Что-то пошло не так при экспорте", "main_page.import_psa": "Если вы не можете найти ваши старые заметки из PotatoNotes вы можете восстановить их, зайдя в\n\n{}\n\nи выбрав там \"{}\"", "note_page.title_hint": "Заголовок", "note_page.content_hint": "Содержимое", "note_page.list_item_hint": "Ввод", "note_page.add_entry_hint": "Добавить запись", "note_page.toolbar.tags": "Управление тегами", "note_page.toolbar.color": "Изменить цвет", "note_page.toolbar.add_item": "Добавить элемент", "note_page.privacy.title": "Параметры конфиденциальности", "note_page.privacy.hide_content": "Скрыть содержимое на главной странице", "note_page.privacy.lock_note": "Зафиксировать заметку", "note_page.privacy.lock_note.missing_pass": "Вы должны установить мастер-пароль из настроек", "note_page.privacy.use_biometrics": "Использовать биометрию для разблокировки", "note_page.toggle_list": "Список переключателей", "note_page.image_gallery": "Изображение из галереи", "note_page.image_camera": "Сделать фото", "note_page.drawing": "Добавить рисунок", "note_page.added_favourites": "Заметка добавлена в избранное", "note_page.removed_favourites": "Заметка удалена из избранного", "settings.title": "Настройки", "settings.personalization.title": "Персонализация", "settings.personalization.theme_mode": "Тема", "settings.personalization.theme_mode.system": "Системная", "settings.personalization.theme_mode.light": "Светлая", "settings.personalization.theme_mode.dark": "Тёмная", "settings.personalization.use_amoled": "Использовать черную тему", "settings.personalization.use_custom_accent": "Использовать системный акцент", "settings.personalization.custom_accent": "Выбрать пользовательский акцент", "settings.personalization.use_grid": "Вид сетки для заметок", "settings.personalization.locale": "Язык", "settings.personalization.locale.device_default": "По умолчанию", "settings.personalization.locale.x_translated": "Переведено на {}%", "settings.privacy.title": "Конфиденциальность", "settings.privacy.use_master_pass": "Использовать мастер-пароль", "settings.privacy.use_master_pass.disclaimer": "Предупреждение: если вы когда-нибудь забудете мастер-пароль, вы не сможете сбросить его, вам будет нужно удалить приложение, следовательно, все заметки будут удалены и переустановить его. Пожалуйста, запишите его где-нибудь", "settings.privacy.modify_master_pass": "Изменить мастер-пароль", "settings.backup_restore.title": "Резервное копирование и восстановление", "settings.backup_restore.backup": "Резервная копия", "settings.backup_restore.backup_desc": "Создать локальную копию ваших заметок", "settings.backup_restore.backup.nothing_to_restore.title": "Нет заметок для восстановления!", "settings.backup_restore.backup.nothing_to_restore.desc": "Нет сохраненных заметок для резервного копирования", "settings.backup_restore.restore": "Восстановление", "settings.backup_restore.restore_desc": "Восстановите резервную копию, созданную из версии Leaflet", "settings.backup_restore.restore.status.success": "Заметка успешно восстановлена", "settings.backup_restore.restore.status.wrong_format": "Указанный файл не является резервной копией Leaflet", "settings.backup_restore.restore.status.wrong_password": "Не удалось расшифровать резервную копию введенным вами паролем", "settings.backup_restore.restore.status.already_exists": "Заметка внутри резервной копии уже есть в базе данных", "settings.backup_restore.restore.status.unknown": "Возникла проблема при импорте заметки", "settings.backup_restore.import": "Импорт", "settings.backup_restore.import_desc": "Импортировать заметки из версии PotatoNotes", "settings.info.title": "Информация", "settings.info.about_app": "О Leaflet", "settings.info.update_check": "Проверить наличие обновлений", "settings.info.translate": "Перевести приложение", "settings.info.bug_report": "Сообщить об ошибке", "settings.debug.title": "Отладка", "settings.debug.show_setup_screen": "Показать экран настройки при следующем запуске", "settings.debug.loading_overlay": "Тестирование оверлея загрузки", "settings.debug.clear_database": "Очистить базу данных", "settings.debug.migrate_database": "Миграция базы данных", "settings.debug.generate_trash": "Сгенерировать мусор", "settings.debug.log_level": "Уровень логирования", "about.title": "О программе", "about.pwa_version": "Версия PWA", "about.links": "Ссылки", "about.contributors": "Авторы", "about.contributors.hrx": "Ведущий разработчик и дизайн приложения", "about.contributors.bas": "API синхронизации и приложение", "about.contributors.nico": "API синхронизации", "about.contributors.kat": "Старое API синхронизации", "about.contributors.rohit": "Иллюстрации и цвета заметок", "about.contributors.rshbfn": "Иконка приложения и основной акцент", "about.contributors.elias": "Название бренда Leaflet", "about.contributors.akshit": "Помощь по безопасности и бэкенду", "search.textbox_hint": "Поиск", "search.tag_create_empty_hint": "Создать новый тег", "search.tag_create_hint": "Создать тег \"{}\"", "search.type_to_search": "Введите чтобы начать поиск", "search.nothing_found": "Ничего не найдено...", "search.note.filters.case_sensitive": "Учитывать регистр", "search.note.filters.favourites": "Только избранные", "search.note.filters.locations": "Расположение заметок", "search.note.filters.locations.normal": "Обычные", "search.note.filters.locations.archive": "Архив", "search.note.filters.locations.trash": "Корзина", "search.note.filters.locations.normal_title": "Обычные заметки", "search.note.filters.locations.archive_title": "Архивированные заметки", "search.note.filters.locations.trash_title": "Удалённые заметки", "search.note.filters.color": "Фильтр цветов", "search.note.filters.date": "Фильтр даты", "search.note.filters.date.mode_title": "Режим фильтра", "search.note.filters.date.mode_after": "После даты", "search.note.filters.date.mode_exact": "Точная дата", "search.note.filters.date.mode_before": "До даты", "search.note.filters.tags": "Теги", "search.note.filters.tags.selected.one": "{} выбран", "search.note.filters.tags.selected.few": "{} выбрано", "search.note.filters.tags.selected.many": "{} выбрано", "search.note.filters.tags.selected.other": "{} выбрано", "search.note.filters.clear": "Очистить фильтры", "drawing.color_black": "Чёрный", "drawing.exit_prompt": "Все несохраненные изменения будут потеряны. Вы хотите выйти?", "drawing.clear_canvas_warning": "Эта операция не может быть отменена. Продолжить?", "drawing.tools.brush": "Кисть", "drawing.tools.eraser": "Ластик", "drawing.tools.marker": "Маркер", "drawing.tools.color_picker": "Цвет", "drawing.tools.radius_picker": "Радиус", "drawing.tools.clear": "Очистить холст", "setup.button.get_started": "Начать", "setup.button.finish": "Готово", "setup.button.next": "Вперед", "setup.button.back": "Назад", "setup.welcome.catchphrase": "Ваше новое любимое приложение для заметок", "setup.basic_customization.title": "Основные настройки", "setup.restore_import.title": "Восстановление и импорт", "setup.restore_import.desc": "Вы можете выбрать восстановление заметок из другой версии Leaflet или импортировать заметки из более старой версии PotatoNotes", "setup.restore_import.restore_btn": "Восстановить из Leaflet", "setup.restore_import.import_btn": "Импортировать из PotatoNotes", "setup.finish.title": "Всё готово!", "setup.finish.last_words": "Вы завершили настройку Leaflet, теперь приложение должно быть готово для первого использования. Если вы захотите что-то изменить, переходите в настройки. Надеюсь Leaflet вам понравится так же как и мне!", "backup_restore.backup.title": "Создать резервную копию", "backup_restore.backup.password": "Пароль", "backup_restore.backup.name": "Имя (необязательно)", "backup_restore.backup.num_of_notes": "Количество заметок в резервной копии: {}", "backup_restore.backup.protected_notes_prompt": "Некоторые заметки заблокированы, для продолжения требуется пароль", "backup_restore.backup.creating": "Создание резервной копии", "backup_restore.backup.creating_progress": "Резервное копирование заметки {} из {}", "backup_restore.backup.complete.success": "Резервное копирование успешно завершено!", "backup_restore.backup.complete.failure": "Процесс резервного копирования был прерван", "backup_restore.backup.complete_desc.success": "Резервное копирование прошло успешно! Вы можете найти резервную копию в ", "backup_restore.backup.complete_desc.success.no_file": "Резервное копирование прошло успешно! Теперь вы можете закрыть это окно", "backup_restore.backup.complete_desc.failure": "Что-то пошло не так или вы прервали процесс сохранения. Вы можете повторить процесс резервного копирования в любое время", "backup_restore.restore.title": "Выберите резервную копию для восстановления", "backup_restore.restore.file_open": "Открыть файл", "backup_restore.restore.from_file": "{} (из файла)", "backup_restore.restore.info": "Количество заметок: {}, Количество тегов: {}\nСоздано {}", "backup_restore.restore.no_backups": "Нет доступных резервных копий. Попробуйте открыть файл", "backup_restore.restore.failure": "Не удалось восстановить резервную копию", "backup_restore.import.title": "Выберите источник импорта", "backup_restore.import.open_db": "Открыть файл резервной копии PotatoNotes", "backup_restore.import.open_previous": "Открыть базу данных предыдущей версии", "backup_restore.import.open_previous.unsupported_platform": "Только Android поддерживает загрузку из предыдущей версии", "backup_restore.import.open_previous.no_file": "Не найдено базы данных со старой версии", "backup_restore.import.notes_loaded": "Заметки успешно загружены", "backup_restore.select_notes": "Выберите заметки для восстановления", "backup_restore.replace_existing": "Заменить существующие заметки", "miscellaneous.updater.update_available": "Доступно обновление!", "miscellaneous.updater.update_available_desc": "Доступно новое обновление для загрузки, нажмите кнопку \"Обновить\" для загрузки обновления", "miscellaneous.updater.already_on_latest": "Последняя версия", "miscellaneous.updater.already_on_latest_desc": "Вы уже используете последнюю версию приложения", }; @override int get translatedStrings => 245; } class _$LocaleSrSR extends _$LocaleBase { @override String get locale => "sr-SR"; @override Map<String, String> get data => { "common.cancel": "Откажи", "common.reset": "Ресет", "common.restore": "Враћање", "common.confirm": "Потврдити", "common.save": "Сачувати", "common.delete": "Избришати", "common.undo": "Опозови", "common.redo": "Понови", "common.edit": "Измени", "common.go_on": "Настави даље", "common.exit": "Излаз", "common.ok": "Океј", "common.share": "Подели", "common.not_now": "Не сада", "common.update": "Аржурирање", "common.expand": "Проширити", "common.collapse": "Срушити", "common.create": "Креирати", "common.close": "Затвори", "common.x_of_y": "{} од {}", "common.new_note": "Нова белешка", "common.new_list": "Нова листа", "common.new_image": "Нова слика", "common.new_drawing": "Нови цртеж", "common.import_note": "Белешка о увозу", "common.biometrics_prompt": "Потврдити биометрију", "common.master_pass.modify": "Изменити матичну шифру", "common.master_pass.confirm": "Потврдити матичну шифру", "common.master_pass.incorrect": "Нетачна главна лозинка", "common.backup_password.title": "Унесите лозинку за резервну копију", "common.backup_password.use_master_pass": "Користити главна лозинку кaо лозинку", "common.restore_dialog.title": "Потврдити рестаурацију белешке", "common.restore_dialog.backup_name": "Резервно име: {}", "common.restore_dialog.creation_date": "Датум израде: {}", "common.restore_dialog.app_version": "Верзија апликацију: {}", "common.restore_dialog.note_count": "Број забелешке: {}", "common.restore_dialog.tag_count": "Број на белешке: {}", "common.are_you_sure": "Да ли сте сигурни?", "common.color.none": "Ниједна", "common.color.red": "Црвена", "common.color.orange": "Наранџаста", "common.color.yellow": "Жута", "common.color.green": "Зелена", "common.color.cyan": "Тиркизна", "common.color.light_blue": "Светло плава", "common.color.blue": "Плава", "common.color.purple": "Љубичаста", "common.color.pink": "Розева", "common.notification.default_title": "Закачено обавештење", "common.notification.details_title": "Закачена обавештења", "common.notification.details_desc": "Закачена обавештења од стране корисника", "common.tag.new": "Нова ознака", "common.tag.modify": "Измени ознаку", "common.tag.textbox_hint": "Назив", "main_page.write_note": "Напиши белешку", "main_page.settings": "Подешавања", "main_page.search": "Претрага", "main_page.account": "Налог", "main_page.restore_prompt.archive": "Да ли желите да повратите све белешке из архиве?", "main_page.restore_prompt.trash": "Да ли желите да повратите све белешке из отпада?", "main_page.tag_delete_prompt": "Ако обришете ову ознаку биће трајно изгубљена", "main_page.deleted_empty_note": "Празна белешка је обрисана", "main_page.empty_state.home": "Још нема белешки", "main_page.empty_state.archive": "Архива је празна", "main_page.empty_state.trash": "Отпад је празан", "main_page.empty_state.favourites": "Тренутно нема омиљених", "main_page.empty_state.tag": "Нема белешки са овом ознаком", "main_page.title.notes": "Белешке", "main_page.title.archive": "Архива", "main_page.title.trash": "Отпад", "main_page.title.favourites": "Омиљени", "main_page.title.tag": "Ознака", "main_page.title.all": "Све", "main_page.selection_bar.close": "Затвори", "main_page.selection_bar.select": "Изаберите", "main_page.selection_bar.select_all": "Изабери све", "main_page.selection_bar.add_favourites": "Додај у омиљене", "main_page.selection_bar.remove_favourites": "Избаци из омиљених", "main_page.selection_bar.change_color": "Промени боју", "main_page.selection_bar.archive": "Архива", "main_page.selection_bar.delete": "Премести у отпад", "main_page.selection_bar.perma_delete": "Избришати", "main_page.selection_bar.pin": "Закачи", "main_page.selection_bar.unpin": "Откачити", "main_page.selection_bar.save": "Сачувати локално", "main_page.selection_bar.save.success": "Белешка успешно извезена", "main_page.selection_bar.share": "Подели", "main_page.notes_deleted.one": "{} белешка је премештена у отпад", "main_page.notes_deleted.few": "{} белешке су премештене у отпад", "main_page.notes_deleted.other": "{} белешке су премештене у отпад", "main_page.notes_archived.one": "Архивирана {} белешка", "main_page.notes_archived.few": "Архивирано {} белешки", "main_page.notes_archived.other": "Архивиране {} белешке", "main_page.notes_restored.one": "Враћена {} белешка", "main_page.notes_restored.few": "Враћено {} белешки", "main_page.notes_restored.other": "Враћене {} белешке", "main_page.export.success": "Белешка успешно извезена", "main_page.export.failure": "Нешто није уреду са извоза", "note_page.title_hint": "Наслов", "note_page.content_hint": "Садржај", "note_page.list_item_hint": "Унос", "note_page.add_entry_hint": "Додај унос", "note_page.toolbar.tags": "Управљање ознакама", "note_page.toolbar.color": "Промени боју", "note_page.toolbar.add_item": "Додај ставку", "note_page.privacy.title": "Опције поверљивости", "note_page.privacy.hide_content": "Сакриј садржај на почетној страни", "note_page.privacy.lock_note": "Закључај белешку", "note_page.privacy.lock_note.missing_pass": "Потребно је поставити матичну шифру", "note_page.privacy.use_biometrics": "Користи биометријско откључавање", "note_page.toggle_list": "Прекидач листе", "note_page.image_gallery": "Слика из галерије", "note_page.image_camera": "Додај слику", "note_page.drawing": "Додај цртеж", "note_page.added_favourites": "Белешка додата у омиљене", "note_page.removed_favourites": "Белешка уклоњена из омиљених", "settings.title": "Подешавања", "settings.personalization.title": "Прилагођавање", "settings.personalization.theme_mode": "Мод теме", "settings.personalization.theme_mode.system": "Систем", "settings.personalization.theme_mode.light": "Светла", "settings.personalization.theme_mode.dark": "Тамна", "settings.personalization.use_amoled": "Користи црну тему", "settings.personalization.use_custom_accent": "Прати системску тему", "settings.personalization.custom_accent": "Одабери своју тему", "settings.personalization.use_grid": "Мрежна листа белешки", "settings.personalization.locale": "Локални језик апликације", "settings.personalization.locale.device_default": "Уређај подразумевано", "settings.privacy.title": "Приватност", "settings.privacy.use_master_pass": "Користи матичну шифру", "settings.privacy.use_master_pass.disclaimer": "Упозорење: Уколико заборавите шифру, није могуће ресетовати је. Мораћете да деинсталирате апликацију, што ће обрисати све ваше белешке. Молимо вас запишите шифру негде.", "settings.privacy.modify_master_pass": "Изменити матичну шифру", "settings.backup_restore.title": "Прављење резервних копија и враћање", "settings.backup_restore.backup": "Враќање", "settings.backup_restore.backup_desc": "Креирати локалну копију белешке", "settings.backup_restore.backup.nothing_to_restore.title": "Нема белешке за враќање!", "settings.backup_restore.backup.nothing_to_restore.desc": "Нема зачуваних белешке за резервну копију", "settings.backup_restore.restore": "Враћање", "settings.backup_restore.restore_desc": "Вратити резервну копију креирано од верзије Леафлета", "settings.backup_restore.restore.status.success": "Белешка је била успешно вратена", "settings.backup_restore.restore.status.wrong_format": "Наведена датотека није важећа резервна копија леафлета", "settings.backup_restore.restore.status.wrong_password": "Унесена лозинка је била неуспешна у декрипцију резервне копије", "settings.backup_restore.restore.status.already_exists": "Напомена унутар резервне копије већ је присутна у бази података", "settings.backup_restore.restore.status.unknown": "Био је проблем при унешавање белешке", "settings.backup_restore.import": "Унешавање", "settings.backup_restore.import_desc": "Унешавање белешке од верзије ПотејтоНоутс", "settings.info.title": "Инфо", "settings.info.about_app": "О апликацији PotatoNotes", "settings.info.update_check": "Проверити аржурирања апликације", "settings.info.bug_report": "Пријавити грешка у систему", "settings.debug.title": "Отклањање грешака", "settings.debug.show_setup_screen": "Прикажи екран за поставке при следећем укључивању", "settings.debug.loading_overlay": "Тестирати учитавања прекривача", "settings.debug.clear_database": "Очисти базу података", "settings.debug.migrate_database": "Миграција базе података", "settings.debug.generate_trash": "Генерисати ѓубре", "settings.debug.log_level": "Ниво бележења", "about.title": "Подешавања", "about.pwa_version": "Верзија PWA", "about.links": "Линкови", "about.contributors": "Допринели развоју", "about.contributors.hrx": "Главни програмер и дизајнер апликације", "about.contributors.bas": "API синхронизације и апликације", "about.contributors.nico": "API синхронизације", "about.contributors.kat": "Стари API синхронизације", "about.contributors.rohit": "Илустрације и боје нотеса", "about.contributors.rshbfn": "Икона апликације и главни акценат", "about.contributors.elias": "Лифлет име бренда", "about.contributors.akshit": "Помоћ за безбедност и позадину", "search.textbox_hint": "Претрага", "search.tag_create_empty_hint": "Креирати нову ознаку", "search.tag_create_hint": "Креирај ознаку \"{}\"", "search.type_to_search": "Откуцај за претрагу", "search.nothing_found": "Ништа није пронађено...", "search.note.filters.favourites": "Само омилени", "search.note.filters.locations": "Локације белешке", "search.note.filters.locations.normal": "Нормално", "search.note.filters.locations.archive": "Архива", "search.note.filters.locations.trash": "Отпад", "search.note.filters.locations.normal_title": "Нормалне белешке", "search.note.filters.locations.archive_title": "Прикачене белешке", "search.note.filters.locations.trash_title": "Обрисани белешке", "search.note.filters.color": "Филтер боје", "search.note.filters.date": "Филтер датума", "drawing.color_black": "Црна", "drawing.exit_prompt": "Несачуване промене ће бити изгубљене. Да ли желите да изађете?", "drawing.tools.brush": "Четкица", "drawing.tools.eraser": "Гумица", "drawing.tools.marker": "Маркер", "drawing.tools.color_picker": "Боја", "drawing.tools.radius_picker": "Полупречник", "setup.button.get_started": "Први кораци", "setup.button.finish": "Крај", "setup.button.next": "Даље", "setup.button.back": "Назад", "setup.welcome.catchphrase": "Ваша нова омиљена апликација за белешке", "setup.basic_customization.title": "Основно прилагођавање", "setup.finish.title": "Све је спремно!", }; @override int get translatedStrings => 192; } class _$LocaleTrTR extends _$LocaleBase { @override String get locale => "tr-TR"; @override Map<String, String> get data => { "common.cancel": "Vazgeç", "common.reset": "Sıfırla", "common.restore": "Geri yükle", "common.confirm": "Onayla", "common.save": "Kaydet", "common.delete": "Sil", "common.undo": "Geri al", "common.redo": "Yinele", "common.edit": "Düzenle", "common.go_on": "Devam et", "common.exit": "Çık", "common.ok": "Tamam", "common.share": "Paylaş", "common.not_now": "Şimdi değil", "common.update": "Güncelle", "common.expand": "Genişlet", "common.collapse": "Daralt", "common.create": "Oluştur", "common.close": "Kapat", "common.x_of_y": "{} / {}", "common.quick_tip": "Hızlı ipucu", "common.new_note": "Yeni not", "common.new_list": "Yeni liste", "common.new_image": "Yeni görüntü", "common.new_drawing": "Yeni çizim", "common.import_note": "Notu içeri aktar", "common.biometrics_prompt": "Biyometrik verileri doğrula", "common.master_pass.modify": "Ana parolayı düzenle", "common.master_pass.confirm": "Ana parolayı onayla", "common.master_pass.incorrect": "Yanlış ana parola", "common.backup_password.title": "Yedekleme parolasını girin", "common.backup_password.use_master_pass": "Ana şifreyi kullan", "common.restore_dialog.title": "Not geri yüklemesini onayla", "common.restore_dialog.backup_name": "Yedeğin adı: {}", "common.restore_dialog.creation_date": "Oluşturulma tarihi: {}", "common.restore_dialog.app_version": "Uygulama sürümü: {}", "common.restore_dialog.note_count": "Not sayısı: {}", "common.restore_dialog.tag_count": "Etiket sayısı: {}", "common.are_you_sure": "Emin misiniz?", "common.color.none": "Hiçbiri", "common.color.red": "Kırmızı", "common.color.orange": "Turuncu", "common.color.yellow": "Sarı", "common.color.green": "Yeşil", "common.color.cyan": "Turkuaz", "common.color.light_blue": "Açık mavi", "common.color.blue": "Mavi", "common.color.purple": "Mor", "common.color.pink": "Pembe", "common.notification.default_title": "Sabitlenmiş bildirim", "common.notification.details_title": "Sabitlenmiş bildirimler", "common.notification.details_desc": "Kullanıcının sabitlediği bildirimler", "common.tag.new": "Yeni etiket", "common.tag.modify": "Etiketi düzenle", "common.tag.textbox_hint": "İsim", "main_page.write_note": "Not yaz", "main_page.settings": "Ayarlar", "main_page.search": "Ara", "main_page.account": "Hesap", "main_page.restore_prompt.archive": "Arşivdeki bütün notları geri yüklemek istiyor musun?", "main_page.restore_prompt.trash": "Çöpteki bütün notları geri yüklemek istiyor musun?", "main_page.tag_delete_prompt": "Eğer bu etiketi silersen sonsuza dek kaybolacak", "main_page.deleted_empty_note": "Boş not silindi", "main_page.empty_state.home": "Henüz hiçbir not eklenmedi", "main_page.empty_state.archive": "Bu arşiv boş", "main_page.empty_state.trash": "Çöp kutusu boş", "main_page.empty_state.favourites": "Şimdilik sık kullanılan yok", "main_page.empty_state.tag": "Bu etiketle not yok", "main_page.note_list_x_more_items.one": "{} ek öğe", "main_page.note_list_x_more_items.other": "{} ek öğe", "main_page.title.notes": "Notlar", "main_page.title.archive": "Arşiv", "main_page.title.trash": "Çöp Kutusu", "main_page.title.favourites": "Sık Kulanılanlar", "main_page.title.tag": "Etiket", "main_page.title.all": "Tümü", "main_page.selection_bar.close": "Kapat", "main_page.selection_bar.select": "Seç", "main_page.selection_bar.select_all": "Hepsini seç", "main_page.selection_bar.add_favourites": "Sık kullanılanlara ekle", "main_page.selection_bar.remove_favourites": "Sık kullanılanlardan kaldır", "main_page.selection_bar.change_color": "Rengi değiştir", "main_page.selection_bar.archive": "Arşiv", "main_page.selection_bar.delete": "Çöp kutusuna taşı", "main_page.selection_bar.perma_delete": "Sil", "main_page.selection_bar.pin": "Sabitle", "main_page.selection_bar.unpin": "Sabitlemeyi kaldır", "main_page.selection_bar.save": "Yerele kaydet", "main_page.selection_bar.save.note_locked": "Bu not şifrelenmiş, ana parola gerekli", "main_page.selection_bar.save.success": "Not başarıyla dışa aktarıldı", "main_page.selection_bar.save.oopsie": "Dışarı aktarırken bir şeyler yanlış gitti ya da işlem iptal edildi", "main_page.selection_bar.share": "Paylaş", "main_page.notes_deleted.one": "{} not çöp kutusuna taşındı", "main_page.notes_deleted.other": "{} not çöp kutusuna taşındı", "main_page.notes_perma_deleted.one": "{} not silindi", "main_page.notes_perma_deleted.other": "{} not silindi", "main_page.notes_archived.one": "{} not arşivlendi", "main_page.notes_archived.other": "{} not arşivlendi", "main_page.notes_restored.one": "{} not geri yüklendi", "main_page.notes_restored.other": "{} not geri yüklendi", "main_page.export.success": "Not başarıyla dışa aktarıldı", "main_page.export.failure": "Dışa aktarırken bir şeyler yanlış gitti", "main_page.import_psa": "PotatoNotes'taki eski notlarınızı bulamıyorsanız, onları \n\n{}\n\n'a gidip \"{}\"ı seçerek geri yükleyebilirsiniz", "note_page.title_hint": "Başlık", "note_page.content_hint": "İçerik", "note_page.list_item_hint": "Girdi", "note_page.add_entry_hint": "Girdi ekle", "note_page.toolbar.tags": "Etiketleri yönet", "note_page.toolbar.color": "Rengi değiştir", "note_page.toolbar.add_item": "Öğe ekle", "note_page.privacy.title": "Gizlilik seçenekleri", "note_page.privacy.hide_content": "İçeriği ana sayfada gizle", "note_page.privacy.lock_note": "Notu kilitle", "note_page.privacy.lock_note.missing_pass": "Ayarlardan ana parola ayarlaman gerekiyor", "note_page.privacy.use_biometrics": "Kilidi açmak için biyometrik verileri kullan", "note_page.toggle_list": "Listeyi aç/kapat", "note_page.image_gallery": "Galeriden resim", "note_page.image_camera": "Fotoğraf çek", "note_page.drawing": "Çizim ekle", "note_page.added_favourites": "Not sık kullanılanlara eklendi", "note_page.removed_favourites": "Not sık kullanılanlardan kaldırıldı", "settings.title": "Ayarlar", "settings.personalization.title": "Kişiselleştirme", "settings.personalization.theme_mode": "Tema modu", "settings.personalization.theme_mode.system": "Sistem", "settings.personalization.theme_mode.light": "Açık", "settings.personalization.theme_mode.dark": "Koyu", "settings.personalization.use_amoled": "Siyah temayı kullan", "settings.personalization.use_custom_accent": "Sistem vurgu rengini kullan", "settings.personalization.custom_accent": "Özel vurgu rengi seç", "settings.personalization.use_grid": "Notlar için ızgara görünümü", "settings.personalization.locale": "Uygulama dili", "settings.personalization.locale.device_default": "Cihaz varsayılanı", "settings.personalization.locale.x_translated": "% {} çevrildi", "settings.privacy.title": "Gizlilik", "settings.privacy.use_master_pass": "Ana parolayı kullan", "settings.privacy.use_master_pass.disclaimer": "Uyarı: Eğer parolanı unutursan sıfırlayamazsın. Uygulamayı kaldırıp geri yüklemen, yani tüm notlarını silmen gerekecek. Lütfen bunu bir yerlere yaz", "settings.privacy.modify_master_pass": "Ana parolayı düzenle", "settings.backup_restore.title": "Yedekleme ve Geri Yükleme", "settings.backup_restore.backup": "Yedekle", "settings.backup_restore.backup_desc": "Notlarının yerel bir kopyasını oluştur", "settings.backup_restore.backup.nothing_to_restore.title": "Geri yüklenecek not yok!", "settings.backup_restore.backup.nothing_to_restore.desc": "Yedeklenecek kayıtlı not yok", "settings.backup_restore.restore": "Geri yükle", "settings.backup_restore.restore_desc": "Leaflet'in bir sürümünde oluşturulan bir yedeği geri yükleyin", "settings.backup_restore.restore.status.success": "Not başarıyla geri yüklendi", "settings.backup_restore.restore.status.wrong_format": "Belirtilen dosya geçerli bir Leaflet yedeği değil", "settings.backup_restore.restore.status.wrong_password": "Girdiğiniz şifre yedeğin şifresini çözemedi", "settings.backup_restore.restore.status.already_exists": "Yedeğin içindeki not veritabanında zaten mevcut", "settings.backup_restore.restore.status.unknown": "Notu içeri aktarırken bir sorun oluştu", "settings.backup_restore.import": "İçeri aktar", "settings.backup_restore.import_desc": "PotatoNotes'ın bir sürümünde oluşturulan bir yedeği geri yükleyin", "settings.info.title": "Bilgi", "settings.info.about_app": "Leaflet hakkında", "settings.info.update_check": "Uygulama güncellemelerini kontrol et", "settings.info.translate": "Uygulamayı Çevir", "settings.info.bug_report": "Hata bildir", "settings.debug.title": "Hata ayıklama", "settings.debug.show_setup_screen": "Bir sonraki açılışta kurulum ekranını göster", "settings.debug.loading_overlay": "Yükleme üst katmanını sına", "settings.debug.clear_database": "Veritabanını temizle", "settings.debug.migrate_database": "Veritabanını transfer et", "settings.debug.generate_trash": "Çöp oluştur", "settings.debug.log_level": "Günlük düzeyi", "about.title": "Hakkında", "about.pwa_version": "PWA sürümü", "about.links": "Bağlantılar", "about.contributors": "Katkıda Bulunanlar", "about.contributors.hrx": "Baş geliştirici ve uygulama tasarımı", "about.contributors.bas": "Senkronizasyon API'ı ve uygulama", "about.contributors.nico": "Senkronizasyon API'ı", "about.contributors.kat": "Eski senkronizasyon API'ı", "about.contributors.rohit": "Çizimler ve not renkleri", "about.contributors.rshbfn": "Uygulama simgesi ve ana vurgu", "about.contributors.elias": "Leaflet marka ismi", "about.contributors.akshit": "Güvenlik ve backend yardımı", "search.textbox_hint": "Ara", "search.tag_create_empty_hint": "Yeni etiket oluştur", "search.tag_create_hint": "\"{}\" isimli etiket oluşturuldu", "search.type_to_search": "Aramaya başlamak için yazın", "search.nothing_found": "Hiçbir şey bulunamadı...", "search.note.filters.case_sensitive": "Büyük/küçük harf duyarlı", "search.note.filters.favourites": "Sacede sık kullanılanlar", "search.note.filters.locations": "Not konumları", "search.note.filters.locations.normal": "Normal", "search.note.filters.locations.archive": "Arşiv", "search.note.filters.locations.trash": "Çöp Kutusu", "search.note.filters.locations.normal_title": "Normal notlar", "search.note.filters.locations.archive_title": "Arşivlenmiş notlar", "search.note.filters.locations.trash_title": "Silinmiş notlar", "search.note.filters.color": "Renk filtresi", "search.note.filters.date": "Tarih filtresi", "search.note.filters.date.mode_title": "Filtre modu", "search.note.filters.date.mode_after": "Tarihten sonra", "search.note.filters.date.mode_exact": "Tam tarih", "search.note.filters.date.mode_before": "Tarihinden önce", "search.note.filters.tags": "Etiketler", "search.note.filters.tags.selected.one": "{} seçildi", "search.note.filters.tags.selected.other": "{} seçildi", "search.note.filters.clear": "Filtreleri temizle", "drawing.color_black": "Siyah", "drawing.exit_prompt": "Kaydedilmeyen değişiklikler kaybolacak. Çıkmak istiyor musun?", "drawing.clear_canvas_warning": "Bu işlem geri alınamaz. Devam edilsin mi?", "drawing.tools.brush": "Fırça", "drawing.tools.eraser": "Silgi", "drawing.tools.marker": "Fosforlu kalem", "drawing.tools.color_picker": "Renk", "drawing.tools.radius_picker": "Çap", "drawing.tools.clear": "Tuvali temizle", "setup.button.get_started": "Başlarken", "setup.button.finish": "Bitir", "setup.button.next": "Sonraki", "setup.button.back": "Geri", "setup.welcome.catchphrase": "Yeni favori not uygulaman", "setup.basic_customization.title": "Temel kişiselleştirme", "setup.restore_import.title": "Geri yükle ve içeri aktar", "setup.restore_import.desc": "Leaflet'in herhangi bir sürümünden ya da PotatoNotes'ın eski bir sürümünden notlarını geri yüklemeyi seçebilirsin", "setup.restore_import.restore_btn": "Leaflet'ten geri yükle", "setup.restore_import.import_btn": "PotatoNotes'tan içeri aktar", "setup.finish.title": "Her şey hazır!", "setup.finish.last_words": "Leaflet kurulumunu tamamladın, uygulama ilk kullanım için hazır durumda olmalı. Eğer bir şeyi değiştirmek istersen, ayarlara git. Umarım siz de Leaflet'ten benim kadar keyif alırsınız!", "backup_restore.backup.title": "Yedek oluştur", "backup_restore.backup.password": "Şifre", "backup_restore.backup.name": "İsim (isteğe bağlı)", "backup_restore.backup.num_of_notes": "Yedekteki not sayısı: {}", "backup_restore.backup.protected_notes_prompt": "Bazı notlar kilitli, devam etmek için şifre gerekiyor", "backup_restore.backup.creating": "Yedek oluşturuluyor", "backup_restore.backup.creating_progress": "Not {} / {} yedekleniyor", "backup_restore.backup.complete.success": "Yedek başarıyla tamamlandı!", "backup_restore.backup.complete.failure": "Yedekleme işlemi yarıda kesildi", "backup_restore.backup.complete_desc.success": "Yedekleme işlemi başarılı oldu! Yedeği şurada bulabilirsiniz: ", "backup_restore.backup.complete_desc.success.no_file": "Yedekleme işlemi başarılı oldu! Bu pencereyi kapatabilirsiniz", "backup_restore.backup.complete_desc.failure": "Bir şeyler yanlış gitti ya da kayıt işlemi durduruldu. Yedekleme işlemini herhangi bir zaman tekrar deneyebillirsiniz", "backup_restore.restore.title": "Geri yüklenecek yedeği seçin", "backup_restore.restore.file_open": "Dosyayı aç", "backup_restore.restore.from_file": "{} (Dosyadan)", "backup_restore.restore.info": "Not sayısı: {}, Etiket Sayısı: {}\n{} tarihinde oluşturuldu", "backup_restore.restore.no_backups": "Kullanılabilir yedek yok. Bunun yerine bir dosya açmayı deneyin", "backup_restore.restore.failure": "Yedek geri yüklenemedi", "backup_restore.import.title": "İçe aktarma kaynağını seçin", "backup_restore.import.open_db": "PotatoNotes yedek dosyasını seçin", "backup_restore.import.open_previous": "Önceki sürüm veritabanını aç", "backup_restore.import.open_previous.unsupported_platform": "Sadece Android önceki sürümden yüklemeyi destekliyor", "backup_restore.import.open_previous.no_file": "Eski sürümde hiç veritabanı bulunamadı", "backup_restore.import.notes_loaded": "Notlar başarıyla yüklendi", "backup_restore.select_notes": "Geri yüklenecek notları seçin", "backup_restore.replace_existing": "Mevcut notları değiştir", "miscellaneous.updater.update_available": "Güncelleme mevcut!", "miscellaneous.updater.update_available_desc": "İndirilebilir yeni bir güncelleme var, güncellemeyi indirmek için tıklayın", "miscellaneous.updater.already_on_latest": "En son sürüm", "miscellaneous.updater.already_on_latest_desc": "Uygulamanız zaten güncel", }; @override int get translatedStrings => 245; } class _$LocaleUkUK extends _$LocaleBase { @override String get locale => "uk-UK"; @override Map<String, String> get data => { "common.cancel": "Скасувати", "common.reset": "Скинути", "common.restore": "Відновити", "common.confirm": "Підтвердити", "common.save": "Зберегти", "common.delete": "Видалити", "common.undo": "Відмінити", "common.redo": "Повторити", "common.edit": "Редагувати", "common.go_on": "Продовжити", "common.exit": "Вихід", "common.share": "Поділитись", "common.close": "Закрити", "common.x_of_y": "{} із {}", "common.new_note": "Нова нотатка", "common.new_list": "Новий список", "common.new_image": "Нове зображення", "common.new_drawing": "Новий малюнок", "common.biometrics_prompt": "Підтвердити біометрію", "common.master_pass.modify": "Змінити майстер-пароль", "common.master_pass.confirm": "Підтвердити майстер-пароль", "common.are_you_sure": "Ви впевнені?", "common.color.none": "Ніякий", "common.color.red": "Червоний", "common.color.orange": "Помаранчевий", "common.color.yellow": "Жовтий", "common.color.green": "Зелений", "common.color.cyan": "Блакитний", "common.color.light_blue": "Cвітло-блакитний", "common.color.blue": "Синій", "common.color.purple": "Фіолетовий", "common.color.pink": "Розовий", "common.notification.default_title": "Закріплене сповіщення", "common.notification.details_title": "Закріплені сповіщення", "common.notification.details_desc": "Сповіщення закріплені користувачем", "common.tag.new": "Новий тег", "common.tag.modify": "Змінити тег", "common.tag.textbox_hint": "Назва", "main_page.settings": "Налаштування", "main_page.search": "Пошук", "main_page.account": "Профіль", "main_page.restore_prompt.archive": "Бажаєте відновити всі нотатки в архіві?", "main_page.restore_prompt.trash": "Бажаєте відновити всі нотатки в кошику?", "main_page.tag_delete_prompt": "Цей тег буде втрачено назавжди при його видаленні", "main_page.deleted_empty_note": "Пуста нотатка видалена", "main_page.empty_state.home": "Поки що немає нотаток", "main_page.empty_state.archive": "Архів порожній", "main_page.empty_state.trash": "Кошик пустий", "main_page.empty_state.favourites": "Поки що немає обраних", "main_page.empty_state.tag": "Немає нотаток з цим тегом", "main_page.title.archive": "Архів", "main_page.title.trash": "Кошик", "main_page.title.favourites": "Обране", "main_page.title.tag": "Тег", "main_page.title.all": "Всі", "main_page.selection_bar.close": "Закрити", "main_page.selection_bar.add_favourites": "Додати до обраного", "main_page.selection_bar.remove_favourites": "Видалити з обраного", "main_page.selection_bar.change_color": "Змінити колір", "main_page.selection_bar.archive": "Архів", "main_page.selection_bar.delete": "Перемістити у кошик", "main_page.selection_bar.perma_delete": "Видалити", "main_page.selection_bar.pin": "Закріпити", "main_page.selection_bar.share": "Поділитись", "main_page.notes_deleted.one": "{} нотатка перенесена до кошику", "main_page.notes_deleted.few": "{} нотатки перенесено у кошик", "main_page.notes_deleted.many": "{} нотаток перенесено у кошик", "main_page.notes_deleted.other": "{} нотатки перенесено до кошику", "main_page.notes_archived.one": "Архівована {} нотатка", "main_page.notes_archived.few": "Архівовано {} нотатки", "main_page.notes_archived.many": "Архівовано {} нотаток", "main_page.notes_archived.other": "Архівовано {} нотатки", "main_page.notes_restored.one": "Відновлена {} нотатка", "main_page.notes_restored.few": "Відновлено {} нотатки", "main_page.notes_restored.many": "Відновлено {} нотаток", "main_page.notes_restored.other": "Відновлено {} нотатки", "note_page.title_hint": "Заголовок", "note_page.content_hint": "Вміст", "note_page.list_item_hint": "Ввід", "note_page.add_entry_hint": "Додати запис", "note_page.toolbar.tags": "Керування тегами", "note_page.toolbar.color": "Змінити колір", "note_page.toolbar.add_item": "Додати елемент", "note_page.privacy.title": "Налаштування приватності", "note_page.privacy.hide_content": "Приховати вміст на головній сторінці", "note_page.privacy.lock_note": "Заблокувати нотатку", "note_page.privacy.lock_note.missing_pass": "Ви повинні встановити головний пароль з налаштувань", "note_page.privacy.use_biometrics": "Використовувати біометрику для розблокування", "note_page.toggle_list": "Список", "note_page.image_gallery": "Зображення з галереї", "note_page.image_camera": "Зробити знімок", "note_page.drawing": "Додати малюнок", "note_page.added_favourites": "Нотатку додано до обраного", "note_page.removed_favourites": "Нотатку видалено з обраного", "settings.title": "Налаштування", "settings.personalization.title": "Персоналізація", "settings.personalization.theme_mode": "Тема", "settings.personalization.theme_mode.system": "Системна", "settings.personalization.theme_mode.light": "Світла", "settings.personalization.theme_mode.dark": "Темна", "settings.personalization.use_amoled": "Використовувати чорну тему", "settings.personalization.use_custom_accent": "Використовувати системний акцент", "settings.personalization.custom_accent": "Вибрати свій акцент", "settings.personalization.use_grid": "Сітка для нотаток", "settings.personalization.locale": "Мова додатку", "settings.privacy.title": "Приватність", "settings.privacy.use_master_pass": "Використовувати головний пароль", "settings.privacy.use_master_pass.disclaimer": "Увага: якщо ви забудете пароль, ви не зможете його скинути. Вам потрібно буде перевстановити додаток, що призведе до втрати даних. Будь ласка, запишіть його де-небудь.", "settings.privacy.modify_master_pass": "Змінити майстер-пароль", "settings.backup_restore.restore": "Відновити", "settings.info.title": "Інформація", "settings.info.about_app": "Про PotatoNotes", "settings.debug.title": "Відладка", "settings.debug.show_setup_screen": "Показати екран налаштувань при наступному запуску", "settings.debug.clear_database": "Очистити базу даних", "settings.debug.migrate_database": "Мігрувати базу даних", "settings.debug.log_level": "Рівень логування", "about.title": "Налаштування", "about.pwa_version": "Версія PWA", "about.links": "Посилання", "about.contributors": "Розробники", "about.contributors.hrx": "Головний розробник та дизайнер", "about.contributors.bas": "Синхронізація API з додатком", "about.contributors.nico": "Синхронізація з API", "about.contributors.kat": "Стара синхронізація з API", "about.contributors.rohit": "Колір ілюстрацій та заміток", "about.contributors.rshbfn": "Іконка додатка і головний акцент", "search.textbox_hint": "Пошук", "search.tag_create_hint": "Створити тег \"{}\"", "search.type_to_search": "Наберіть, щоб розпочати пошук", "search.nothing_found": "Нічого не знайдено...", "search.note.filters.locations.archive": "Архів", "search.note.filters.locations.trash": "Кошик", "drawing.color_black": "Чорний", "drawing.exit_prompt": "Всі незбережені зміни буде втрачено. Бажаєте вийти?", "drawing.tools.brush": "Кисть", "drawing.tools.eraser": "Гумка", "drawing.tools.marker": "Маркер", "drawing.tools.color_picker": "Колір", "drawing.tools.radius_picker": "Радіус", "setup.button.get_started": "Розпочати", "setup.button.finish": "Закінчити", "setup.button.next": "Далі", "setup.button.back": "Назад", "setup.welcome.catchphrase": "Ваша нова улюблена програма для нотаток", "setup.basic_customization.title": "Базове налаштування", "setup.finish.title": "Готово!", }; @override int get translatedStrings => 138; } class _$LocaleViVI extends _$LocaleBase { @override String get locale => "vi-VI"; @override Map<String, String> get data => { "common.cancel": "Hủy", "common.reset": "Thiết lập lại", "common.restore": "Khôi phục", "common.confirm": "Xác nhận", "common.save": "Lưu", "common.delete": "Xoá", "common.undo": "Hoàn tác", "common.redo": "Thực hiện lại", "common.edit": "Chỉnh sửa", "common.go_on": "Đi tiếp", "common.exit": "Thoát", "common.share": "Chia sẻ", "common.close": "Thoát", "common.x_of_y": "{} của {}", "common.new_note": "Ghi chú mới", "common.new_list": "Danh sách mới", "common.new_image": "Chèn hình ảnh", "common.new_drawing": "Hình vẽ mới", "common.biometrics_prompt": "Xác nhận sinh trắc học", "common.master_pass.modify": "Chỉnh sửa mật khẩu chính", "common.master_pass.confirm": "Xác nhận mật khẩu chính", "common.are_you_sure": "Bạn chắc chưa?", "common.color.none": "Không", "common.color.red": "Đỏ", "common.color.orange": "Cam", "common.color.yellow": "Vàng", "common.color.green": "Xanh lá cây", "common.color.cyan": "Xanh lá mạ", "common.color.light_blue": "Xanh nhạt", "common.color.blue": "Xanh dương", "common.color.purple": "Tím", "common.color.pink": "Hồng", "common.notification.default_title": "Thông báo được ghim", "common.notification.details_title": "Những thông báo được ghim", "common.notification.details_desc": "Những thông báo được ghim bởi người dùng", "common.tag.new": "Nhãn mới", "common.tag.modify": "Chỉnh sửa nhãn", "common.tag.textbox_hint": "Tên", "main_page.settings": "Cài đặt", "main_page.search": "Tìm kiếm", "main_page.account": "Tài khoản", "main_page.restore_prompt.archive": "Bạn có muốn khôi phục lại mọi ghi nhớ ở trong phần đã lưu?", "main_page.restore_prompt.trash": "Bạn có muốn khôi phục lại mọi ghi nhớ trong thùng rác?", "main_page.tag_delete_prompt": "Cái nhãn này sẽ biến mất mãi mãi nếu bạn xoá nó", "main_page.deleted_empty_note": "Ghi nhớ trống được xoá", "main_page.empty_state.home": "Chưa có ghi nhớ nào được thêm", "main_page.empty_state.archive": "Thư mục đã lưu còn trống", "main_page.empty_state.trash": "Thùng rác còn trống", "main_page.empty_state.favourites": "Chưa có yêu thích", "main_page.empty_state.tag": "Không có ghi nhớ nào với nhãn này", "main_page.title.archive": "Đã lưu", "main_page.title.trash": "Thùng rác", "main_page.title.favourites": "Yêu thích", "main_page.title.tag": "Nhãn", "main_page.title.all": "Tất cả", "main_page.selection_bar.close": "Thoát", "main_page.selection_bar.add_favourites": "Thêm vào yêu thích", "main_page.selection_bar.remove_favourites": "Xoá khỏi yêu thích", "main_page.selection_bar.change_color": "Thay đổi màu sắc", "main_page.selection_bar.archive": "Đã lưu", "main_page.selection_bar.delete": "Di chuyển đến thùng rác", "main_page.selection_bar.perma_delete": "Xoá", "main_page.selection_bar.pin": "Ghim", "main_page.selection_bar.share": "Chia sẻ", "main_page.notes_deleted.other": "{} ghi chú đã được di chuyển đến thùng rác", "main_page.notes_archived.other": "Đã lưu trữ {} ghi chú", "main_page.notes_restored.other": "Đã khôi phục {} ghi nhớ", "note_page.title_hint": "Tiêu đề", "note_page.content_hint": "Nội dung", "note_page.list_item_hint": "Nhập vào", "note_page.add_entry_hint": "Thêm mục nhập", "note_page.toolbar.tags": "Quản lí nhãn", "note_page.toolbar.color": "Thay đổi màu sắc", "note_page.toolbar.add_item": "Thêm mục", "note_page.privacy.title": "Cài đặt riêng tư", "note_page.privacy.hide_content": "Ẩn nội dung ở trang chính", "note_page.privacy.lock_note": "Khoá ghi chú", "note_page.privacy.lock_note.missing_pass": "Bạn phải đặt một mật khẩu chính trong Cài đặt", "note_page.privacy.use_biometrics": "Sử dụng sinh trắc học để mở khoá", "note_page.toggle_list": "Danh sách công tắc", "note_page.image_gallery": "Ảnh từ thư viện", "note_page.image_camera": "Chụp ảnh", "note_page.drawing": "Thêm một bức vẽ", "note_page.added_favourites": "Ghi chú đã được thêm vào yêu thích", "note_page.removed_favourites": "Ghi chú đã được loại bỏ khỏi yêu thích", "settings.title": "Cài đặt", "settings.personalization.title": "Cá nhân hoá", "settings.personalization.theme_mode": "Chế độ cá nhân hoá", "settings.personalization.theme_mode.system": "Hệ thống", "settings.personalization.theme_mode.light": "Sáng", "settings.personalization.theme_mode.dark": "Tối", "settings.personalization.use_amoled": "Sử dụng chủ đề tối", "settings.personalization.use_custom_accent": "Theo màu chính của hệ thống", "settings.personalization.custom_accent": "Chọn màu chính cụ thể", "settings.personalization.use_grid": "Chế độ hiển thị theo ô cho ghi nhớ", "settings.personalization.locale": "Ngôn ngữ úng dụng", "settings.privacy.title": "Riêng tư", "settings.privacy.use_master_pass": "Sử dụng mật khẩu chính", "settings.privacy.use_master_pass.disclaimer": "Cảnh cáo: nếu bạn có bao giờ quên mật khẩu, bạn sẽ không thể đặt lại nó, bắt buộc phải cài lại ứng dụng và dẫn đến việc tất cả các ghi chú bị xoá. Làm ơn hãy viết mật khẩu ra đâu đó.", "settings.privacy.modify_master_pass": "Chỉnh sửa mật khẩu chính", "settings.backup_restore.restore": "Khôi phục", "settings.info.title": "Thông tin", "settings.info.about_app": "Thông tin về PotatoNotes", "settings.debug.title": "Gỡ lỗi", "settings.debug.show_setup_screen": "Hiển thị màn hình thiết lập vào lần khởi động ứng dụng tiếp theo", "settings.debug.clear_database": "Xoá cơ sở dữ liệu", "settings.debug.migrate_database": "Di chuyển dữ liệu", "settings.debug.log_level": "Cấp độ văn bản gỗ lỗi", "about.title": "Cài đặt", "about.pwa_version": "Phiên bản PWA", "about.links": "Những liên kết", "about.contributors": "Những người đóng góp", "about.contributors.hrx": "Nhà phát triển và thiết kế ứng dụng", "about.contributors.bas": "Đồng bộ API và ứng dụng", "about.contributors.nico": "Đồng bộ API", "about.contributors.kat": "API Đồng bộ Cũ", "about.contributors.rohit": "Những nét kẻ và màu ghi nhớ", "about.contributors.rshbfn": "Biểu tượng ứng dụng và màu chính", "search.textbox_hint": "Tìm kiếm", "search.tag_create_hint": "Tạo nhãn “{}”", "search.type_to_search": "Gõ để bắt đầu tìm kiếm", "search.nothing_found": "Không tìm thấy kết quả phù hợp...", "search.note.filters.locations.archive": "Đã lưu", "search.note.filters.locations.trash": "Thùng rác", "drawing.color_black": "Đen", "drawing.exit_prompt": "Mọi chi tiết chưa được lưu sẽ mất. Bạn có chắc là muốn thoát?", "drawing.tools.brush": "Cọ", "drawing.tools.eraser": "Tẩy", "drawing.tools.marker": "Đánh dấu", "drawing.tools.color_picker": "Màu", "drawing.tools.radius_picker": "Bán kính", "setup.button.get_started": "Bắt đầu", "setup.button.finish": "Hoàn tất", "setup.button.next": "Tiếp tục", "setup.button.back": "Quay lại", "setup.welcome.catchphrase": "Ứng dụng ghi nhớ yêu thích mới của bạn", "setup.basic_customization.title": "Cá nhân hoá đơn giản", "setup.finish.title": "Tất cả đã hoàn thành!", }; @override int get translatedStrings => 138; } class _$LocaleZhCN extends _$LocaleBase { @override String get locale => "zh-CN"; @override Map<String, String> get data => { "common.cancel": "取消", "common.reset": "重置", "common.restore": "还原", "common.confirm": "确认", "common.save": "保存", "common.delete": "删除", "common.undo": "撤销", "common.redo": "恢复", "common.edit": "编辑", "common.go_on": "继续", "common.exit": "退出", "common.share": "分享", "common.close": "关闭", "common.x_of_y": "{} 共 {}", "common.new_note": "新建笔记", "common.new_list": "新建列表", "common.new_image": "新建图像", "common.new_drawing": "新建绘画", "common.biometrics_prompt": "确定生物识别", "common.master_pass.modify": "输入密码", "common.master_pass.confirm": "确认密码", "common.are_you_sure": "您确定吗?", "common.color.none": "透明", "common.color.red": "红色", "common.color.orange": "橙色", "common.color.yellow": "黄色", "common.color.green": "绿色", "common.color.cyan": "青色", "common.color.light_blue": "浅蓝色", "common.color.blue": "蓝色", "common.color.purple": "紫色", "common.color.pink": "粉色", "common.notification.default_title": "将笔记固定到通知栏", "common.notification.details_title": "将笔记固定到通知栏", "common.notification.details_desc": "用户置頂了通知", "common.tag.new": "新建标签", "common.tag.modify": "修改标签", "common.tag.textbox_hint": "名称", "main_page.settings": "设置", "main_page.search": "搜索", "main_page.account": "账户", "main_page.restore_prompt.archive": "你想要还原归档中的全部笔记吗?", "main_page.restore_prompt.trash": "你想要还原回收站里的全部笔记嘛?", "main_page.tag_delete_prompt": "如果您删除此标签,此标签将永远丢失", "main_page.deleted_empty_note": "删除空笔记", "main_page.empty_state.home": "未添加任何笔记", "main_page.empty_state.archive": "文件为空", "main_page.empty_state.trash": "回收站为空", "main_page.empty_state.favourites": "现在没有收藏夹呢", "main_page.empty_state.tag": "没有带这个标签的注释", "main_page.title.archive": "存档", "main_page.title.trash": "回收站", "main_page.title.favourites": "收藏夹", "main_page.title.tag": "标签", "main_page.title.all": "全部", "main_page.selection_bar.close": "关闭", "main_page.selection_bar.add_favourites": "添加到收藏夹", "main_page.selection_bar.remove_favourites": "从收藏夹中删除", "main_page.selection_bar.change_color": "更改颜色", "main_page.selection_bar.archive": "存档", "main_page.selection_bar.delete": "移动到回收站", "main_page.selection_bar.perma_delete": "删除", "main_page.selection_bar.pin": "置顶", "main_page.selection_bar.share": "分享", "main_page.notes_deleted.other": "已将 {} 个项目移至回收站。", "main_page.notes_archived.other": "已归档 {} 笔记", "main_page.notes_restored.other": "已恢复 {} 笔记", "note_page.title_hint": "标题", "note_page.content_hint": "内容", "note_page.list_item_hint": "输入", "note_page.add_entry_hint": "添加", "note_page.toolbar.tags": "管理标签", "note_page.toolbar.color": "更改颜色", "note_page.toolbar.add_item": "新增项目", "note_page.privacy.title": "隐私选项", "note_page.privacy.hide_content": "在主页面隐藏便签内容", "note_page.privacy.lock_note": "锁定便签", "note_page.privacy.lock_note.missing_pass": "您必须设置一个主密码", "note_page.privacy.use_biometrics": "使用生物识别解锁", "note_page.toggle_list": "切换列表", "note_page.image_gallery": "图库中的图像", "note_page.image_camera": "拍照", "note_page.drawing": "添加一张图片", "note_page.added_favourites": "笔记已添加到收藏夹", "note_page.removed_favourites": "便签已从存档中删除", "settings.title": "设置", "settings.personalization.title": "个性化", "settings.personalization.theme_mode": "主题模式", "settings.personalization.theme_mode.system": "系统", "settings.personalization.theme_mode.light": "浅色", "settings.personalization.theme_mode.dark": "深色", "settings.personalization.use_amoled": "使用暗色主题", "settings.personalization.use_custom_accent": "跟随系统选择", "settings.personalization.custom_accent": "选择一个自定义爱好", "settings.personalization.use_grid": "便签的网格视图", "settings.personalization.locale": "应用区域设置", "settings.privacy.title": "隐私", "settings.privacy.use_master_pass": "使用主密码", "settings.privacy.use_master_pass.disclaimer": "警告:如果你忘记了密码,你将不能重置密码,你必须重置这个软件,这将会丢失所有的笔记。请务必记牢密码!", "settings.privacy.modify_master_pass": "输入密码", "settings.backup_restore.restore": "还原", "settings.info.title": "信息", "settings.info.about_app": "关于PotatoNotes", "settings.debug.title": "调试", "settings.debug.show_setup_screen": "下次启动时显示设置", "settings.debug.clear_database": "清空数据库", "settings.debug.migrate_database": "迁移数据库", "settings.debug.log_level": "日志等级", "about.title": "设置", "about.pwa_version": "PWA版本", "about.links": "网址", "about.contributors": "贡献者", "about.contributors.hrx": "主要开发者和应用设计者", "about.contributors.bas": "同步 API 和应用", "about.contributors.nico": "同步API", "about.contributors.kat": "旧的同步 API", "about.contributors.rohit": "说明和笔记颜色", "about.contributors.rshbfn": "应用图标和主音效", "search.textbox_hint": "搜索", "search.tag_create_hint": "创建标签“{}”", "search.type_to_search": "输入以开始搜索", "search.nothing_found": "什么都没找到", "search.note.filters.locations.archive": "存档", "search.note.filters.locations.trash": "回收站", "drawing.color_black": "黑色", "drawing.exit_prompt": "未保存的更改将会丢失,你确定要继续嘛?", "drawing.tools.brush": "画笔", "drawing.tools.eraser": "橡皮擦", "drawing.tools.marker": "记号笔", "drawing.tools.color_picker": "颜色", "drawing.tools.radius_picker": "半径", "setup.button.get_started": "开始", "setup.button.finish": "完成", "setup.button.next": "下一个", "setup.button.back": "返回", "setup.welcome.catchphrase": "您最新喜爱的便签应用", "setup.basic_customization.title": "基本自定义", "setup.finish.title": "一切就绪!", }; @override int get translatedStrings => 138; } class _$LocaleZhTW extends _$LocaleBase { @override String get locale => "zh-TW"; @override Map<String, String> get data => { "common.cancel": "取消", "common.reset": "重設", "common.restore": "還原", "common.confirm": "確定", "common.save": "儲存", "common.delete": "刪除", "common.undo": "復原", "common.redo": "取消復原", "common.edit": "編輯", "common.go_on": "繼續", "common.exit": "退出", "common.ok": "確定", "common.share": "分享", "common.not_now": "稍後", "common.update": "更新", "common.expand": "展開", "common.collapse": "收合", "common.create": "建立", "common.close": "關閉", "common.x_of_y": "第 {} / {} 頁", "common.quick_tip": "提醒", "common.new_note": "新增筆記", "common.new_list": "新增清單", "common.new_image": "新增圖片", "common.new_drawing": "新增繪圖", "common.import_note": "匯入筆記", "common.biometrics_prompt": "生物辨識", "common.master_pass.modify": "更改主密碼", "common.master_pass.confirm": "確認主密碼", "common.master_pass.incorrect": "錯誤主密碼", "common.backup_password.title": "輸入救援密碼", "common.backup_password.use_master_pass": "使用主密碼為密碼", "common.restore_dialog.title": "確認筆記還原", "common.restore_dialog.backup_name": "備份名稱: {}", "common.restore_dialog.creation_date": "建立日期: {}", "common.restore_dialog.app_version": "應用程式版本: {}", "common.restore_dialog.note_count": "筆記數量: {}", "common.restore_dialog.tag_count": "標籤數量: {}", "common.are_you_sure": "是否確定?", "common.color.none": "無", "common.color.red": "紅色", "common.color.orange": "橘色", "common.color.yellow": "黃色", "common.color.green": "綠色", "common.color.cyan": "青色", "common.color.light_blue": "淺藍色", "common.color.blue": "藍色", "common.color.purple": "紫色", "common.color.pink": "粉紅色", "common.notification.default_title": "釘選筆記通知", "common.notification.details_title": "釘選筆記通知", "common.notification.details_desc": "使用者釘選筆記通知", "common.tag.new": "新增標籤", "common.tag.modify": "修改標籤", "common.tag.textbox_hint": "名稱", "main_page.write_note": "撰寫筆記", "main_page.settings": "設定", "main_page.search": "搜尋", "main_page.account": "帳號", "main_page.restore_prompt.archive": "確定還原所有已封存的筆記?", "main_page.restore_prompt.trash": "確定還原所有已刪除的筆記?", "main_page.tag_delete_prompt": "此標籤將永久刪除", "main_page.deleted_empty_note": "刪除空白的筆記", "main_page.empty_state.home": "尚未新增筆記", "main_page.empty_state.archive": "尚無封存的筆記", "main_page.empty_state.trash": "尚無刪除的筆記", "main_page.empty_state.favourites": "尚無最愛的筆記", "main_page.empty_state.tag": "尚無使用此標籤的筆記", "main_page.note_list_x_more_items.other": "還有 {} 則筆記", "main_page.title.notes": "筆記", "main_page.title.archive": "封存", "main_page.title.trash": "回收桶", "main_page.title.favourites": "最愛", "main_page.title.tag": "標籤", "main_page.title.all": "全部", "main_page.selection_bar.close": "關閉", "main_page.selection_bar.select": "選取", "main_page.selection_bar.select_all": "選取全部", "main_page.selection_bar.add_favourites": "新增至最愛", "main_page.selection_bar.remove_favourites": "從最愛移除", "main_page.selection_bar.change_color": "更改色彩", "main_page.selection_bar.archive": "封存", "main_page.selection_bar.delete": "移動至回收桶", "main_page.selection_bar.perma_delete": "刪除", "main_page.selection_bar.pin": "釘選", "main_page.selection_bar.unpin": "取消釘選", "main_page.selection_bar.save": "儲存至畚箕", "main_page.selection_bar.save.note_locked": "此筆記已鎖定,請輸入主密碼", "main_page.selection_bar.save.success": "匯出筆記成功", "main_page.selection_bar.save.oopsie": "匯出時發生錯誤或作業已取消", "main_page.selection_bar.share": "分享", "main_page.notes_deleted.other": "已移動 {} 則筆記至回收桶", "main_page.notes_perma_deleted.other": "已刪除 {} 則筆記", "main_page.notes_archived.other": "已封存 {} 則筆記", "main_page.notes_restored.other": "已還原 {} 則筆記", "main_page.export.success": "匯出筆記成功", "main_page.export.failure": "匯出時發生錯誤", "main_page.import_psa": "若無法存取來自 PotatoNotes 的舊筆記,可至 \n\n{}\n\n 並選取「{}」以還原您的筆記。", "note_page.title_hint": "標題", "note_page.content_hint": "內容", "note_page.list_item_hint": "輸入", "note_page.add_entry_hint": "新增條目", "note_page.toolbar.tags": "管理標籤", "note_page.toolbar.color": "更改色彩", "note_page.toolbar.add_item": "新增項目", "note_page.privacy.title": "隱私權設定", "note_page.privacy.hide_content": "在主頁面隱藏內容", "note_page.privacy.lock_note": "鎖定筆記", "note_page.privacy.lock_note.missing_pass": "需先設定主密碼", "note_page.privacy.use_biometrics": "使用生物辨識解鎖", "note_page.toggle_list": "切換清單", "note_page.image_gallery": "從圖片庫選擇圖片", "note_page.image_camera": "拍照", "note_page.drawing": "繪圖", "note_page.added_favourites": "筆記已新增至最愛", "note_page.removed_favourites": "筆記已從最愛移除", "settings.title": "設定", "settings.personalization.title": "個人化", "settings.personalization.theme_mode": "主題模式", "settings.personalization.theme_mode.system": "系統", "settings.personalization.theme_mode.light": "亮色", "settings.personalization.theme_mode.dark": "暗色", "settings.personalization.use_amoled": "使用黑色主題", "settings.personalization.use_custom_accent": "跟隨系統強調色", "settings.personalization.custom_accent": "選擇自訂強調色", "settings.personalization.use_grid": "格狀檢視筆記", "settings.personalization.locale": "應用程式語言", "settings.personalization.locale.device_default": "裝置預設", "settings.personalization.locale.x_translated": "已完成 {}% 翻譯", "settings.privacy.title": "隱私權", "settings.privacy.use_master_pass": "使用主密碼", "settings.privacy.use_master_pass.disclaimer": "注意: 忘記密碼將無法重設,您將需要重新安裝此應用程式,所有筆記皆會被刪除。請牢記您的密碼。", "settings.privacy.modify_master_pass": "更改主密碼", "settings.backup_restore.title": "備份與還原", "settings.backup_restore.backup": "備份", "settings.backup_restore.backup_desc": "在本機建立筆記副本", "settings.backup_restore.backup.nothing_to_restore.title": "尚無可還原的筆記", "settings.backup_restore.backup.nothing_to_restore.desc": "尚無可備份的筆記", "settings.backup_restore.restore": "還原", "settings.backup_restore.restore_desc": "還原 Leaflet 備份", "settings.backup_restore.restore.status.success": "還原筆記成功", "settings.backup_restore.restore.status.wrong_format": "此檔案非 Leaflet 備份格式", "settings.backup_restore.restore.status.wrong_password": "此密碼無法解密備份檔案", "settings.backup_restore.restore.status.already_exists": "備份檔案中的筆記與資料庫重複", "settings.backup_restore.restore.status.unknown": "匯入筆記時發生錯誤", "settings.backup_restore.import": "匯入", "settings.backup_restore.import_desc": "匯入 PotatoNotes 筆記", "settings.info.title": "資訊", "settings.info.about_app": "關於 Leaflet", "settings.info.update_check": "檢查應用程式更新", "settings.info.translate": "翻譯此應用程式", "settings.info.bug_report": "回報問題", "settings.debug.title": "除錯", "settings.debug.show_setup_screen": "在下一次啟動時顯示初始設定畫面", "settings.debug.loading_overlay": "測試載入疊加層", "settings.debug.clear_database": "清除資料庫", "settings.debug.migrate_database": "轉移資料庫", "settings.debug.generate_trash": "建立垃圾", "settings.debug.log_level": "Log 等級", "about.title": "關於", "about.pwa_version": "PWA 版本", "about.links": "連結", "about.contributors": "貢獻者", "about.contributors.hrx": "主要開發者與介面設計", "about.contributors.bas": "同步 API 與應用程式", "about.contributors.nico": "同步 API", "about.contributors.kat": "舊版同步 API", "about.contributors.rohit": "插畫與筆記色彩", "about.contributors.rshbfn": "應用程式圖示與主要強調色", "about.contributors.elias": "Leaflet 品牌名稱", "about.contributors.akshit": "安全性與後端支援", "search.textbox_hint": "搜尋", "search.tag_create_empty_hint": "建立新標籤", "search.tag_create_hint": "建立標籤「{}」", "search.type_to_search": "輸入以開始搜尋", "search.nothing_found": "無結果", "search.note.filters.case_sensitive": "區分大小寫", "search.note.filters.favourites": "僅搜尋最愛", "search.note.filters.locations": "筆記位置", "search.note.filters.locations.normal": "普通", "search.note.filters.locations.archive": "封存", "search.note.filters.locations.trash": "回收桶", "search.note.filters.locations.normal_title": "普通筆記", "search.note.filters.locations.archive_title": "封存的筆記", "search.note.filters.locations.trash_title": "刪除的筆記", "search.note.filters.color": "以色彩篩選", "search.note.filters.date": "以日期篩選", "search.note.filters.date.mode_title": "篩選模式", "search.note.filters.date.mode_after": "之後", "search.note.filters.date.mode_exact": "當日", "search.note.filters.date.mode_before": "之前", "search.note.filters.tags": "標籤", "search.note.filters.tags.selected.other": "已選擇 {} 項", "search.note.filters.clear": "清除篩選", "drawing.color_black": "黑色", "drawing.exit_prompt": "所有未儲存的變更將遺失。是否確認退出?", "drawing.clear_canvas_warning": "此作業無法還原。繼續?", "drawing.tools.brush": "筆刷", "drawing.tools.eraser": "橡皮擦", "drawing.tools.marker": "螢光筆", "drawing.tools.color_picker": "色彩", "drawing.tools.radius_picker": "大小", "drawing.tools.clear": "清除畫布", "setup.button.get_started": "開始", "setup.button.finish": "完成", "setup.button.next": "下一步", "setup.button.back": "上一步", "setup.welcome.catchphrase": "一用就愛上的筆記軟體", "setup.basic_customization.title": "基本個人化", "setup.restore_import.title": "還原與匯入", "setup.restore_import.desc": "可選擇從其它版本的 Leaflet 或舊版 PotatoNotes 匯入", "setup.restore_import.restore_btn": "從 Leaflet 還原", "setup.restore_import.import_btn": "從 PotatoNotes 匯入", "setup.finish.title": "大功告成!", "setup.finish.last_words": "已完成 Leaflet 初始設定,您可以開始使用了。若想要變更任何選項,請至設定頁面。希望您會喜歡 Leaflet!", "backup_restore.backup.title": "建立備份", "backup_restore.backup.password": "密碼", "backup_restore.backup.name": "名稱 (選填)", "backup_restore.backup.num_of_notes": "備份中的筆記數量: {}", "backup_restore.backup.protected_notes_prompt": "部分筆記已鎖定,請輸入密碼以解鎖。", "backup_restore.backup.creating": "正在建立備份", "backup_restore.backup.creating_progress": "正在備份第 {} / {} 則筆記", "backup_restore.backup.complete.success": "備份成功!", "backup_restore.backup.complete.failure": "備份已中斷", "backup_restore.backup.complete_desc.success": "備份成功!備份檔案已儲存至 ", "backup_restore.backup.complete_desc.success.no_file": "備份成功!您可關閉此視窗", "backup_restore.backup.complete_desc.failure": "發生錯誤或已中斷。您隨時可重新開始備份", "backup_restore.restore.title": "選擇欲還原的備份檔案", "backup_restore.restore.file_open": "開啟檔案", "backup_restore.restore.from_file": "{} (從檔案)", "backup_restore.restore.info": "筆記數量: {}、標籤數量: {}\n建立日期: {}", "backup_restore.restore.no_backups": "無可用備份。請嘗試開啟檔案", "backup_restore.restore.failure": "無法還原備份", "backup_restore.import.title": "選擇匯入起始點", "backup_restore.import.open_db": "開啟 PotatoNotes 備份檔案", "backup_restore.import.open_previous": "開啟舊版本資料庫", "backup_restore.import.open_previous.unsupported_platform": "僅限 Android 支援從舊版本匯入", "backup_restore.import.open_previous.no_file": "找不到舊版本資料庫", "backup_restore.import.notes_loaded": "載入筆記成功", "backup_restore.select_notes": "選擇欲還原的筆記", "backup_restore.replace_existing": "替換已存在的筆記", "miscellaneous.updater.update_available": "有可用更新!", "miscellaneous.updater.update_available_desc": "新版本已發布可供下載,輕觸更新以下載更新", "miscellaneous.updater.already_on_latest": "最新版本", "miscellaneous.updater.already_on_latest_desc": "您已更新至最新版本", }; @override int get translatedStrings => 245; }
56.481778
312
0.718297
4202074f6646efd3f81332eb8886449da70a1b9f
6,145
sql
SQL
marc21_dataclean.sql
300000kms/pg-tml
2a350ec4d90e461f36e5a48b67a29834852d509a
[ "Apache-2.0" ]
null
null
null
marc21_dataclean.sql
300000kms/pg-tml
2a350ec4d90e461f36e5a48b67a29834852d509a
[ "Apache-2.0" ]
null
null
null
marc21_dataclean.sql
300000kms/pg-tml
2a350ec4d90e461f36e5a48b67a29834852d509a
[ "Apache-2.0" ]
null
null
null
/* INSTALL plpython3u - IT IS IMPORTANT TO ADD IN THE COMMAND LINE THE VERSION OF PLPYTHON AND OF PG sudo apt-get install postgresql-plpython3-11 INTALL UNIDECODE pip install unidecode */ CREATE TYPE tm_fecha AS ( fecha1 integer, fecha1q Varchar, fecha2 integer, fecha2q Varchar ); CREATE OR REPLACE FUNCTION tm_cleandate(x text) /* THIS FUNCTION AIMS TO CLEAN AND NORMALIZE DATES IN MARC21 DATA SCRAPPING THE INPUT IS AN STRING CONTAINING A DATE THE OUTPUT IS AN ARRAY OF ARRAYS WHERE EACH INNER ARRAY CONTAINS A FIRST ELEMENT WITH THE DATA AND SECOND WITRH THE QUALITY IN => D FOR DATE, Y FOR YEAR, C FOR CENTURY */ RETURNS tm_fecha AS $$ import re import unidecode def int_to_roman(input): """ Convert an integer to a Roman numeral. """ if not isinstance(input, type(1)): raise (TypeError, "expected integer, got %s" % type(input)) if not 0 < input < 4000: raise (ValueError, "Argument must be between 1 and 3999") ints = (1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1) nums = ('M', 'CM', 'D', 'CD','C', 'XC','L','XL','X','IX','V','IV','I') result = [] for i in range(len(ints)): count = int(input / ints[i]) result.append(nums[i] * count) input -= ints[i] * count return ''.join(result) def roman_to_int(input): """ Convert a Roman numeral to an integer. """ if not isinstance(input, type("")): raise TypeError#, "expected string, got %s" % type(input) input = input.upper( ) nums = {'M':1000, 'D':500, 'C':100, 'L':50, 'X':10, 'V':5, 'I':1} sum = 0 for i in range(len(input)): try: value = nums[input[i]] # If the next place holds a larger number, this value is negative if i+1 < len(input) and nums[input[i+1]] > value: sum -= value else: sum += value except KeyError: raise (ValueError, 'input is not a valid Roman numeral: %s' % input) # easiest test for validity... if int_to_roman(sum) == input: return sum*100-100 else: # raise (ValueError, 'input is not a valid Roman numeral: %s' % input) return None global x v = x vOut = {'|||'} if v != '|||': if re.match(r'^.*[0-9]{4}-[0-9]{2}\b.*$', v): f = re.findall(r'([0-9]{4})-([0-9]{2})', v)[0] if int(f[0][2:4])<int(f[1]): v=f[0]+'-'+f[0][0:2]+f[1] elif int(f[0][0:2])<int(f[1]): v=f[0]+'-'+f[1]+'00' vOut = [] v = v.split('-') v = [x.lower() for x in v] v = [x.replace('?', '') for x in v] v = [x.strip() for x in v] for i in list(range(len(v))): f = re.findall(r'([0-9]+)th.*cen.*', v[i]) if len(f) > 0: for ff in f: vOut.append([f'{ff}00', 'century incomplete']) continue f = re.findall(r'([0-9]+)\s*a[\s.j]*c', v[i]) if len(f) > 0: for ff in f: vOut.append([f'-{ff}', 'year']) continue if re.match(r'.*(s.|segle|sec.|siglo|century|siecle).*\b[mdclxvi]+\b.*', v[i]): f = re.findall(r'.*(s.|segle|sec.|siglo|century|siecle).*(\b[mdclxvi]+\b).*', v[i])[0] f = str(roman_to_int(f[1])) f = '-'+f if re.match(r'.*a[\s.j]*c\b.*', v[i]) else f vOut.append([f, 'century']) continue if re.match(r'[\D]*[0-9]+[\D]*', v[i]): y = re.findall(r'[0-9]{3,4}', v[i]) if len(y) > 0: vOut.append([y[0], 'year']) continue y = re.findall(r'[0-9]{2}', v[i]) if len(y) > 0: vOut.append([y[0]+'00', 'century incomplete']) continue if len(vOut) == 1: vOut = [vOut[0][0], vOut[0][1], '|||', '|||'] elif len(vOut) >= 2: if vOut[1][0] < vOut[0][0]: vOut = [vOut[1][0], vOut[1][1], vOut[0][0], vOut[0][1]] else: vOut = [vOut[0][0], vOut[0][1], vOut[1][0], vOut[1][1]] else: print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>') print(c, x) pass return vOut $$ LANGUAGE plpython3u; CREATE OR REPLACE FUNCTION tmd_cleanlang(x text) /* THIS FUNCTION AIMS TO CLEAN AND NORMALIZE LANGUAGES IN MARC21 DATA SCRAPPING THE INPUT IS AN STRING CONTAINING A LANGUAGE */ RETURNS text AS $$ import unidecode import re import Levenshtein as leven from iso639 import languages langs = sorted([l.name for l in languages]) langDict = {} dataOut = [] l = l.lower().strip() l = unidecode.unidecode(l) langList.add(l) l = re.split(r'\-|\&|\sy\s|\si\s|\,|\se\s|\=|\sand\s|\set\s|\su\.\s', l) for ll in l: lengCode = None ll = re.sub(r'\W+', ' ', ll) ll = re.sub(r'\s\s+', ' ', ll) ll = ll.strip() if re.match(r'^[\w]{3}$', ll): try: ll = languages.get(part2b=ll) lengCode = ll.part2b except: langDict[ll] = '' elif ll.title() in langs: ll = languages.get(name=ll.title()) lengCode = ll.part2b elif any(x.title() in langs for x in ll.split(' ')): ll = list(set([x.title() for x in ll.split(' ') if x.title() in langs])) ll = ll[0] ll = languages.get(name=ll.title()) lengCode = ll.part2b elif ll == 'span': ll = languages.get(name='Spanish') lengCode = ll.part2b elif ll == 'engl': ll = languages.get(name='English') lengCode = ll.part2b elif ll == 'arabe': ll = languages.get(name='Arabic') lengCode = ll.part2b elif sorted([leven.distance(ll.title(), x) for x in langs])[0] < 2: lang = [x for x in langs if leven.distance(ll.title(), x) < 2][0] ll = languages.get(name=lang) lengCode = ll.part2b else: langDict[ll] = '' dataOut.append(lengCode) dataOut = [x for x in dataOut if x and x != ''] d1 = dataOut[0] if len(dataOut) > 0 else None d2 = dataOut[1] if len(dataOut) > 1 else None dataOut = {'l1': d1, 'l2': d2} # print(dataOut) if exp_dict: listDict = [{'nom': x, 'nom_c': ''} for x in sorted(langDict.keys())] listDict = [{'nom': x, 'nom_c':languages.get(name=x).part2b} for x in langs if languages.get(name=x).part2b != ''] + listDict dfLangDict = pd.DataFrame(listDict) dfLangDict.to_sql('lang_dict', con = PG_CON, schema = 'data_in', if_exists = 'append', index = False) return dataOut $$ LANGUAGE plpython3u;
28.317972
167
0.561269
c93d47375fe4c41c019451b032236f3bd3f3894c
2,616
ts
TypeScript
common/platform/tools/tools.promises.holder.ts
DmitryAstafyev/ceres
f1458ea474b1aff302e8b31171f50ec9ba170e6f
[ "Apache-2.0" ]
3
2019-03-04T11:12:32.000Z
2022-01-17T08:39:27.000Z
common/platform/tools/tools.promises.holder.ts
DmitryAstafyev/ceres
f1458ea474b1aff302e8b31171f50ec9ba170e6f
[ "Apache-2.0" ]
null
null
null
common/platform/tools/tools.promises.holder.ts
DmitryAstafyev/ceres
f1458ea474b1aff302e8b31171f50ec9ba170e6f
[ "Apache-2.0" ]
null
null
null
import * as Types from './tools.primitivetypes'; import inspect from './tools.inspect'; export type TId = string; export type TResolve = (...args: any[]) => any; export type TReject = (error: Error) => any; export type THolder = { resolve: TResolve, reject: TReject, created: number, }; export type TStorage = Map<TId, THolder>; export default class PromissesHolder { // TODO: here should be clean up by timer private _promises: TStorage = new Map(); private _alreadyRequested: { [key: string]: boolean } = {}; public add(id: string, resolve: TResolve, reject: TReject): boolean | Error { const error = this._validate(id); if (error !== null) { return error; } if (Types.getTypeOf(resolve) !== Types.ETypes.function) { return new Error(`Expect type of resolve will be {function}. Bug has gotten: ${inspect(resolve)}`); } if (Types.getTypeOf(reject) !== Types.ETypes.function) { return new Error(`Expect type of reject will be {function}. Bug has gotten: ${inspect(reject)}`); } if (this._promises.has(id)) { return new Error(`Promise alreay exists with same id "${id}"`); } this._promises.set(id, { created: (new Date()).getTime(), reject: reject, resolve: resolve, }); if (this._alreadyRequested[id] !== void 0) { this.resolve(id); } return true; } public remove(id: string): boolean { this._promises.delete(id); return true; } public resolve(id: string, ...args: any[]) { const holder = this._promises.get(id); if (holder === undefined) { this._alreadyRequested[id] = true; return false; } else { delete this._alreadyRequested[id]; } this._promises.delete(id); holder.resolve(...args); return true; } public reject(id: string, error: Error) { const holder = this._promises.get(id); if (holder === undefined) { return false; } this._promises.delete(id); holder.reject(error); return true; } public has(id: string): boolean { return this._promises.has(id); } public clear() { this._promises.clear(); } private _validate(id: string) { if (Types.getTypeOf(id) !== Types.ETypes.string) { return new Error(`Expect type of entity will be {string}. Bug has gotten: ${inspect(id)}`); } return null; } }
29.393258
111
0.563838
2d451608b9d5dac36396628f48dfea120d98b21b
4,380
css
CSS
ll/fs.css
mynlp/enju
d984a630b30b95de16f3b715277e95dc6fbe15b4
[ "Apache-2.0" ]
48
2016-10-11T06:07:02.000Z
2022-03-02T16:26:25.000Z
ll/fs.css
mynlp/enju
d984a630b30b95de16f3b715277e95dc6fbe15b4
[ "Apache-2.0" ]
7
2017-02-13T09:14:34.000Z
2019-01-18T06:06:29.000Z
docs/enju-manual/fs.css
mynlp/enju
d984a630b30b95de16f3b715277e95dc6fbe15b4
[ "Apache-2.0" ]
18
2016-11-13T23:14:28.000Z
2022-01-12T15:21:44.000Z
/** * Copyright (c) 2001-2005, MIYAO Yusuke * You may distribute this file under the terms of the Artistic License. * * Name: fs.css * Author: MIYAO Yusuke ([email protected]) * Stylesheet for browsing feature structures & trees * */ /***** Basic types *****/ type { font-style: italic; color: red; } decimal { color: green; } float { color: green; } doublequoted { color: #505050; } singlequoted { font-style: italic; color: red; } .type { font-style: italic; color: red; } .decimal { color: green; } .float { color: green; } .doublequoted { color: #505050; } .singlequoted { font-style: italic; color: red; } /***** Feature structure *****/ table.fs { /* display: inline-table; */ text-align: left; empty-cells: show; white-space: nowrap; text-indent: 0; font-size: x-small; border-style: none; border-collapse: separate; border-spacing: 0px; padding: 0px; } table.fs span.edge_fs { font-weight: bold; border-style: none; } table.fs span.shared_id { border-style: solid; border-color: blue; border-width: 1px; color: blue; padding: 0px 1px; } table.fs tr { display: table-row; line-height: 1; border-style: none; } table.fs td { display: table-cell; line-height: 1; border-style: none; vertical-align: middle; } table.list { font-size: x-small; border-style: none; border-collapse: separate; border-spacing: 0px; padding: 0px; } table.list tr { display: table-row; border-style: none; } table.list td { display: table-cell; border-style: none; vertical-align: middle; } table.fs td.lprn { display: table-cell; line-height: 1; padding: 0pt 3pt 0pt 0pt; border-style: solid; border-color: black; border-width: 1px 0px 1px 1px; } table.fs td.rprn { display: table-cell; line-height: 1; padding: 0pt 3pt 0pt 0pt; border-style: solid; border-color: black; border-width: 1px 1px 1px 0px; } /***** Tree structure *****/ table.tree { /* display: inline-table; width: 100%; text-align: left; */ empty-cells: show; white-space: nowrap; text-indent: 0; font-size: x-small; border-style: none; padding: 0px; border-collapse: collapse; } table.tree_node { /* display: inline-table; width: 100%; text-align: left; */ empty-cells: show; white-space: nowrap; text-indent: 0; font-size: x-small; border-style: none; padding: 0px; border-collapse: collapse; } table.tree_node td.tree_node { /* text-align: center; */ vertical-align: middle; border-style: none; padding: 0px; } table.tree td.dtr { vertical-align: top; border-style: none; padding: 0; } table.tree td.tree_term { padding: 0 0.5ex 0 0.5ex; /* text-align: center; */ vertical-align: top; width: 100%; } table.tree td.tree_space { border-style: none; padding: 0; } table.tree td.left { /* width: 50%; */ border-style: solid; border-width: 1px 0px 0px 1px; border-color: black; text-align: left; padding: 0 1ex 0 1ex; } table.tree td.top { /* width: 50%; */ border-style: solid; border-width: 1px 0px 0px 0px; border-color: black; padding: 1ex; /* text-align: center; */ } table.tree td.right { /* width: 50%; */ border-style: solid; border-width: 0px 0px 0px 1px; border-color: black; text-align: left; padding: 0 1ex 0 1ex; } table.tree td.space { /* width: 50%; */ border-style: none; padding: 1ex; /* text-align: center; */ } table.tree span.edge_tree { color: red; font-style: italic; /* text-align: left; */ } /***** Old MoriV Interface *****/ /* Feature structures */ fs { background: #f9f9ff; } fs-name { color: red; font-style: italic; } fs-singlequoted { color: red; font-style: italic; } fs-doublequoted { color: #404040; font-style: italic; } fs-decimal { color: blue; font-style: normal; } fs-float { color: blue; font-style: normal; } fs-feature { color: black; font-style: normal; } fs-variable { color: green; font-size: 120%; font-weight: bold; } /* Tree structures */ tree { } tree-name { color: red; font-weight: bold; } tree-doublequoted { color: #404040; font-style: italic; } tree-singlequoted { color: green; font-style: italic; } tree-decimal { color: blue; font-style: normal; } tree-float { color: blue; font-style: normal; } tree-feature { color: blue; }
14.747475
75
0.63653
8826aaa22dddf9956caf3fd2aa4d6ddbe5f3099d
1,954
css
CSS
public/static/css/user/game/setstart.css
chendongqin/basketball_club
99f743c67a8f44e92f06eae3094457b46dfb90b5
[ "Apache-2.0" ]
1
2021-01-03T11:06:19.000Z
2021-01-03T11:06:19.000Z
public/static/css/user/game/setstart.css
asdlijinquan/basketball_club
99f743c67a8f44e92f06eae3094457b46dfb90b5
[ "Apache-2.0" ]
null
null
null
public/static/css/user/game/setstart.css
asdlijinquan/basketball_club
99f743c67a8f44e92f06eae3094457b46dfb90b5
[ "Apache-2.0" ]
1
2021-01-03T09:14:45.000Z
2021-01-03T09:14:45.000Z
.clearfix { zoom: 1; } .clearfix:after { content: ""; height: 0; visibility: hidden; display: block; clear: both; } .fl { float: left; _display: inline; } .fr { float: right; _display: inline; } .lineup__list { zoom: 1; } .lineup__list:after { content: ""; height: 0; visibility: hidden; display: block; clear: both; } .lineup__item { float: left; _display: inline; } body { min-width: 980px; } .header__title { color: #666; text-align: center; font-size: 24px; line-height: 48px; padding: 20px 0; border-bottom: 1px solid #e8e8e8; text-shadow: 2px 2px 5px #e3e3e3; } .lineup__list { margin: 50px 0; } .lineup__item { height: 375; width: 30%; margin: 0 10%; padding: 20px; border: 1px solid #e8e8e8; box-sizing: border-box; -webkit-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; -ms-border-radius: 5px; border-radius: 5px; -moz-box-sizing: border-box; /* Firefox */ -webkit-box-sizing: border-box; /* Safari */ -moz-box-shadow: 1px 1px 5px #e3e3e3; /* 老的 Firefox */ box-shadow: 1px 1px 5px #e3e3e3; } .lineup__name { text-align: center; color: #666; font-size: 18px; margin-bottom: 20px; } .lineup__form-item { font-size: 14px; color: #666; line-height: 28px; } .lineup__form-item input { margin-bottom: 2px; } .lineup__btn { color: #fff; background-color: #409eff; border-color: #409eff; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-appearance: none; text-align: center; box-sizing: border-box; outline: none; margin: 0 0 50px 0; transition: .1s; font-weight: 500; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; padding: 12px 50px; font-size: 14px; border-radius: 4px; } .lineup__btn-group { text-align: center; } .lineup__btn:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
15.147287
39
0.641249
b17114cb0e4ede806a1cb1903e3e8ddea9bf6b3b
4,145
py
Python
pyuppaal/pyuppaal/ulp/lexer.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
pyuppaal/pyuppaal/ulp/lexer.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
pyuppaal/pyuppaal/ulp/lexer.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
""" Copyright (C) 2009 Andreas Engelbredt Dalsgaard <[email protected]> Mads Chr. Olesen <[email protected]> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. """ """This file contains the lexer rules and the list of valid tokens.""" import ply.lex as lex import sys import re reserved = { 'void' : 'VOID', 'int' : 'INT', 'bool' : 'BOOL', 'chan' : 'CHANNEL', 'clock' : 'CLOCK', 'urgent' : 'URGENT', 'broadcast' : 'BROADCAST', 'const' : 'CONST', 'if' : 'IF', 'else' : 'ELSE', 'while' : 'WHILE', 'for' : 'FOR', 'struct' : 'STRUCT', 'true' : 'TRUE', 'false' : 'FALSE', 'True' : 'TRUE', 'False' : 'FALSE', 'not' : 'NOT', 'and' : 'AND', 'or' : 'OR', 'imply' : 'IMPLY', 'return' : 'RETURN', 'do' : 'DO', 'system' : 'SYSTEM', 'typedef' : 'TYPEDEF', 'extern' : 'EXTERN', #opaal specific! } #TODO add <? and ?> # This is the list of token names. tokens = [ 'IDENTIFIER', 'NUMBER', # Operators 'PLUS', 'MINUS', 'TIMES', 'DIVIDE', 'MODULO', 'BITAND', 'BITOR', 'XOR', 'LSHIFT', 'RSHIFT', 'LOR', 'LAND', 'LNOT', 'LESS', 'GREATER', 'LESSEQ', 'GREATEREQ', 'EQUAL', 'NOTEQUAL', 'PLUSPLUS', 'MINUSMINUS', 'CONDITIONAL', # Assignments 'EQUALS', 'ASSIGN', 'TIMESEQUAL', 'DIVEQUAL', 'MODEQUAL', 'PLUSEQUAL', 'MINUSEQUAL', 'LSHIFTEQUAL', 'RSHIFTEQUAL', 'ANDEQUAL', 'OREQUAL', 'XOREQUAL', #Delimeters 'SEMI', 'COMMA', 'DOT', 'COLON', 'LPAREN', 'RPAREN', 'LCURLYPAREN', 'RCURLYPAREN', 'LBRACKET', 'RBRACKET', #Miscellaneous 'APOSTROPHE', ] +list(reserved.values()) # These are regular expression rules for simple tokens. # Operators (The following sections is inspired by c_lexer.py) t_PLUS = r'\+' t_MINUS = r'-' t_TIMES = r'\*' t_DIVIDE = r'/' t_MODULO = r'%' t_BITAND = r'&' t_BITOR = r'\|' t_XOR = r'\^' t_LSHIFT = r'<<' t_RSHIFT = r'>>' t_LOR = r'\|\|' t_LAND = r'&&' t_LNOT = r'!' t_LESS = r'<' t_GREATER = r'>' t_LESSEQ = r'<=' t_GREATEREQ = r'>=' t_EQUAL = r'==' t_NOTEQUAL = r'!=' t_PLUSPLUS = r'\+\+' t_MINUSMINUS = r'--' t_CONDITIONAL = r'\?' # Assignments t_EQUALS = r'=' t_ASSIGN = r':=' t_TIMESEQUAL = r'\*=' t_DIVEQUAL = r'/=' t_MODEQUAL = r'%=' t_PLUSEQUAL = r'\+=' t_MINUSEQUAL = r'-=' t_LSHIFTEQUAL = r'<<=' t_RSHIFTEQUAL = r'>>=' t_ANDEQUAL = r'&=' t_OREQUAL = r'\|=' t_XOREQUAL = r'^=' # Delimeters t_SEMI = r';' t_COMMA = r',' t_DOT = r'\.' t_COLON = r':' t_LPAREN = r'\(' t_RPAREN = r'\)' t_LCURLYPAREN = r'\{' t_RCURLYPAREN = r'\}' t_LBRACKET = r'\[' t_RBRACKET = r'\]' #Miscellaneous t_APOSTROPHE = r"'" def t_IDENTIFIER(t): r'[a-zA-Z_][a-zA-Z_0-9]*' t.type = reserved.get(t.value,'IDENTIFIER') # Check for reserved words return t # Read in an int. def t_NUMBER(t): r'\d+' t.value = int(t.value) return t # Ignore comments. def t_COMMENT(t): r'//.*\n' t.lineno += t.value.count('\n') def t_MCOMMENT(t): r'/\*(.|\n)*?\*/' t.lineno += t.value.count('\n') # Track line numbers. def t_NEWLINE(t): r'\n+' t.lineno += len(t.value) # These are the things that should be ignored. t_ignore = ' \t' # Handle errors. def t_error(t): raise SyntaxError("syntax error on line %d near '%s'" % (t.lineno, t.value)) # Build the lexer. lexer = lex.lex() # vim:ts=4:sw=4:expandtab
20.725
77
0.567189
4684424ecd860fd51e3a5dd26b8f77f032758152
9,954
lua
Lua
nelua/cemitter.lua
eerimoq/nelua-lang
82d25edeb055779229fdc5bb484ef32d0d2ffd4a
[ "MIT" ]
null
null
null
nelua/cemitter.lua
eerimoq/nelua-lang
82d25edeb055779229fdc5bb484ef32d0d2ffd4a
[ "MIT" ]
null
null
null
nelua/cemitter.lua
eerimoq/nelua-lang
82d25edeb055779229fdc5bb484ef32d0d2ffd4a
[ "MIT" ]
null
null
null
local class = require 'nelua.utils.class' local Emitter = require 'nelua.emitter' local traits = require 'nelua.utils.traits' local typedefs = require 'nelua.typedefs' local errorer = require 'nelua.utils.errorer' local pegger = require 'nelua.utils.pegger' local bn = require 'nelua.utils.bn' local CEmitter = class(Emitter) local primtypes = typedefs.primtypes function CEmitter:_init(context, depth) Emitter._init(self, context, depth) end function CEmitter:zeroinit(type) local s if type.is_float32 and not self.context.pragmas.nofloatsuffix then s = '0.0f' elseif type.is_float then s = '0.0' elseif type.is_unsigned then s = '0U' elseif type.is_arithmetic then s = '0' elseif type.is_niltype or type.is_comptime then self.context:ensure_builtin('NLNIL') s = 'NLNIL' elseif type.is_pointer or type.is_procedure then self.context:ensure_builtin('NULL') s = 'NULL' elseif type.is_boolean then self.context:ensure_include('<stdbool.h>') s = 'false' elseif type.size == 0 then s = '{}' else -- should initialize almost anything in C s = '{0}' end return s end function CEmitter:add_type(type) self:add_one(self.context:ctype(type)) end function CEmitter:add_typecast(type) self:add('(',type,')') end function CEmitter:add_zeroed_type_init(type) self:add_one(self:zeroinit(type)) end function CEmitter:add_zeroed_type_literal(type) if not (type.is_boolean or type.is_arithmetic or type.is_pointer) then self:add_typecast(type) end self:add_one(self:zeroinit(type)) end function CEmitter:add_boolean_literal(value) self.context:ensure_include('<stdbool.h>') self:add_one(value and 'true' or 'false') end function CEmitter:add_null() self.context:ensure_builtin('NULL') self:add_one('NULL') end function CEmitter:add_val2any(val, valtype) valtype = valtype or val.attr.type assert(not valtype.is_any) self:add('((', primtypes.any, ')') if valtype.is_niltype then self:add_one('{0})') else local runctype = self.context:runctype(valtype) local typename = self.context:typename(valtype) self:add('{&', runctype, ', {._', typename, ' = ', val, '}})') end end function CEmitter:add_val2boolean(val, valtype) valtype = valtype or val.attr.type if valtype.is_boolean then self:add_one(val) elseif valtype.is_any then self:add_builtin('nlany_to_', primtypes.boolean) self:add('(', val, ')') elseif valtype.is_niltype or valtype.is_nilptr then self.context:ensure_include('<stdbool.h>') if traits.is_astnode(val) and (val.tag == 'Nil' or val.tag == 'Id') then self:add_one('false') else -- could be a call self:add('({(void)(', val, '); false;})') end elseif valtype.is_pointer or valtype.is_function then self.context:ensure_builtin('NULL') self:add('(', val, ' != NULL)') else self.context:ensure_include('<stdbool.h>') if traits.is_astnode(val) and (val.tag == 'Nil' or val.tag == 'Id') then self:add_one('true') else -- could be a call self:add('({(void)(', val, '); true;})') end end end function CEmitter:add_any2type(type, anyval) self.context:ctype(primtypes.any) -- ensure any type self:add_builtin('nlany_to_', type) self:add('(', anyval, ')') end function CEmitter:add_stringview2cstring(val) self:add('((char*)(', val, '.data', '))') end function CEmitter:add_cstring2stringview(val) self:add_builtin('nelua_cstring2stringview') self:add('(', val, ')') end function CEmitter:add_val2type(type, val, valtype, checkcast) if type.is_comptime then self:add_builtin('NLNIL') return end if traits.is_astnode(val) then if not valtype then valtype = val.attr.type end checkcast = val.checkcast end if val then assert(valtype) if type == valtype then self:add_one(val) elseif valtype.is_arithmetic and type.is_arithmetic and (type.is_float or valtype.is_integral) and traits.is_astnode(val) and val.attr.comptime then self:add_numeric_literal(val.attr, type) elseif valtype.is_nilptr and type.is_pointer then self:add_one(val) elseif type.is_any then self:add_val2any(val, valtype) elseif type.is_boolean then self:add_val2boolean(val, valtype) elseif valtype.is_any then self:add_any2type(type, val) elseif valtype.is_stringview and (type.is_cstring or type:is_pointer_of(primtypes.byte)) then self:add_stringview2cstring(val) elseif type.is_stringview and valtype.is_cstring then self:add_cstring2stringview(val) elseif type.is_pointer and traits.is_astnode(val) and val.attr.autoref then -- automatic reference self:add('&', val) elseif valtype.is_pointer and valtype.subtype == type and (type.is_record or type.is_array) then -- automatic dereference self:add_one('*') if checkcast then self:add_builtin('nelua_assert_deref_', valtype) self:add('(', val, ')') else self:add_one(val) end else if checkcast and type.is_integral and valtype.is_arithmetic and not type:is_type_inrange(valtype) then self:add_builtin('nelua_narrow_cast_', type, valtype) self:add('(', val, ')') else local innertype = type.is_pointer and type.subtype or type local surround = innertype.is_composite or innertype.is_array if surround then self:add_one('(') end self:add_typecast(type) self:add_one(val) if surround then self:add_one(')') end end end else self:add_zeroed_type_init(type) end end function CEmitter:add_nil_literal() self:add_builtin('NLNIL') end function CEmitter:add_numeric_literal(valattr, valtype) assert(bn.isnumeric(valattr.value)) valtype = valtype or valattr.type local val, base = valattr.value, valattr.base if valtype.is_integral then if bn.isneg(val) and valtype.is_unsigned then val = valtype:wrap_value(val) elseif not valtype:is_inrange(val) then val = valtype:wrap_value(val) end end local minusone = false if valtype.is_float then if bn.isnan(val) then if valtype.is_float32 then self:add_one('(0.0f/0.0f)') else self:add_one('(0.0/0.0)') end return elseif bn.isinfinite(val) then self.context:ensure_include('<math.h>') if val < 0 then self:add_one('-') end if valtype.is_float32 then self:add_one('HUGE_VALF') else self:add_one('HUGE_VAL') end return else local valstr = bn.todecsci(val, valtype.maxdigits) self:add_one(valstr) -- make sure it has decimals if valstr:match('^-?[0-9]+$') then self:add_one('.0') end end else if valtype.is_integral and valtype.is_signed and val == valtype.min then -- workaround C warning `integer constant is so large that it is unsigned` minusone = true val = val + 1 end if not base or base == 'dec' or val:isneg() then self:add_one(bn.todec(val)) else self:add('0x', bn.tohex(val)) end end -- suffixes if valtype.is_float32 and not valattr.nofloatsuffix then self:add_one('f') elseif valtype.is_unsigned then self:add_one('U') end if minusone then self:add_one('-1') end end function CEmitter.cstring_literal(_, s) return pegger.double_quote_c_string(s), #s end function CEmitter:add_string_literal_inlined(val, ascstring) local quotedliterals = self.context.quotedliterals local quoted_value = quotedliterals[val] if not quoted_value then quoted_value = pegger.double_quote_c_string(val) quotedliterals[val] = quoted_value end if ascstring then self:add(quoted_value) else if not self.context.state.ininitializer then self:add_one('(') self:add_typecast(primtypes.stringview) end self:add('{(uint8_t*)', quoted_value, ', ', #val, '}') if not self.context.state.ininitializer then self:add_one(')') end end end function CEmitter:add_string_literal(val, ascstring) if #val < 80 then return self:add_string_literal_inlined(val, ascstring) end local size = #val local varname = self.context.stringliterals[val] if varname then if ascstring then --luacov:disable self:add_one(varname) else --luacov:enable if not self.context.state.ininitializer then self:add_one('(') self:add_typecast(primtypes.stringview) end self:add('{(uint8_t*)', varname, ', ', size, '}') if not self.context.state.ininitializer then self:add_one(')') end end return end varname = self.context:genuniquename('strlit') self.context.stringliterals[val] = varname local decemitter = CEmitter(self.context) local quoted_value = pegger.double_quote_c_string(val) decemitter:add_indent_ln('static char ', varname, '[', size+1, '] = ', quoted_value, ';') self.context:add_declaration(decemitter:generate(), varname) if ascstring then --luacov:disable self:add_one(varname) else --luacov:enable if not self.context.state.ininitializer then self:add_one('(') self:add_typecast(primtypes.stringview) end self:add('{(uint8_t*)', varname, ', ', size, '}') if not self.context.state.ininitializer then self:add_one(')') end end end function CEmitter:add_literal(valattr) local valtype = valattr.type if valtype.is_boolean then self:add_boolean_literal(valattr.value) elseif valtype.is_arithmetic then self:add_numeric_literal(valattr) elseif valtype.is_stringview then self:add_string_literal(valattr.value, valattr.is_cstring) elseif valtype.is_niltype then self:add_builtin('NLNIL') else --luacov:disable errorer.errorf('not implemented: `CEmitter:add_literal` for valtype `%s`', valtype) end --luacov:enable end return CEmitter
28.685879
97
0.686458
e388febb778df49aaffd782feaa0b411faa799c4
2,627
rb
Ruby
lib/onix/core/code.rb
natebeaty/onix
d714448a5f36faec77ba62c17fd54ee6bbf355b6
[ "MIT" ]
null
null
null
lib/onix/core/code.rb
natebeaty/onix
d714448a5f36faec77ba62c17fd54ee6bbf355b6
[ "MIT" ]
null
null
null
lib/onix/core/code.rb
natebeaty/onix
d714448a5f36faec77ba62c17fd54ee6bbf355b6
[ "MIT" ]
3
2015-07-29T22:30:25.000Z
2018-09-22T17:30:09.000Z
# coding: utf-8 module ONIX class Code attr_reader :key, :value, :list, :list_number # Note re: key type. For backwards compatibility, code keys that are # all-digits are passed around in this gem as Fixnums. # # The actual code list hashes have string-based keys for consistency. If # you want the integer-or-string key, use Code#key. If you want the real # string key, use Code#to_s. # # If the key is not found in the list, the behaviour depends on the # :enforce option. By default, it returns a code with key and value set to # nil. If :enforce is true, an exception is raised. If :enforce is false, # the key and value is the data given in the tag. # def initialize(list_number, data, options = {}) @list_number = list_number unless @list = ONIX::Lists.list(@list_number) raise ONIX::CodeListNotFound.new(@list_number) end @key = @value = nil return if data.nil? || data == "" if data.kind_of?(Fixnum) @key = data pad_length = options[:length] || [@list.keys.first.size, 2].max @real_key = pad(data, pad_length) elsif data.match(/^\d+$/) && @list.keys.include?(data) @key = data.to_i @real_key = data elsif @list.keys.include?(data) @key = @real_key = data else @list.each_pair { |k, v| next unless v == data @real_key = k @key = @real_key.match(/^\d+$/) ? @real_key.to_i : @real_key break } end if @real_key @value = @list[@real_key] elsif options[:enforce] == true raise ONIX::CodeNotFoundInList.new(@list_number, data) elsif options[:enforce] == false @value = @key = @real_key = data else @value = @key = @real_key = nil end end # Returns true if the given key has a value in the codelist. # def valid? @value ? true : false end # Returns the string representation of the key. eg, "BB". # def to_s @real_key end # Returns the string representation of the value. eg, "Hardback". # def to_val @value.to_s end private # Converts a Fixnum key into a String key. # def pad(key, len) key ? key.to_s.rjust(len, '0') : nil end end class CodeListNotFound < ArgumentError def initialize(list_number) @list_number = list_number end end class CodeNotFoundInList < RuntimeError def initialize(list_number, code) @list_number = list_number @code = code end end end
24.551402
78
0.595737
96c3498d5e8fadeda5efb2d5c0ac72a5e569908d
1,561
cs
C#
Angular/LogClientSide/Controllers/ProductsController.cs
pandazzurro/LogClientSideFull
74782fd4987f62c05f9bc4de4d9ba68f0d4aa88c
[ "MIT" ]
null
null
null
Angular/LogClientSide/Controllers/ProductsController.cs
pandazzurro/LogClientSideFull
74782fd4987f62c05f9bc4de4d9ba68f0d4aa88c
[ "MIT" ]
null
null
null
Angular/LogClientSide/Controllers/ProductsController.cs
pandazzurro/LogClientSideFull
74782fd4987f62c05f9bc4de4d9ba68f0d4aa88c
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using LogClientSide.Services; using LogClientSide.Models; namespace LogClientSide.Controllers { [Route("api/[controller]")] public class ProductsController : Controller { private IProductRepository _productRepository; public ProductsController(IProductRepository productRepository) { _productRepository = productRepository; } // GET: api/values [HttpGet("{skip:int?}/{take:int?}")] public PaginationViewModel<ProductViewModel> Get(int skip = 0, int take = 10) { var query = _productRepository.GetAllAsync() .Skip(skip) .Take(take) .OrderBy(x => x.ProductId); return new PaginationViewModel<ProductViewModel>(_productRepository.GetAllAsync(), query); } // GET api/values/5 [HttpGet("{id}")] public ProductViewModel Get(int id) { return _productRepository.GetAllAsync().FirstOrDefault(x => x.ProductId == id); } //// POST api/values //[HttpPost] //public void Post([FromBody]string value) //{ //} //// PUT api/values/5 //[HttpPut("{id}")] //public void Put(int id, [FromBody]string value) //{ //} //// DELETE api/values/5 //[HttpDelete("{id}")] //public void Delete(int id) //{ //} } }
27.385965
102
0.578475
238e026831e8dff612a0c8b33670de097e31f969
322
js
JavaScript
react-app/simple-gantt-timeline/src/components/DragDependencyBox/DragDependencyBox.js
AdrKacz/simple-gantt-timeline
377e602b506467bfc44b74fa8b532fc4bdb3318e
[ "MIT" ]
null
null
null
react-app/simple-gantt-timeline/src/components/DragDependencyBox/DragDependencyBox.js
AdrKacz/simple-gantt-timeline
377e602b506467bfc44b74fa8b532fc4bdb3318e
[ "MIT" ]
null
null
null
react-app/simple-gantt-timeline/src/components/DragDependencyBox/DragDependencyBox.js
AdrKacz/simple-gantt-timeline
377e602b506467bfc44b74fa8b532fc4bdb3318e
[ "MIT" ]
null
null
null
import "./DragDependencyBox.css"; function DragDependencyBox({positionX, positionY}) { if (!positionX || !positionY) { return <></>; } return ( <div className="DragDependencyBox" style={{ top: positionY, left: positionX, }} /> ) }; export default DragDependencyBox;
16.947368
52
0.590062
e229ca507912407b3798d92f3f54d5a039d086e1
3,286
py
Python
src/oled-ssd1306.py
dooley-ch/microbit-grove
e25213de74d982b8ab49412e6f8b2dbe205ca932
[ "MIT" ]
null
null
null
src/oled-ssd1306.py
dooley-ch/microbit-grove
e25213de74d982b8ab49412e6f8b2dbe205ca932
[ "MIT" ]
null
null
null
src/oled-ssd1306.py
dooley-ch/microbit-grove
e25213de74d982b8ab49412e6f8b2dbe205ca932
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright James A. Dooley 2021. # # Distributed under the MIT License. # (See accompanying file license.md file or copy at http://opensource.org/licenses/MIT) # # ------------------------------------------------------------------------------------------ from microbit import i2c, sleep, Image _DEFAULT_ADDRESS = 0x3C _INIT_COMMANDS = [ [0xAE], [0xA4], [0xD5, 0xF0], [0xA8, 0x3F], [0xD3, 0x00], [0 | 0x0], [0x8D, 0x14], [0x20, 0x00], [0x21, 0, 127], [0x22, 0, 63], [0xa0 | 0x1], [0xc8], [0xDA, 0x12], [0x81, 0xCF], [0xd9, 0xF1], [0xDB, 0x40], [0xA6], [0xd6, 1], [0xaf]] class OledSSD1306: def __init__(self): self._device_address = _DEFAULT_ADDRESS self._buffer = bytearray(513) self._buffer[0] = 0x40 self._zoom = 1 for cmd in _INIT_COMMANDS: self._write_registery(cmd) self.clear() def _write_registery(self, value): i2c.write(self._device_address, b'\x00' + bytearray(value)) def _set_position(self, column = 0, page = 0): self._write_registery([0xB0 | page]) c1, c2 = column * 2 & 0x0F, column >> 3 self._write_registery([0x00 | c1]) self._write_registery([0x10 | c2]) def _set_zoom(self, value): if self._zoom != value: self._write_registery([0xD6, value]) self._write_registery([0xA7 - value]) self._zoom = value def _write_buffer(self): self._set_zoom(1) self._set_position() i2c.write(self._device_address, self._buffer) def clear(self): self._set_position() for i in range(1, 513): self._buffer[i] = 0 self._write_buffer() def blink(self, time = 1000): for c in ([0xae], [0xaf]): self._write_registery(c) sleep(time / 2) def pulse(self, time=500): per_step = time / 25 r = [[250, 0, -10], [0, 250, 10]] for (x, y, z) in r: for i in range(x, y, z): self._write_registery([0x81, i]) sleep(per_step) self._write_registery([0x81, 0xcf]) def string(self, x, y, value, draw=1): for i in range(0, min(len(value), 12 - x)): for c in range(0, 5): col = 0 for r in range(1, 6): p = Image(value[i]).get_pixel(c, r - 1) col = col | (1 << r) if (p != 0) else col ind = x * 10 + y * 128 + i * 10 + c * 2 + 1 self._buffer[ind], self._buffer[ind + 1] = col, col if draw == 1: self._set_zoom(1) self._set_position((x) * 5, (y)) ind0 = x * 10 + y * 128 + 1 i2c.write(self._device_address, b'\x40' + self._buffer[ind0:ind + 1]) def main(): i2c.init() display = OledSSD1306() display.string(4, 1, "Hello") display.string(4, 2, "World") display.pulse() if __name__ == '__main__': main()
28.573913
92
0.469264
05d9d330a525dcae7cc7ade8715707e81f33d648
714
sql
SQL
schema/deploy/computed_columns/application_submission_date.sql
bcgov/cas-ciip-portal
dceb5331fa17902b1100e6faccac9d36eeb8b4a5
[ "Apache-2.0" ]
9
2019-10-09T20:57:34.000Z
2020-11-19T15:32:32.000Z
schema/deploy/computed_columns/application_submission_date.sql
bcgov/cas-ciip-portal
dceb5331fa17902b1100e6faccac9d36eeb8b4a5
[ "Apache-2.0" ]
1,282
2019-08-21T20:43:34.000Z
2022-03-30T16:46:46.000Z
schema/deploy/computed_columns/application_submission_date.sql
bcgov/cas-ciip-portal
dceb5331fa17902b1100e6faccac9d36eeb8b4a5
[ "Apache-2.0" ]
2
2019-10-16T22:27:43.000Z
2021-01-26T20:05:13.000Z
-- Deploy ggircs-portal:computed_columns/application_submission_date to pg -- requires: computed_columns/application_application_revision_status begin; create or replace function ggircs_portal.application_submission_date(app ggircs_portal.application) returns timestamptz as $$ select (ggircs_portal.application_application_revision_status(app::ggircs_portal.application, null)).created_at; $$ language sql stable; comment on function ggircs_portal.application_submission_date(ggircs_portal.application) is E'@sortable\nThis function is a wrapper to return created_at (as submission_date) as a scalar from the composite return of the application_application_revision_status computed column'; commit;
47.6
276
0.845938
b286a2d02e9444c04d23721a15a7a2b3316cdedc
15
css
CSS
examples/ofuelux_all/css/javascript.css
skylark-integration/skylark-fuelux
fb062096f2f629a7c2be39793d8dc37221fb6635
[ "MIT" ]
1
2019-06-08T13:32:12.000Z
2019-06-08T13:32:12.000Z
examples/ofuelux_all/css/javascript.css
skylark-integration/skylark-fuelux
fb062096f2f629a7c2be39793d8dc37221fb6635
[ "MIT" ]
null
null
null
examples/ofuelux_all/css/javascript.css
skylark-integration/skylark-fuelux
fb062096f2f629a7c2be39793d8dc37221fb6635
[ "MIT" ]
null
null
null
/* * Blank */
5
8
0.333333
c7058a488b95bae7f9ad8a1ca0e58259fdee2128
148
sql
SQL
req4.sql
jordane-quincy/TP1_BDOR
89add86497b5ff1a341b1628daa0f568fbf9b1d3
[ "MIT" ]
1
2015-12-07T12:29:11.000Z
2015-12-07T12:29:11.000Z
req4.sql
jordane-quincy/TP1_BDOR
89add86497b5ff1a341b1628daa0f568fbf9b1d3
[ "MIT" ]
null
null
null
req4.sql
jordane-quincy/TP1_BDOR
89add86497b5ff1a341b1628daa0f568fbf9b1d3
[ "MIT" ]
null
null
null
select distinct t.Filiere from table (select ev.Intervenants from Evenement ev where Nom_E = 'Evenement 1' ) t;
24.666667
39
0.587838
af0ce50724e9f82b6c5199a85e1090237ad6dd76
4,597
lua
Lua
http/parser.lua
Neopallium/lua-http-tokenizer
5fb43f8c569062c35a28a19bc01bbbea99350d12
[ "MIT" ]
1
2017-11-03T14:44:17.000Z
2017-11-03T14:44:17.000Z
http/parser.lua
Neopallium/lua-http-tokenizer
5fb43f8c569062c35a28a19bc01bbbea99350d12
[ "MIT" ]
null
null
null
http/parser.lua
Neopallium/lua-http-tokenizer
5fb43f8c569062c35a28a19bc01bbbea99350d12
[ "MIT" ]
null
null
null
-- Copyright (c) 2011 by Robert G. Jakabosky <[email protected]> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -- THE SOFTWARE. local setmetatable = setmetatable local tonumber = tonumber local assert = assert local tconcat = table.concat local http_tokenizer = require"http_tokenizer" local callback_names = { "on_message_begin", "on_url", "on_header", "on_headers_complete", "on_body", "on_message_complete", } local null_callbacks = { on_message_begin = function() end, on_url = function(data) end, on_header = function(k,v) end, on_headers_complete = function() end, on_body = function(data) end, on_message_complete = function() end, } local parser_mt = {} parser_mt.__index = parser_mt function parser_mt:is_upgrade() return self.tokenizer:is_upgrade() end function parser_mt:should_keep_alive() return self.tokenizer:should_keep_alive() end function parser_mt:method() return self.tokenizer:method_str() end function parser_mt:version() local version = self.tokenizer:version() return (version / 65536), (version % 65536) end function parser_mt:status_code() return self.tokenizer:status_code() end function parser_mt:is_error() return self.tokenizer:is_error() end function parser_mt:error() return self.tokenizer:error(), self.tokenizer:error_name(), self.tokenizer:error_description() end function parser_mt:execute(data) return self.tokenizer:execute(self.handlers, data) end function parser_mt:execute_buffer(buf) return self.tokenizer:execute_buffer(self.handlers, buf) end function parser_mt:reset() return self.tokenizer:reset() end local function create_parser(tokenizer, cbs) local self = { tokenizer = tokenizer, cbs = cbs, } -- create null callbacks for missing ones. for i=1,#callback_names do local name = callback_names[i] if not cbs[name] then cbs[name] = null_callbacks[name] end end local last_id local len = 0 local buf={} local field local handlers = { [http_tokenizer.HTTP_TOKEN_MESSAGE_BEGIN] = cbs.on_message_begin, [http_tokenizer.HTTP_TOKEN_URL] = function(data) if data then return cbs.on_url(data) end end, [http_tokenizer.HTTP_TOKEN_HEADER_FIELD] = function(data) if field then cbs.on_header(field, '') end field = data end, [http_tokenizer.HTTP_TOKEN_HEADER_VALUE] = function(data) if data then cbs.on_header(field, data) field = nil end end, [http_tokenizer.HTTP_TOKEN_HEADERS_COMPLETE] = function(data) if field then cbs.on_header(field, '') field = nil end cbs.on_headers_complete() end, [http_tokenizer.HTTP_TOKEN_BODY] = cbs.on_body, [http_tokenizer.HTTP_TOKEN_MESSAGE_COMPLETE] = function() field = nil -- Send on_body(nil) message to comply with LTN12 cbs.on_body() return cbs.on_message_complete() end, reset = function() field = nil end, } local body_id = http_tokenizer.HTTP_TOKEN_BODY self.handlers = function(id, data) -- flush last event. if id ~= last_id and last_id then if len == 1 then handlers[last_id](buf[1]) buf[1] = nil elseif len > 1 then local data = tconcat(buf, '', 1, len) handlers[last_id](data) for i=1,len do buf[i] = nil end else handlers[last_id]() end len = 0 last_id = nil end if data and id ~= body_id then len = len + 1 buf[len] = data last_id = id else handlers[id](data) end end return setmetatable(self, parser_mt) end module(...) function request(cbs) return create_parser(http_tokenizer.request(), cbs) end function response(cbs) return create_parser(http_tokenizer.response(), cbs) end
24.848649
95
0.738308
a9e3614e641698f6ba850188e7342dac85ba6dad
550
php
PHP
app/Route/RouteInterface.php
veridu/idos-api
abcdfa6f45991b08a0e2a2c127ecc311649802f9
[ "MIT" ]
null
null
null
app/Route/RouteInterface.php
veridu/idos-api
abcdfa6f45991b08a0e2a2c127ecc311649802f9
[ "MIT" ]
null
null
null
app/Route/RouteInterface.php
veridu/idos-api
abcdfa6f45991b08a0e2a2c127ecc311649802f9
[ "MIT" ]
3
2018-03-01T10:25:54.000Z
2019-04-03T11:17:42.000Z
<?php /* * Copyright (c) 2012-2017 Veridu Ltd <https://veridu.com> * All rights reserved. */ declare(strict_types = 1); namespace App\Route; use Slim\App; /** * Route Interface. */ interface RouteInterface { /** * Registers the Routes on the Application Route Manager. * * @param \Slim\App $app * * @return void */ public static function register(App $app) : void; /** * Returns all public route names. * * @return array */ public static function getPublicNames() : array; }
17.1875
61
0.6
394ac5e2dfe3a5a2e60fb574f8be712ace4a49c8
13,942
py
Python
cpmpy/expressions/globalconstraints.py
vishalbelsare/cpmpy
42b1795d268c4e634d49d6d6aa2bb243aea67b0c
[ "Apache-2.0" ]
null
null
null
cpmpy/expressions/globalconstraints.py
vishalbelsare/cpmpy
42b1795d268c4e634d49d6d6aa2bb243aea67b0c
[ "Apache-2.0" ]
null
null
null
cpmpy/expressions/globalconstraints.py
vishalbelsare/cpmpy
42b1795d268c4e634d49d6d6aa2bb243aea67b0c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- ## ## globalconstraints.py ## """ Global constraints conveniently express non-primitive constraints. Using global constraints ------------------------ Solvers can have specialised implementations for global constraints. CPMpy has GlobalConstraint expressions so that they can be passed to the solver as is when supported. If a solver does not support a global constraint (see solvers/) then it will be automatically decomposed by calling its `.decompose()` function. As a user you **should almost never subclass GlobalConstraint()** unless you know of a solver that supports that specific global constraint, and that you will update its solver interface to support it. For all other use cases, it sufficies to write your own helper function that immediately returns the decomposition, e.g.: .. code-block:: python def alldifferent_except0(args): return [ ((var1!= 0) & (var2 != 0)).implies(var1 != var2) for var1, var2 in all_pairs(args)] Numeric global constraints -------------------------- CPMpy also implements __Numeric Global Constraints__. For these, the CPMpy GlobalConstraint does not exactly match what is implemented in the solver, but for good reason!! For example solvers may implement the global constraint `Minimum(iv1, iv2, iv3) == iv4` through an API call `addMinimumEquals([iv1,iv2,iv3], iv4)`. However, CPMpy also wishes to support the expressions `Minimum(iv1, iv2, iv3) > iv4` as well as `iv4 + Minimum(iv1, iv2, iv3)`. Hence, the CPMpy global constraint only captures the `Minimum(iv1, iv2, iv3)` part, whose return type is numeric and can be used in any other CPMpy expression. Only at the time of transforming the CPMpy model to the solver API, will the expressions be decomposed and auxiliary variables introduced as needed such that the solver only receives `Minimum(iv1, iv2, iv3) == ivX` expressions. This is the burden of the CPMpy framework, not of the user who wants to express a problem formulation. Subclassing GlobalConstraint ---------------------------- If you do wish to add a GlobalConstraint, because it is supported by solvers or because you will do advanced analysis and rewriting on it, then preferably define it with a standard decomposition, e.g.: .. code-block:: python class my_global(GlobalConstraint): def __init__(self, args): super().__init__("my_global", args) def decompose(self): return [self.args[0] != self.args[1]] # your decomposition If it is a __numeric global constraint__ meaning that its return type is numeric (see `Minimum` and `Element`) then set `is_bool=False` in the super() constructor and preferably implement `.value()` accordingly. Alternative decompositions -------------------------- For advanced use cases where you want to use another decomposition than the standard decomposition of a GlobalConstraint expression, you can overwrite the 'decompose' function of the class, e.g.: .. code-block:: python def my_circuit_decomp(self): return [self.args[0] == 1] # does not actually enforce circuit circuit.decompose = my_circuit_decomp # attach it, no brackets! vars = intvar(1,9, shape=10) constr = circuit(vars) Model(constr).solve() The above will use 'my_circuit_decomp', if the solver does not natively support 'circuit'. =============== List of classes =============== .. autosummary:: :nosignatures: AllDifferent AllEqual Circuit Table Minimum Maximum Element """ import warnings # for deprecation warning from .core import Expression, Operator from .variables import boolvar, intvar, cpm_array from .utils import flatlist, all_pairs, argval, is_num from ..transformations.flatten_model import get_or_make_var # Base class GlobalConstraint class GlobalConstraint(Expression): """ Abstract superclass of GlobalConstraints Like all expressions it has a `.name` and `.args` property. Overwrites the `.is_bool()` method. You can indicate in the constructer whether it has Boolean return type or not. """ # is_bool: whether this is normal constraint (True or False) # not is_bool: it computes a numeric value (ex: Minimum, Element) def __init__(self, name, arg_list, is_bool=True): super().__init__(name, arg_list) self._is_bool = is_bool def is_bool(self): """ is it a Boolean (return type) Operator? """ return self._is_bool def decompose(self): """ Returns a decomposition into smaller constraints. The decomposition might create auxiliary variables and use other other global constraints as long as it does not create a circular dependency. """ return None def deepcopy(self, memodict={}): copied_args = self._deepcopy_args(memodict) return type(self)(self.name, copied_args, self._is_bool) # Global Constraints (with Boolean return type) def alldifferent(args): warnings.warn("Deprecated, use AllDifferent(v1,v2,...,vn) instead, will be removed in stable version", DeprecationWarning) return AllDifferent(*args) # unfold list as individual arguments class AllDifferent(GlobalConstraint): """All arguments have a different (distinct) value """ def __init__(self, *args): super().__init__("alldifferent", flatlist(args)) def decompose(self): """Returns the decomposition """ return [var1 != var2 for var1, var2 in all_pairs(self.args)] def deepcopy(self, memodict={}): """ Return a deep copy of the Alldifferent global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(memodict) return AllDifferent(*copied_args) def value(self): return all(c.value() for c in self.decompose()) def allequal(args): warnings.warn("Deprecated, use AllEqual(v1,v2,...,vn) instead, will be removed in stable version", DeprecationWarning) return AllEqual(*args) # unfold list as individual arguments class AllEqual(GlobalConstraint): """All arguments have the same value """ def __init__(self, *args): super().__init__("allequal", flatlist(args)) def decompose(self): """Returns the decomposition """ return [var1 == var2 for var1, var2 in all_pairs(self.args)] def deepcopy(self, memdict={}): """ Return a deep copy of the AllEqual global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(memdict) return AllEqual(*copied_args) def value(self): return all(c.value() for c in self.decompose()) def circuit(args): warnings.warn("Deprecated, use Circuit(v1,v2,...,vn) instead, will be removed in stable version", DeprecationWarning) return Circuit(*args) # unfold list as individual arguments class Circuit(GlobalConstraint): """The sequence of variables form a circuit, where x[i] = j means that j is the successor of i. """ def __init__(self, *args): super().__init__("circuit", flatlist(args)) def decompose(self): """ Decomposition for Circuit Not sure where we got it from, MiniZinc has slightly different one: https://github.com/MiniZinc/libminizinc/blob/master/share/minizinc/std/fzn_circuit.mzn """ succ = cpm_array(self.args) n = len(succ) order = intvar(0,n-1, shape=n) return [ # different successors AllDifferent(succ), # different orders AllDifferent(order), # last one is '0' order[n-1] == 0, # loop: first one is successor of '0' order[0] == succ[0], # others: ith one is successor of i-1 ] + [order[i] == succ[order[i-1]] for i in range(1,n)] def deepcopy(self, memdict={}): """ Return a deep copy of the Circuit global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(memdict) return Circuit(*copied_args) # TODO: value() class Table(GlobalConstraint): """The values of the variables in 'array' correspond to a row in 'table' """ def __init__(self, array, table): super().__init__("table", [array, table]) def decompose(self): raise NotImplementedError("TODO: table decomposition") def deepcopy(self, memodict={}): """ Return a deep copy of the Table global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ array, table = self._deepcopy_args(memodict) return Table(array, table) # TODO: value() # Numeric Global Constraints (with integer-valued return type) class Minimum(GlobalConstraint): """ Computes the minimum value of the arguments It is a 'functional' global constraint which implicitly returns a numeric variable """ def __init__(self, arg_list): super().__init__("min", flatlist(arg_list), is_bool=False) def value(self): return min([argval(a) for a in self.args]) def deepcopy(self, memodict={}): """ Return a deep copy of the Minimum global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(self.args) return Minimum(copied_args) class Maximum(GlobalConstraint): """ Computes the maximum value of the arguments It is a 'functional' global constraint which implicitly returns a numeric variable """ def __init__(self, arg_list): super().__init__("max", flatlist(arg_list), is_bool=False) def value(self): return max([argval(a) for a in self.args]) def deepcopy(self, memodict={}): """ Return a deep copy of the Maximum global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(memodict) return Maximum(copied_args) def element(arg_list): warnings.warn("Deprecated, use Circuit(v1,v2,...,vn) instead, will be removed in stable version", DeprecationWarning) assert (len(arg_list) == 2), "Element expression takes 2 arguments: Arr, Idx" return Element(arg_list[0], arg_list[1]) class Element(GlobalConstraint): """ The 'Element' global constraint enforces that the result equals Arr[Idx] with 'Arr' an array of constants of variables (the first argument) and 'Idx' an integer decision variable, representing the index into the array. Solvers implement it as Arr[Idx] == Y, but CPMpy will automatically derive or create an appropriate Y. Hence, you can write expressions like Arr[Idx] + 3 <= Y Element is a CPMpy built-in global constraint, so the class implements a few more extra things for convenience (.value() and .__repr__()). It is also an example of a 'numeric' global constraint. """ def __init__(self, arr, idx): super().__init__("element", [arr, idx], is_bool=False) def value(self): idxval = argval(self.args[1]) if not idxval is None: return argval(self.args[0][idxval]) return None # default def __repr__(self): return "{}[{}]".format(self.args[0], self.args[1]) def deepcopy(self, memodict={}): """ Return a deep copy of the Element global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ arr, idx = self._deepcopy_args(memodict) return Element(arr, idx) class Xor(GlobalConstraint): """ The 'xor' constraint for more then 2 arguments. Acts like cascaded xor operators with two inputs """ def __init__(self, arg_list): # convention for commutative binary operators: # swap if right is constant and left is not if len(arg_list) == 2 and is_num(arg_list[1]): arg_list[0], arg_list[1] = arg_list[1], arg_list[0] i = 0 # length can change while i < len(arg_list): if isinstance(arg_list[i], Xor): # merge args in at this position arg_list[i:i + 1] = arg_list[i].args else: i += 1 super().__init__("xor", arg_list) def decompose(self): if len(self.args) == 2: return (self.args[0] + self.args[1]) == 1 prev_var, cons = get_or_make_var(self.args[0] ^ self.args[1]) for arg in self.args[2:]: prev_var, new_cons = get_or_make_var(prev_var ^ arg) cons += new_cons return cons + [prev_var] def value(self): return sum(argval(a) for a in self.args) % 2 == 1 def __repr__(self): if len(self.args) == 2: return "{} xor {}".format(*self.args) return "xor({})".format(self.args) def deepcopy(self, memodict={}): """ Return a deep copy of the xor global constraint :param: memodict: dictionary with already copied objects, similar to copy.deepcopy() """ copied_args = self._deepcopy_args(memodict) return Xor(copied_args)
35.748718
126
0.64008
36d0690b3cadbcd83922be3d9f613db56b3e5e82
2,092
lua
Lua
engine/libraries/utils.lua
smezzy/SL1CRX
7eaca88d394b2532bd7992fb8d62e0be8fad22ce
[ "MIT" ]
1
2022-01-17T00:41:03.000Z
2022-01-17T00:41:03.000Z
engine/libraries/utils.lua
smezzy/SL1CRX
7eaca88d394b2532bd7992fb8d62e0be8fad22ce
[ "MIT" ]
null
null
null
engine/libraries/utils.lua
smezzy/SL1CRX
7eaca88d394b2532bd7992fb8d62e0be8fad22ce
[ "MIT" ]
null
null
null
function uid() local fn = function(x) local r = love.math.random(16) - 1 r = (x == "x") and (r + 1) or (r % 4) + 9 return ("0123456789abcdef"):sub(r, r) end return (("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"):gsub("[xy]", fn)) end function require_files(files) for _, file in ipairs(files) do local file = file:sub(1, -5) require(file) end end function recursive_enumerate(folder) local file_list = {} local items = love.filesystem.getDirectoryItems(folder) for _, item in ipairs(items) do local file = folder .. '/' .. item if love.filesystem.getInfo(file).type == 'file' then table.insert(file_list, file) elseif love.filesystem.getInfo(file).type == 'directory' then recursive_enumerate(file, file_list) end end return file_list end function random(min, max) if not max then return love.math.random()*min else if min > max then min, max = max, min end return love.math.random()*(max - min) + min end end function print_table(table) if not table then return 'Table is nil' end for k, v in pairs(table) do print(k, v) end end function sqr_distance(x1, y1, x2, y2) local dx = x1 - x2 local dy = y1 - y2 return dx*dx + dy*dy end function distance(x1, y1, x2, y2) local dx = x1 - x2 local dy = y1 - y2 return math.sqrt(dx*dx + dy*dy) end function copy_table(table) local out = {} for k, v in pairs(table) do out[k] = v end return out end function random_dir() return love.math.random() * love.math.random(-1, 1) end function random_dir_int() local rand = love.math.random(1, 51) if rand > 25 then return 1 else return -1 end end function sign(num) return num == 0 and 0 or math.abs(num)/num end function bool_to_int(bool) return bool and 1 or -1 end function randomdir(min, max) return love.math.random() * (max - min) + min end function randomint(min, max) return (love.math.random(1, 2) -1) * (max - min) + min end function lerp(a, b, t) return a * (1-t) + b * t end
22.021053
70
0.630975
eadb9041eafcfdce0e52e5e8448b0a0f4ab3748c
679
sql
SQL
Databse/PasswordKeeper.sql
kckotcherlakota/workindia_passwordkeeper
4168dc8310073588029359d2ede380d435e592ba
[ "Apache-2.0" ]
null
null
null
Databse/PasswordKeeper.sql
kckotcherlakota/workindia_passwordkeeper
4168dc8310073588029359d2ede380d435e592ba
[ "Apache-2.0" ]
null
null
null
Databse/PasswordKeeper.sql
kckotcherlakota/workindia_passwordkeeper
4168dc8310073588029359d2ede380d435e592ba
[ "Apache-2.0" ]
null
null
null
CREATE DATABASE `password_manager`; USE `password_manager`; -- create user table -- DROP TABLE IF EXISTS `User`; CREATE TABLE `User`( `id` INT AUTO_INCREMENT PRIMARY KEY, `username` VARCHAR(20) UNIQUE, `password` VARCHAR(100) NOT NULL); -- create account table -- DROP TABLE IF EXISTS `Account`; CREATE TABLE `Account`( `id` INT AUTO_INCREMENT PRIMARY KEY, `user_id` INT , `website` VARCHAR(100) NOT NULL, `username` VARCHAR(20) NOT NULL, `password` VARBINARY(200) NOT NULL, CONSTRAINT Fk_User FOREIGN KEY (`user_id`) REFERENCES `User`(`id`) ); SELECT * FROM `User`; SELECT * FROM `Account`;
27.16
49
0.63623
bad8f1a093c9f4f8455f0dec0a2d564b1c6e5ef6
2,228
lua
Lua
examples/copas-example.lua
dvv/luamqtt
18335884917aa9e5df0ee1a2febd299443949a8e
[ "MIT" ]
null
null
null
examples/copas-example.lua
dvv/luamqtt
18335884917aa9e5df0ee1a2febd299443949a8e
[ "MIT" ]
null
null
null
examples/copas-example.lua
dvv/luamqtt
18335884917aa9e5df0ee1a2febd299443949a8e
[ "MIT" ]
null
null
null
-- example of using luamqtt inside copas ioloop: http://keplerproject.github.io/copas/index.html local mqtt = require("mqtt") local copas = require("copas") local mqtt_ioloop = require("mqtt.ioloop") local num_pings = 10 -- total number of ping-pongs local timeout = 1 -- timeout between ping-pongs local suffix = tostring(math.random(1000000)) -- mqtt topic suffix to distinct simultaneous rinning of this script -- NOTE: more about flespi tokens: https://flespi.com/kb/tokens-access-keys-to-flespi-platform local token = "stPwSVV73Eqw5LSv0iMXbc4EguS7JyuZR9lxU5uLxI5tiNM8ToTVqNpu85pFtJv9" local ping = mqtt.client{ uri = "mqtt.flespi.io", username = token, clean = true, version = mqtt.v50, } local pong = mqtt.client{ uri = "mqtt.flespi.io", username = token, clean = true, version = mqtt.v50, } ping:on{ connect = function(connack) assert(connack.rc == 0) print("ping connected") for i = 1, num_pings do copas.sleep(timeout) print("ping", i) assert(ping:publish{ topic = "luamqtt/copas-ping/"..suffix, payload = "ping"..i, qos = 1 }) end copas.sleep(timeout) print("ping done") assert(ping:publish{ topic = "luamqtt/copas-ping/"..suffix, payload = "done", qos = 1 }) ping:disconnect() end, error = function(err) print("ping MQTT client error:", err) end, } pong:on{ connect = function(connack) assert(connack.rc == 0) print("pong connected") assert(pong:subscribe{ topic="luamqtt/copas-ping/"..suffix, qos=1, callback=function(suback) assert(suback.rc[1] > 0) print("pong subscribed") end }) end, message = function(msg) print("pong: received", msg.payload) assert(pong:acknowledge(msg)) if msg.payload == "done" then print("pong done") pong:disconnect() end end, error = function(err) print("pong MQTT client error:", err) end, } print("running copas loop...") copas.addthread(function() local ioloop = mqtt_ioloop.create{ sleep = 0.001, sleep_function = copas.sleep } ioloop:add(ping) ioloop:run_until_clients() end) copas.addthread(function() local ioloop = mqtt_ioloop.create{ sleep = 0.001, sleep_function = copas.sleep } ioloop:add(pong) ioloop:run_until_clients() end) copas.loop() print("done, copas loop is stopped")
24.217391
114
0.704219
05928b90a71aef462a8a98f8c609d5a0f68764ec
191
rb
Ruby
app/models/direction.rb
twilliamsark/aiki2
e1d74c8e1c82970bd04951c406647c88daff4a72
[ "MIT" ]
null
null
null
app/models/direction.rb
twilliamsark/aiki2
e1d74c8e1c82970bd04951c406647c88daff4a72
[ "MIT" ]
null
null
null
app/models/direction.rb
twilliamsark/aiki2
e1d74c8e1c82970bd04951c406647c88daff4a72
[ "MIT" ]
null
null
null
class Direction < ActiveRecord::Base include HasVideos include Filterable include SeedFuSerializeable has_many :wazas, inverse_of: :direction has_many :videos, through: :wazas end
21.222222
41
0.78534
62da23d302d2116b46dee4cdfc528aba4471b5e2
2,153
dart
Dart
lib/tools/shared_util.dart
liberalman/wechat
903c828ea6ede26d1aa2bf281e4fbce525bfb6a7
[ "Apache-2.0" ]
1
2020-10-11T01:09:41.000Z
2020-10-11T01:09:41.000Z
lib/tools/shared_util.dart
liberalman/wechat
903c828ea6ede26d1aa2bf281e4fbce525bfb6a7
[ "Apache-2.0" ]
null
null
null
lib/tools/shared_util.dart
liberalman/wechat
903c828ea6ede26d1aa2bf281e4fbce525bfb6a7
[ "Apache-2.0" ]
null
null
null
import '../config/keys.dart'; import '../config/storage_manager.dart'; class SharedUtil { static SharedUtil _instance; //factory SharedUtil() => getInstance(); static SharedUtil getInstance() { if (_instance == null) { _instance = new SharedUtil(); } return _instance; } Future<String> getString(String key) async { if (key == Keys.userId) { return StorageManager.sharedPreferences.getString(key); } String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; return StorageManager.sharedPreferences.getString(key + userId); } // userId must set at first Future saveString(String key, String value) async { if (key == Keys.userId) { await StorageManager.sharedPreferences.setString(key, value); return; } String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; await StorageManager.sharedPreferences.setString(key + userId, value); } Future saveInt(String key, int value) async { String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; await StorageManager.sharedPreferences.setInt(key + userId, value); } Future<List<String>> getStringList(String key) async { String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; return StorageManager.sharedPreferences.getStringList(key + userId); } Future saveStringList(String key, List<String> list) async { String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; await StorageManager.sharedPreferences.setStringList(key + userId, list); } Future saveBoolean(String key, bool value) async { String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; await StorageManager.sharedPreferences.setBool(key + userId, value); } Future<bool> getBoolean(String key) async { String userId = StorageManager.sharedPreferences.getString(Keys.userId) ?? "default"; return StorageManager.sharedPreferences.getBool(key + userId) ?? false; } }
32.621212
77
0.706456
5b7288e60c53d90207778b081a874742d99a3203
76
ps1
PowerShell
PDQ Example Scan Profiles/PDQ Inventory Scan Request Client.ps1
twist3dimages/PowerShell-Scanners
a1d7b11f813356d221c3b85854e64c28625baf86
[ "MIT" ]
null
null
null
PDQ Example Scan Profiles/PDQ Inventory Scan Request Client.ps1
twist3dimages/PowerShell-Scanners
a1d7b11f813356d221c3b85854e64c28625baf86
[ "MIT" ]
null
null
null
PDQ Example Scan Profiles/PDQ Inventory Scan Request Client.ps1
twist3dimages/PowerShell-Scanners
a1d7b11f813356d221c3b85854e64c28625baf86
[ "MIT" ]
null
null
null
Invoke-RestMethod "http://$YourPDQServer:$Port/ScanRequest/$env:COMPUTERNAME
76
76
0.828947
b75db28dcc6b6916fed3f4795f33108cf16c366d
6,005
kt
Kotlin
ok-propertysale-be-app-ktor/src/main/kotlin/ru/otus/otuskotlin/propertysale/be/app/ktor/Application.kt
otuskotlin/otuskotlin-202012-propertysale-ks
ed9a38627e64ed36131280ca7449547ba1d06829
[ "MIT" ]
1
2021-03-15T18:33:08.000Z
2021-03-15T18:33:08.000Z
ok-propertysale-be-app-ktor/src/main/kotlin/ru/otus/otuskotlin/propertysale/be/app/ktor/Application.kt
otuskotlin/otuskotlin-202012-propertysale-ks
ed9a38627e64ed36131280ca7449547ba1d06829
[ "MIT" ]
null
null
null
ok-propertysale-be-app-ktor/src/main/kotlin/ru/otus/otuskotlin/propertysale/be/app/ktor/Application.kt
otuskotlin/otuskotlin-202012-propertysale-ks
ed9a38627e64ed36131280ca7449547ba1d06829
[ "MIT" ]
null
null
null
package ru.otus.otuskotlin.propertysale.be.app.ktor import io.ktor.application.* import io.ktor.http.* import io.ktor.http.content.* import io.ktor.response.* import io.ktor.routing.* import ru.otus.otuskotlin.propertysale.backend.repository.cassandra.flat.FlatRepositoryCassandra import ru.otus.otuskotlin.propertysale.backend.repository.cassandra.house.HouseRepositoryCassandra import ru.otus.otuskotlin.propertysale.backend.repository.cassandra.room.RoomRepositoryCassandra import ru.otus.otuskotlin.propertysale.backend.repository.inmemory.flat.FlatRepoInMemory import ru.otus.otuskotlin.propertysale.backend.repository.inmemory.house.HouseRepoInMemory import ru.otus.otuskotlin.propertysale.backend.repository.inmemory.room.RoomRepoInMemory import ru.otus.otuskotlin.propertysale.be.app.ktor.config.AuthConfig import ru.otus.otuskotlin.propertysale.be.app.ktor.config.CassandraConfig import ru.otus.otuskotlin.propertysale.be.app.ktor.config.featureAuth import ru.otus.otuskotlin.propertysale.be.app.ktor.config.featureRest import ru.otus.otuskotlin.propertysale.be.app.ktor.controllers.flatRouting import ru.otus.otuskotlin.propertysale.be.app.ktor.controllers.houseRouting import ru.otus.otuskotlin.propertysale.be.app.ktor.controllers.rabbitMqEndpoints import ru.otus.otuskotlin.propertysale.be.app.ktor.controllers.roomRouting import ru.otus.otuskotlin.propertysale.be.app.ktor.controllers.websocketEndpoints import ru.otus.otuskotlin.propertysale.be.app.ktor.exceptions.WrongConfigException import ru.otus.otuskotlin.propertysale.be.app.ktor.services.FlatService import ru.otus.otuskotlin.propertysale.be.app.ktor.services.HouseService import ru.otus.otuskotlin.propertysale.be.app.ktor.services.RoomService import ru.otus.otuskotlin.propertysale.be.business.logic.FlatCrud import ru.otus.otuskotlin.propertysale.be.business.logic.HouseCrud import ru.otus.otuskotlin.propertysale.be.business.logic.RoomCrud import ru.otus.otuskotlin.propertysale.be.common.repositories.IFlatRepository import ru.otus.otuskotlin.propertysale.be.common.repositories.IHouseRepository import ru.otus.otuskotlin.propertysale.be.common.repositories.IRoomRepository import kotlin.time.DurationUnit import kotlin.time.ExperimentalTime import kotlin.time.toDuration fun main(args: Array<String>): Unit = io.ktor.server.netty.EngineMain.main(args) @OptIn(ExperimentalTime::class) @Suppress("unused") // Referenced in application.conf fun Application.module( testing: Boolean = false, authOff: Boolean = false, testFlatRepo: IFlatRepository? = null, testHouseRepo: IHouseRepository? = null, testRoomRepo: IRoomRepository? = null, ) { val authConfig by lazy { AuthConfig(environment, authOff) } val cassandraConfig by lazy { CassandraConfig(environment) } featureAuth(authConfig) featureRest() val repoProdName by lazy { environment.config.propertyOrNull("propertysale.repository.prod") ?.getString()?.trim()?.toLowerCase() ?: "cassandra" } val flatRepoProd = when (repoProdName) { "cassandra" -> FlatRepositoryCassandra( keyspaceName = cassandraConfig.keyspace, hosts = cassandraConfig.hosts, port = cassandraConfig.port, user = cassandraConfig.user, pass = cassandraConfig.pass, ) "inmemory" -> FlatRepoInMemory() else -> throw WrongConfigException("Flat repository is not set") } val houseRepoProd = when (repoProdName) { "cassandra" -> HouseRepositoryCassandra( keyspaceName = cassandraConfig.keyspace, hosts = cassandraConfig.hosts, port = cassandraConfig.port, user = cassandraConfig.user, pass = cassandraConfig.pass, ) "inmemory" -> HouseRepoInMemory() else -> throw WrongConfigException("House repository is not set") } val roomRepoProd = when (repoProdName) { "cassandra" -> RoomRepositoryCassandra( keyspaceName = cassandraConfig.keyspace, hosts = cassandraConfig.hosts, port = cassandraConfig.port, user = cassandraConfig.user, pass = cassandraConfig.pass, ) "inmemory" -> RoomRepoInMemory() else -> throw WrongConfigException("Room repository is not set") } val flatRepoTest = testFlatRepo ?: FlatRepoInMemory(ttl = 2.toDuration(DurationUnit.HOURS)) val houseRepoTest = testHouseRepo ?: HouseRepoInMemory(ttl = 2.toDuration(DurationUnit.HOURS)) val roomRepoTest = testRoomRepo ?: RoomRepoInMemory(ttl = 2.toDuration(DurationUnit.HOURS)) val flatCrud = FlatCrud( flatRepoTest = flatRepoTest, flatRepoProd = flatRepoProd, ) val houseCrud = HouseCrud( houseRepoTest = houseRepoTest, houseRepoProd = houseRepoProd, ) val roomCrud = RoomCrud( roomRepoTest = roomRepoTest, roomRepoProd = roomRepoProd, ) val flatService = FlatService(flatCrud) val houseService = HouseService(houseCrud) val roomService = RoomService(roomCrud) // Подключаем Websocket websocketEndpoints( flatService = flatService, houseService = houseService, roomService = roomService, ) // Подключаем RabbitMQ val rabbitMqEndpoint = environment.config.propertyOrNull("propertysale.rabbitmq.endpoint")?.getString() if (rabbitMqEndpoint != null) { rabbitMqEndpoints( rabbitMqEndpoint = rabbitMqEndpoint, flatService = flatService, houseService = houseService, roomService = roomService, ) } routing { get("/") { call.respondText("HELLO WORLD!", contentType = ContentType.Text.Plain) } // Static feature. Try to access `/static/ktor_logo.svg` static("/static") { resources("static") } flatRouting(flatService) houseRouting(houseService) roomRouting(roomService) } }
41.130137
107
0.727227
077800ff059652cb9007cf924ebd9051e7f2eb04
251
css
CSS
src/css/index.css
PROPHESSOR/EduOrg-Module-IDE
b42767dc6d2e97b07711266a1e94d7dcfff64dc5
[ "BSD-3-Clause" ]
null
null
null
src/css/index.css
PROPHESSOR/EduOrg-Module-IDE
b42767dc6d2e97b07711266a1e94d7dcfff64dc5
[ "BSD-3-Clause" ]
null
null
null
src/css/index.css
PROPHESSOR/EduOrg-Module-IDE
b42767dc6d2e97b07711266a1e94d7dcfff64dc5
[ "BSD-3-Clause" ]
null
null
null
@import url("App.css"); @import url("Sidebar.css"); @import url("Topbar.css"); @import url("Icons.css"); @import url("Code.css"); body { margin: 0; padding: 0; font-family: sans-serif; } * { user-select: none; -webkit-user-select: none; }
14.764706
28
0.625498
dc2faa81c63839dc5a71aa646454e892ce83ec83
4,114
tsx
TypeScript
0-notes/my-notes/REACT/REPOS/material-components-web-react-master/packages/select/icon/index.tsx
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
2,120
2018-03-06T20:01:52.000Z
2022-03-25T08:09:43.000Z
0-notes/my-notes/REACT/REPOS/material-components-web-react-master/packages/select/icon/index.tsx
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
1,000
2018-03-07T04:03:22.000Z
2022-03-02T02:29:51.000Z
0-notes/my-notes/REACT/REPOS/material-components-web-react-master/packages/select/icon/index.tsx
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
345
2018-03-29T00:26:03.000Z
2022-03-30T01:15:04.000Z
// The MIT License // // Copyright (c) 2019 Google, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import React from 'react'; import classnames from 'classnames'; import {MDCSelectIconAdapter} from '@material/select/icon/adapter'; import {MDCSelectIconFoundation} from '@material/select/icon/foundation'; export interface SelectIconProps extends React.HTMLProps<HTMLElement> { setIconFoundation?: (foundation?: MDCSelectIconFoundation) => void; tag?: keyof React.ReactHTML; } interface ElementAttributes { tabindex?: number; role?: string; } interface SelectIconState extends ElementAttributes {} export class SelectIcon extends React.Component< SelectIconProps, SelectIconState > { foundation?: MDCSelectIconFoundation; state: SelectIconState = { tabindex: undefined, role: undefined, }; static defaultProps = { tag: 'i', }; componentDidMount() { const {setIconFoundation} = this.props; this.foundation = new MDCSelectIconFoundation(this.adapter); this.foundation.init(); setIconFoundation && setIconFoundation(this.foundation); } componentWillUnmount() { const {setIconFoundation} = this.props; if (this.foundation) { this.foundation.destroy(); setIconFoundation && setIconFoundation(undefined); } } get adapter(): MDCSelectIconAdapter { return { getAttr: (attr: keyof ElementAttributes) => { if (this.state[attr] !== undefined) { return (this.state[ attr ] as ElementAttributes[keyof ElementAttributes])!.toString(); } const reactAttr = attr === 'tabindex' ? 'tabIndex' : attr; if (this.props[reactAttr] !== undefined) { return this.props[reactAttr]!.toString(); } return null; }, setAttr: ( attr: keyof ElementAttributes, value: ElementAttributes[keyof ElementAttributes] ) => { this.setState((prevState) => ({ ...prevState, [attr]: value, })); }, removeAttr: (attr: keyof ElementAttributes) => { this.setState((prevState) => ({...prevState, [attr]: null})); }, setContent: () => { // not implmenting because developer should would never call `setContent()` }, // the adapter methods below are effectively useless since React // handles events and width differently registerInteractionHandler: () => undefined, deregisterInteractionHandler: () => undefined, notifyIconAction: () => undefined, }; } render() { const { tag: Tag, setIconFoundation, // eslint-disable-line @typescript-eslint/no-unused-vars children, className, ...otherProps } = this.props; const {tabindex: tabIndex, role} = this.state; return ( // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892 <Tag className={classnames('mdc-select__icon', className)} role={role} tabIndex={tabIndex} {...otherProps} > {children} </Tag> ); } }
31.891473
83
0.66772
fc7b49f213e482fe3465b9d7c73cb414ea13c5be
471
sql
SQL
db/migrations/postgres/000057_upgrade_command_webhooks_v6.0.up.sql
vicky-demansol/mattermost-server
770f7a8e5ad2694fda349a9c48339594df8f21fe
[ "Apache-2.0" ]
1
2022-03-14T07:07:43.000Z
2022-03-14T07:07:43.000Z
db/migrations/postgres/000057_upgrade_command_webhooks_v6.0.up.sql
vicky-demansol/mattermost-server
770f7a8e5ad2694fda349a9c48339594df8f21fe
[ "Apache-2.0" ]
2
2022-02-13T03:34:57.000Z
2022-03-01T03:39:21.000Z
db/migrations/postgres/000057_upgrade_command_webhooks_v6.0.up.sql
vicky-demansol/mattermost-server
770f7a8e5ad2694fda349a9c48339594df8f21fe
[ "Apache-2.0" ]
1
2022-01-02T00:37:14.000Z
2022-01-02T00:37:14.000Z
DO $$ <<migrate_root_id_command_webhooks>> DECLARE parentid_exist boolean := false; BEGIN SELECT count(*) != 0 INTO parentid_exist FROM information_schema.columns WHERE table_name = 'commandwebhooks' AND column_name = 'parentid'; IF parentid_exist THEN UPDATE commandwebhooks SET rootid = parentid WHERE rootid = '' AND rootid != parentid; END IF; END migrate_root_id_command_webhooks $$; ALTER TABLE commandwebhooks DROP COLUMN IF EXISTS parentid;
29.4375
90
0.764331
dffa1a77dff363991ba67978413383a89d7c4651
87,986
sql
SQL
sql/avril_20200916.sql
ykyh-arch/Avril-Lavigne
c1d500011bd022db82f93b3202e11a171dddf412
[ "MIT" ]
null
null
null
sql/avril_20200916.sql
ykyh-arch/Avril-Lavigne
c1d500011bd022db82f93b3202e11a171dddf412
[ "MIT" ]
null
null
null
sql/avril_20200916.sql
ykyh-arch/Avril-Lavigne
c1d500011bd022db82f93b3202e11a171dddf412
[ "MIT" ]
null
null
null
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 80021 Source Host : 127.0.0.1:3306 Source Database : ry Target Server Type : MYSQL Target Server Version : 80021 File Encoding : 65001 Date: 2020-09-16 16:25:28 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `gen_table` -- ---------------------------- DROP TABLE IF EXISTS `gen_table`; CREATE TABLE `gen_table` ( `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号', `table_name` varchar(200) DEFAULT '' COMMENT '表名称', `table_comment` varchar(500) DEFAULT '' COMMENT '表描述', `sub_table_name` varchar(64) DEFAULT NULL COMMENT '关联子表的表名', `sub_table_fk_name` varchar(64) DEFAULT NULL COMMENT '子表关联的外键名', `class_name` varchar(100) DEFAULT '' COMMENT '实体类名称', `tpl_category` varchar(200) DEFAULT 'crud' COMMENT '使用的模板(crud单表操作 tree树表操作 sub主子表操作)', `package_name` varchar(100) DEFAULT NULL COMMENT '生成包路径', `module_name` varchar(30) DEFAULT NULL COMMENT '生成模块名', `business_name` varchar(30) DEFAULT NULL COMMENT '生成业务名', `function_name` varchar(50) DEFAULT NULL COMMENT '生成功能名', `function_author` varchar(50) DEFAULT NULL COMMENT '生成功能作者', `gen_type` char(1) DEFAULT '0' COMMENT '生成代码方式(0zip压缩包 1自定义路径)', `gen_path` varchar(200) DEFAULT '/' COMMENT '生成路径(不填默认项目路径)', `options` varchar(1000) DEFAULT NULL COMMENT '其它生成选项', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`table_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成业务表'; -- ---------------------------- -- Records of gen_table -- ---------------------------- -- ---------------------------- -- Table structure for `gen_table_column` -- ---------------------------- DROP TABLE IF EXISTS `gen_table_column`; CREATE TABLE `gen_table_column` ( `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号', `table_id` varchar(64) DEFAULT NULL COMMENT '归属表编号', `column_name` varchar(200) DEFAULT NULL COMMENT '列名称', `column_comment` varchar(500) DEFAULT NULL COMMENT '列描述', `column_type` varchar(100) DEFAULT NULL COMMENT '列类型', `java_type` varchar(500) DEFAULT NULL COMMENT 'JAVA类型', `java_field` varchar(200) DEFAULT NULL COMMENT 'JAVA字段名', `is_pk` char(1) DEFAULT NULL COMMENT '是否主键(1是)', `is_increment` char(1) DEFAULT NULL COMMENT '是否自增(1是)', `is_required` char(1) DEFAULT NULL COMMENT '是否必填(1是)', `is_insert` char(1) DEFAULT NULL COMMENT '是否为插入字段(1是)', `is_edit` char(1) DEFAULT NULL COMMENT '是否编辑字段(1是)', `is_list` char(1) DEFAULT NULL COMMENT '是否列表字段(1是)', `is_query` char(1) DEFAULT NULL COMMENT '是否查询字段(1是)', `query_type` varchar(200) DEFAULT 'EQ' COMMENT '查询方式(等于、不等于、大于、小于、范围)', `html_type` varchar(200) DEFAULT NULL COMMENT '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)', `dict_type` varchar(200) DEFAULT '' COMMENT '字典类型', `sort` int DEFAULT NULL COMMENT '排序', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`column_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='代码生成业务表字段'; -- ---------------------------- -- Records of gen_table_column -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_blob_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_blob_triggers`; CREATE TABLE `qrtz_blob_triggers` ( `sched_name` varchar(120) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `blob_data` blob, PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_blob_triggers -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_calendars` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_calendars`; CREATE TABLE `qrtz_calendars` ( `sched_name` varchar(120) NOT NULL, `calendar_name` varchar(200) NOT NULL, `calendar` blob NOT NULL, PRIMARY KEY (`sched_name`,`calendar_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_calendars -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_cron_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_cron_triggers`; CREATE TABLE `qrtz_cron_triggers` ( `sched_name` varchar(120) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `cron_expression` varchar(200) NOT NULL, `time_zone_id` varchar(80) DEFAULT NULL, PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_cron_triggers -- ---------------------------- INSERT INTO `qrtz_cron_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', '0/10 * * * * ?', 'Asia/Shanghai'); INSERT INTO `qrtz_cron_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', '0/15 * * * * ?', 'Asia/Shanghai'); INSERT INTO `qrtz_cron_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', '0/20 * * * * ?', 'Asia/Shanghai'); INSERT INTO `qrtz_cron_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', '0/10 * * * * ?', 'Asia/Shanghai'); INSERT INTO `qrtz_cron_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', '0/15 * * * * ?', 'Asia/Shanghai'); INSERT INTO `qrtz_cron_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', '0/20 * * * * ?', 'Asia/Shanghai'); -- ---------------------------- -- Table structure for `qrtz_fired_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_fired_triggers`; CREATE TABLE `qrtz_fired_triggers` ( `sched_name` varchar(120) NOT NULL, `entry_id` varchar(95) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `instance_name` varchar(200) NOT NULL, `fired_time` bigint NOT NULL, `sched_time` bigint NOT NULL, `priority` int NOT NULL, `state` varchar(16) NOT NULL, `job_name` varchar(200) DEFAULT NULL, `job_group` varchar(200) DEFAULT NULL, `is_nonconcurrent` varchar(1) DEFAULT NULL, `requests_recovery` varchar(1) DEFAULT NULL, PRIMARY KEY (`sched_name`,`entry_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_fired_triggers -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_job_details` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_job_details`; CREATE TABLE `qrtz_job_details` ( `sched_name` varchar(120) NOT NULL, `job_name` varchar(200) NOT NULL, `job_group` varchar(200) NOT NULL, `description` varchar(250) DEFAULT NULL, `job_class_name` varchar(250) NOT NULL, `is_durable` varchar(1) NOT NULL, `is_nonconcurrent` varchar(1) NOT NULL, `is_update_data` varchar(1) NOT NULL, `requests_recovery` varchar(1) NOT NULL, `job_data` blob, PRIMARY KEY (`sched_name`,`job_name`,`job_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_job_details -- ---------------------------- INSERT INTO `qrtz_job_details` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3130202A202A202A202A203F74001172795461736B2E72794E6F506172616D7374000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000001740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E697A0E58F82EFBC8974000133740001317800); INSERT INTO `qrtz_job_details` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3135202A202A202A202A203F74001572795461736B2E7279506172616D7328277279272974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000002740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E69C89E58F82EFBC8974000133740001317800); INSERT INTO `qrtz_job_details` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3230202A202A202A202A203F74003872795461736B2E72794D756C7469706C65506172616D7328277279272C20747275652C20323030304C2C203331362E3530442C203130302974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000003740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E5A49AE58F82EFBC8974000133740001317800); INSERT INTO `qrtz_job_details` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3130202A202A202A202A203F74001172795461736B2E72794E6F506172616D7374000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000001740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E697A0E58F82EFBC8974000133740001317800); INSERT INTO `qrtz_job_details` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3135202A202A202A202A203F74001572795461736B2E7279506172616D7328277279272974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000002740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E69C89E58F82EFBC8974000133740001317800); INSERT INTO `qrtz_job_details` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', null, 'com.avril.project.monitor.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720028636F6D2E617672696C2E70726F6A6563742E6D6F6E69746F722E6A6F622E646F6D61696E2E4A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E617672696C2E6672616D65776F726B2E7765622E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001622CDE29E078707400007070707400013174000E302F3230202A202A202A202A203F74003872795461736B2E72794D756C7469706C65506172616D7328277279272C20747275652C20323030304C2C203331362E3530442C203130302974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000003740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E5A49AE58F82EFBC8974000133740001317800); -- ---------------------------- -- Table structure for `qrtz_locks` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_locks`; CREATE TABLE `qrtz_locks` ( `sched_name` varchar(120) NOT NULL, `lock_name` varchar(40) NOT NULL, PRIMARY KEY (`sched_name`,`lock_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_locks -- ---------------------------- INSERT INTO `qrtz_locks` VALUES ('AvrilScheduler', 'STATE_ACCESS'); INSERT INTO `qrtz_locks` VALUES ('AvrilScheduler', 'TRIGGER_ACCESS'); INSERT INTO `qrtz_locks` VALUES ('RuoyiScheduler', 'STATE_ACCESS'); INSERT INTO `qrtz_locks` VALUES ('RuoyiScheduler', 'TRIGGER_ACCESS'); -- ---------------------------- -- Table structure for `qrtz_paused_trigger_grps` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`; CREATE TABLE `qrtz_paused_trigger_grps` ( `sched_name` varchar(120) NOT NULL, `trigger_group` varchar(200) NOT NULL, PRIMARY KEY (`sched_name`,`trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_paused_trigger_grps -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_scheduler_state` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_scheduler_state`; CREATE TABLE `qrtz_scheduler_state` ( `sched_name` varchar(120) NOT NULL, `instance_name` varchar(200) NOT NULL, `last_checkin_time` bigint NOT NULL, `checkin_interval` bigint NOT NULL, PRIMARY KEY (`sched_name`,`instance_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_scheduler_state -- ---------------------------- INSERT INTO `qrtz_scheduler_state` VALUES ('AvrilScheduler', 'DESKTOP-CCVQBHI1600242354003', '1600244730947', '15000'); INSERT INTO `qrtz_scheduler_state` VALUES ('RuoyiScheduler', 'DESKTOP-CCVQBHI1600222428328', '1600222447790', '15000'); -- ---------------------------- -- Table structure for `qrtz_simple_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_simple_triggers`; CREATE TABLE `qrtz_simple_triggers` ( `sched_name` varchar(120) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `repeat_count` bigint NOT NULL, `repeat_interval` bigint NOT NULL, `times_triggered` bigint NOT NULL, PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_simple_triggers -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_simprop_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_simprop_triggers`; CREATE TABLE `qrtz_simprop_triggers` ( `sched_name` varchar(120) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `str_prop_1` varchar(512) DEFAULT NULL, `str_prop_2` varchar(512) DEFAULT NULL, `str_prop_3` varchar(512) DEFAULT NULL, `int_prop_1` int DEFAULT NULL, `int_prop_2` int DEFAULT NULL, `long_prop_1` bigint DEFAULT NULL, `long_prop_2` bigint DEFAULT NULL, `dec_prop_1` decimal(13,4) DEFAULT NULL, `dec_prop_2` decimal(13,4) DEFAULT NULL, `bool_prop_1` varchar(1) DEFAULT NULL, `bool_prop_2` varchar(1) DEFAULT NULL, PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_simprop_triggers -- ---------------------------- -- ---------------------------- -- Table structure for `qrtz_triggers` -- ---------------------------- DROP TABLE IF EXISTS `qrtz_triggers`; CREATE TABLE `qrtz_triggers` ( `sched_name` varchar(120) NOT NULL, `trigger_name` varchar(200) NOT NULL, `trigger_group` varchar(200) NOT NULL, `job_name` varchar(200) NOT NULL, `job_group` varchar(200) NOT NULL, `description` varchar(250) DEFAULT NULL, `next_fire_time` bigint DEFAULT NULL, `prev_fire_time` bigint DEFAULT NULL, `priority` int DEFAULT NULL, `trigger_state` varchar(16) NOT NULL, `trigger_type` varchar(8) NOT NULL, `start_time` bigint NOT NULL, `end_time` bigint DEFAULT NULL, `calendar_name` varchar(200) DEFAULT NULL, `misfire_instr` smallint DEFAULT NULL, `job_data` blob, PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`), KEY `sched_name` (`sched_name`,`job_name`,`job_group`), CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of qrtz_triggers -- ---------------------------- INSERT INTO `qrtz_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', 'TASK_CLASS_NAME1', 'DEFAULT', null, '1600242360000', '-1', '5', 'PAUSED', 'CRON', '1600242354000', '0', null, '2', ''); INSERT INTO `qrtz_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', 'TASK_CLASS_NAME2', 'DEFAULT', null, '1600242360000', '-1', '5', 'PAUSED', 'CRON', '1600242355000', '0', null, '2', ''); INSERT INTO `qrtz_triggers` VALUES ('AvrilScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', 'TASK_CLASS_NAME3', 'DEFAULT', null, '1600242360000', '-1', '5', 'PAUSED', 'CRON', '1600242355000', '0', null, '2', ''); INSERT INTO `qrtz_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', 'TASK_CLASS_NAME1', 'DEFAULT', null, '1600222430000', '-1', '5', 'PAUSED', 'CRON', '1600222428000', '0', null, '2', ''); INSERT INTO `qrtz_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', 'TASK_CLASS_NAME2', 'DEFAULT', null, '1600222440000', '-1', '5', 'PAUSED', 'CRON', '1600222429000', '0', null, '2', ''); INSERT INTO `qrtz_triggers` VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', 'TASK_CLASS_NAME3', 'DEFAULT', null, '1600222440000', '-1', '5', 'PAUSED', 'CRON', '1600222429000', '0', null, '2', ''); -- ---------------------------- -- Table structure for `sys_config` -- ---------------------------- DROP TABLE IF EXISTS `sys_config`; CREATE TABLE `sys_config` ( `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键', `config_name` varchar(100) DEFAULT '' COMMENT '参数名称', `config_key` varchar(100) DEFAULT '' COMMENT '参数键名', `config_value` varchar(500) DEFAULT '' COMMENT '参数键值', `config_type` char(1) DEFAULT 'N' COMMENT '系统内置(Y是 N否)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`config_id`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='参数配置表'; -- ---------------------------- -- Records of sys_config -- ---------------------------- INSERT INTO `sys_config` VALUES ('1', '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'); INSERT INTO `sys_config` VALUES ('2', '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '初始化密码 123456'); INSERT INTO `sys_config` VALUES ('3', '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '深黑主题theme-dark,浅色主题theme-light,深蓝主题theme-blue'); INSERT INTO `sys_config` VALUES ('4', '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '是否开启注册用户功能(true开启,false关闭)'); INSERT INTO `sys_config` VALUES ('5', '用户管理-密码字符范围', 'sys.account.chrtype', '0', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '默认任意字符范围,0任意(密码可以输入任意字符),1数字(密码只能为0-9数字),2英文字母(密码只能为a-z和A-Z字母),3字母和数字(密码必须包含字母,数字),4字母数组和特殊字符(密码必须包含字母,数字,特殊字符-_)'); INSERT INTO `sys_config` VALUES ('6', '主框架页-菜单导航显示风格', 'sys.index.menuStyle', 'default', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '菜单导航显示风格(default为左侧导航菜单,topnav为顶部导航菜单)'); INSERT INTO `sys_config` VALUES ('7', '主框架页-是否开启页脚', 'sys.index.ignoreFooter', 'true', 'Y', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '是否开启底部页脚显示(true显示,false隐藏)'); -- ---------------------------- -- Table structure for `sys_dept` -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id', `parent_id` bigint DEFAULT '0' COMMENT '父部门id', `ancestors` varchar(50) DEFAULT '' COMMENT '祖级列表', `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称', `order_num` int DEFAULT '0' COMMENT '显示顺序', `leader` varchar(20) DEFAULT NULL COMMENT '负责人', `phone` varchar(11) DEFAULT NULL COMMENT '联系电话', `email` varchar(50) DEFAULT NULL COMMENT '邮箱', `status` char(1) DEFAULT '0' COMMENT '部门状态(0正常 1停用)', `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`dept_id`) ) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='部门表'; -- ---------------------------- -- Records of sys_dept -- ---------------------------- INSERT INTO `sys_dept` VALUES ('100', '0', '0', '王者荣耀', '0', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2020-09-16 10:58:32'); INSERT INTO `sys_dept` VALUES ('101', '100', '0,100', '深圳总公司', '1', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('102', '100', '0,100', '长沙分公司', '2', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('103', '101', '0,100,101', '研发部门', '1', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('104', '101', '0,100,101', '市场部门', '2', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('105', '101', '0,100,101', '测试部门', '3', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('106', '101', '0,100,101', '财务部门', '4', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('107', '101', '0,100,101', '运维部门', '5', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('108', '102', '0,100,102', '市场部门', '1', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); INSERT INTO `sys_dept` VALUES ('109', '102', '0,100,102', '财务部门', '2', '若依', '15888888888', '[email protected]', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00'); -- ---------------------------- -- Table structure for `sys_dict_data` -- ---------------------------- DROP TABLE IF EXISTS `sys_dict_data`; CREATE TABLE `sys_dict_data` ( `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码', `dict_sort` int DEFAULT '0' COMMENT '字典排序', `dict_label` varchar(100) DEFAULT '' COMMENT '字典标签', `dict_value` varchar(100) DEFAULT '' COMMENT '字典键值', `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型', `css_class` varchar(100) DEFAULT NULL COMMENT '样式属性(其他样式扩展)', `list_class` varchar(100) DEFAULT NULL COMMENT '表格回显样式', `is_default` char(1) DEFAULT 'N' COMMENT '是否默认(Y是 N否)', `status` char(1) DEFAULT '0' COMMENT '状态(0正常 1停用)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`dict_code`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典数据表'; -- ---------------------------- -- Records of sys_dict_data -- ---------------------------- INSERT INTO `sys_dict_data` VALUES ('1', '1', '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别男'); INSERT INTO `sys_dict_data` VALUES ('2', '2', '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别女'); INSERT INTO `sys_dict_data` VALUES ('3', '3', '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '性别未知'); INSERT INTO `sys_dict_data` VALUES ('4', '1', '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '显示菜单'); INSERT INTO `sys_dict_data` VALUES ('5', '2', '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '隐藏菜单'); INSERT INTO `sys_dict_data` VALUES ('6', '1', '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态'); INSERT INTO `sys_dict_data` VALUES ('7', '2', '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态'); INSERT INTO `sys_dict_data` VALUES ('8', '1', '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态'); INSERT INTO `sys_dict_data` VALUES ('9', '2', '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态'); INSERT INTO `sys_dict_data` VALUES ('10', '1', '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '默认分组'); INSERT INTO `sys_dict_data` VALUES ('11', '2', '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统分组'); INSERT INTO `sys_dict_data` VALUES ('12', '1', '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统默认是'); INSERT INTO `sys_dict_data` VALUES ('13', '2', '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统默认否'); INSERT INTO `sys_dict_data` VALUES ('14', '1', '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知'); INSERT INTO `sys_dict_data` VALUES ('15', '2', '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '公告'); INSERT INTO `sys_dict_data` VALUES ('16', '1', '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态'); INSERT INTO `sys_dict_data` VALUES ('17', '2', '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '关闭状态'); INSERT INTO `sys_dict_data` VALUES ('18', '99', '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '其他操作'); INSERT INTO `sys_dict_data` VALUES ('19', '1', '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '新增操作'); INSERT INTO `sys_dict_data` VALUES ('20', '2', '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '修改操作'); INSERT INTO `sys_dict_data` VALUES ('21', '3', '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '删除操作'); INSERT INTO `sys_dict_data` VALUES ('22', '4', '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '授权操作'); INSERT INTO `sys_dict_data` VALUES ('23', '5', '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '导出操作'); INSERT INTO `sys_dict_data` VALUES ('24', '6', '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '导入操作'); INSERT INTO `sys_dict_data` VALUES ('25', '7', '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '强退操作'); INSERT INTO `sys_dict_data` VALUES ('26', '8', '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '生成操作'); INSERT INTO `sys_dict_data` VALUES ('27', '9', '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '清空操作'); INSERT INTO `sys_dict_data` VALUES ('28', '1', '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '正常状态'); INSERT INTO `sys_dict_data` VALUES ('29', '2', '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '停用状态'); -- ---------------------------- -- Table structure for `sys_dict_type` -- ---------------------------- DROP TABLE IF EXISTS `sys_dict_type`; CREATE TABLE `sys_dict_type` ( `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键', `dict_name` varchar(100) DEFAULT '' COMMENT '字典名称', `dict_type` varchar(100) DEFAULT '' COMMENT '字典类型', `status` char(1) DEFAULT '0' COMMENT '状态(0正常 1停用)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`dict_id`), UNIQUE KEY `dict_type` (`dict_type`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='字典类型表'; -- ---------------------------- -- Records of sys_dict_type -- ---------------------------- INSERT INTO `sys_dict_type` VALUES ('1', '用户性别', 'sys_user_sex', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '用户性别列表'); INSERT INTO `sys_dict_type` VALUES ('2', '菜单状态', 'sys_show_hide', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '菜单状态列表'); INSERT INTO `sys_dict_type` VALUES ('3', '系统开关', 'sys_normal_disable', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统开关列表'); INSERT INTO `sys_dict_type` VALUES ('4', '任务状态', 'sys_job_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '任务状态列表'); INSERT INTO `sys_dict_type` VALUES ('5', '任务分组', 'sys_job_group', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '任务分组列表'); INSERT INTO `sys_dict_type` VALUES ('6', '系统是否', 'sys_yes_no', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统是否列表'); INSERT INTO `sys_dict_type` VALUES ('7', '通知类型', 'sys_notice_type', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知类型列表'); INSERT INTO `sys_dict_type` VALUES ('8', '通知状态', 'sys_notice_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知状态列表'); INSERT INTO `sys_dict_type` VALUES ('9', '操作类型', 'sys_oper_type', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '操作类型列表'); INSERT INTO `sys_dict_type` VALUES ('10', '系统状态', 'sys_common_status', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '登录状态列表'); -- ---------------------------- -- Table structure for `sys_job` -- ---------------------------- DROP TABLE IF EXISTS `sys_job`; CREATE TABLE `sys_job` ( `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID', `job_name` varchar(64) NOT NULL DEFAULT '' COMMENT '任务名称', `job_group` varchar(64) NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名', `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串', `cron_expression` varchar(255) DEFAULT '' COMMENT 'cron执行表达式', `misfire_policy` varchar(20) DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)', `concurrent` char(1) DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)', `status` char(1) DEFAULT '0' COMMENT '状态(0正常 1暂停)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT '' COMMENT '备注信息', PRIMARY KEY (`job_id`,`job_name`,`job_group`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务调度表'; -- ---------------------------- -- Records of sys_job -- ---------------------------- INSERT INTO `sys_job` VALUES ('1', '系统默认(无参)', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_job` VALUES ('2', '系统默认(有参)', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_job` VALUES ('3', '系统默认(多参)', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); -- ---------------------------- -- Table structure for `sys_job_log` -- ---------------------------- DROP TABLE IF EXISTS `sys_job_log`; CREATE TABLE `sys_job_log` ( `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID', `job_name` varchar(64) NOT NULL COMMENT '任务名称', `job_group` varchar(64) NOT NULL COMMENT '任务组名', `invoke_target` varchar(500) NOT NULL COMMENT '调用目标字符串', `job_message` varchar(500) DEFAULT NULL COMMENT '日志信息', `status` char(1) DEFAULT '0' COMMENT '执行状态(0正常 1失败)', `exception_info` varchar(2000) DEFAULT '' COMMENT '异常信息', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`job_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='定时任务调度日志表'; -- ---------------------------- -- Records of sys_job_log -- ---------------------------- -- ---------------------------- -- Table structure for `sys_logininfor` -- ---------------------------- DROP TABLE IF EXISTS `sys_logininfor`; CREATE TABLE `sys_logininfor` ( `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID', `login_name` varchar(50) DEFAULT '' COMMENT '登录账号', `ipaddr` varchar(50) DEFAULT '' COMMENT '登录IP地址', `login_location` varchar(255) DEFAULT '' COMMENT '登录地点', `browser` varchar(50) DEFAULT '' COMMENT '浏览器类型', `os` varchar(50) DEFAULT '' COMMENT '操作系统', `status` char(1) DEFAULT '0' COMMENT '登录状态(0成功 1失败)', `msg` varchar(255) DEFAULT '' COMMENT '提示消息', `login_time` datetime DEFAULT NULL COMMENT '访问时间', PRIMARY KEY (`info_id`) ) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统访问记录'; -- ---------------------------- -- Records of sys_logininfor -- ---------------------------- INSERT INTO `sys_logininfor` VALUES ('100', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-15 15:37:50'); INSERT INTO `sys_logininfor` VALUES ('101', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-15 16:36:20'); INSERT INTO `sys_logininfor` VALUES ('102', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 09:10:34'); INSERT INTO `sys_logininfor` VALUES ('103', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 09:11:14'); INSERT INTO `sys_logininfor` VALUES ('104', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 09:43:11'); INSERT INTO `sys_logininfor` VALUES ('105', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 09:43:41'); INSERT INTO `sys_logininfor` VALUES ('106', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:19'); INSERT INTO `sys_logininfor` VALUES ('107', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:21'); INSERT INTO `sys_logininfor` VALUES ('108', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:22'); INSERT INTO `sys_logininfor` VALUES ('109', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:23'); INSERT INTO `sys_logininfor` VALUES ('110', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:23'); INSERT INTO `sys_logininfor` VALUES ('111', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '1', '验证码错误', '2020-09-16 09:48:24'); INSERT INTO `sys_logininfor` VALUES ('112', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 09:55:35'); INSERT INTO `sys_logininfor` VALUES ('113', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 09:55:38'); INSERT INTO `sys_logininfor` VALUES ('114', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 09:56:13'); INSERT INTO `sys_logininfor` VALUES ('115', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 09:56:17'); INSERT INTO `sys_logininfor` VALUES ('116', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 09:56:25'); INSERT INTO `sys_logininfor` VALUES ('117', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 09:56:51'); INSERT INTO `sys_logininfor` VALUES ('118', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:02:40'); INSERT INTO `sys_logininfor` VALUES ('119', 'admin', '192.168.1.11', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:05:46'); INSERT INTO `sys_logininfor` VALUES ('120', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 10:06:23'); INSERT INTO `sys_logininfor` VALUES ('121', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:11:14'); INSERT INTO `sys_logininfor` VALUES ('122', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 10:14:02'); INSERT INTO `sys_logininfor` VALUES ('123', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:17:13'); INSERT INTO `sys_logininfor` VALUES ('124', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 10:23:28'); INSERT INTO `sys_logininfor` VALUES ('125', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:24:50'); INSERT INTO `sys_logininfor` VALUES ('126', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 10:56:53'); INSERT INTO `sys_logininfor` VALUES ('127', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 10:56:54'); INSERT INTO `sys_logininfor` VALUES ('128', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 12:43:16'); INSERT INTO `sys_logininfor` VALUES ('129', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 13:34:16'); INSERT INTO `sys_logininfor` VALUES ('130', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 15:11:19'); INSERT INTO `sys_logininfor` VALUES ('131', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 15:40:02'); INSERT INTO `sys_logininfor` VALUES ('132', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 15:46:09'); INSERT INTO `sys_logininfor` VALUES ('133', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '退出成功', '2020-09-16 16:13:34'); INSERT INTO `sys_logininfor` VALUES ('134', 'admin', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', '0', '登录成功', '2020-09-16 16:13:36'); -- ---------------------------- -- Table structure for `sys_menu` -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID', `menu_name` varchar(50) NOT NULL COMMENT '菜单名称', `parent_id` bigint DEFAULT '0' COMMENT '父菜单ID', `order_num` int DEFAULT '0' COMMENT '显示顺序', `url` varchar(200) DEFAULT '#' COMMENT '请求地址', `target` varchar(20) DEFAULT '' COMMENT '打开方式(menuItem页签 menuBlank新窗口)', `menu_type` char(1) DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)', `visible` char(1) DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)', `perms` varchar(100) DEFAULT NULL COMMENT '权限标识', `icon` varchar(100) DEFAULT '#' COMMENT '菜单图标', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT '' COMMENT '备注', PRIMARY KEY (`menu_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='菜单权限表'; -- ---------------------------- -- Records of sys_menu -- ---------------------------- INSERT INTO `sys_menu` VALUES ('1', '系统管理', '0', '1', '#', '', 'M', '0', '', 'fa fa-gear', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统管理目录'); INSERT INTO `sys_menu` VALUES ('2', '系统监控', '0', '2', '#', '', 'M', '0', '', 'fa fa-video-camera', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统监控目录'); INSERT INTO `sys_menu` VALUES ('3', '系统工具', '0', '3', '#', '', 'M', '0', '', 'fa fa-bars', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统工具目录'); INSERT INTO `sys_menu` VALUES ('100', '用户管理', '1', '1', '/system/user', '', 'C', '0', 'system:user:view', 'fa fa-user-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '用户管理菜单'); INSERT INTO `sys_menu` VALUES ('101', '角色管理', '1', '2', '/system/role', '', 'C', '0', 'system:role:view', 'fa fa-user-secret', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '角色管理菜单'); INSERT INTO `sys_menu` VALUES ('102', '菜单管理', '1', '3', '/system/menu', '', 'C', '0', 'system:menu:view', 'fa fa-th-list', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '菜单管理菜单'); INSERT INTO `sys_menu` VALUES ('103', '部门管理', '1', '4', '/system/dept', '', 'C', '0', 'system:dept:view', 'fa fa-outdent', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '部门管理菜单'); INSERT INTO `sys_menu` VALUES ('104', '岗位管理', '1', '5', '/system/post', '', 'C', '0', 'system:post:view', 'fa fa-address-card-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '岗位管理菜单'); INSERT INTO `sys_menu` VALUES ('105', '字典管理', '1', '6', '/system/dict', '', 'C', '0', 'system:dict:view', 'fa fa-bookmark-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '字典管理菜单'); INSERT INTO `sys_menu` VALUES ('106', '参数设置', '1', '7', '/system/config', '', 'C', '0', 'system:config:view', 'fa fa-sun-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '参数设置菜单'); INSERT INTO `sys_menu` VALUES ('107', '通知公告', '1', '8', '/system/notice', '', 'C', '0', 'system:notice:view', 'fa fa-bullhorn', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '通知公告菜单'); INSERT INTO `sys_menu` VALUES ('108', '日志管理', '1', '9', '#', '', 'M', '0', '', 'fa fa-pencil-square-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '日志管理菜单'); INSERT INTO `sys_menu` VALUES ('109', '在线用户', '2', '1', '/monitor/online', '', 'C', '0', 'monitor:online:view', 'fa fa-user-circle', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '在线用户菜单'); INSERT INTO `sys_menu` VALUES ('110', '定时任务', '2', '2', '/monitor/job', '', 'C', '0', 'monitor:job:view', 'fa fa-tasks', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '定时任务菜单'); INSERT INTO `sys_menu` VALUES ('111', '数据监控', '2', '3', '/monitor/data', '', 'C', '0', 'monitor:data:view', 'fa fa-bug', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '数据监控菜单'); INSERT INTO `sys_menu` VALUES ('112', '服务监控', '2', '3', '/monitor/server', '', 'C', '0', 'monitor:server:view', 'fa fa-server', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '服务监控菜单'); INSERT INTO `sys_menu` VALUES ('113', '表单构建', '3', '1', '/tool/build', '', 'C', '0', 'tool:build:view', 'fa fa-wpforms', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '表单构建菜单'); INSERT INTO `sys_menu` VALUES ('114', '代码生成', '3', '2', '/tool/gen', '', 'C', '0', 'tool:gen:view', 'fa fa-code', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '代码生成菜单'); INSERT INTO `sys_menu` VALUES ('115', '系统接口', '3', '3', '/tool/swagger', '', 'C', '0', 'tool:swagger:view', 'fa fa-gg', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '系统接口菜单'); INSERT INTO `sys_menu` VALUES ('500', '操作日志', '108', '1', '/monitor/operlog', '', 'C', '0', 'monitor:operlog:view', 'fa fa-address-book', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '操作日志菜单'); INSERT INTO `sys_menu` VALUES ('501', '登录日志', '108', '2', '/monitor/logininfor', '', 'C', '0', 'monitor:logininfor:view', 'fa fa-file-image-o', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '登录日志菜单'); INSERT INTO `sys_menu` VALUES ('1000', '用户查询', '100', '1', '#', '', 'F', '0', 'system:user:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1001', '用户新增', '100', '2', '#', '', 'F', '0', 'system:user:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1002', '用户修改', '100', '3', '#', '', 'F', '0', 'system:user:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1003', '用户删除', '100', '4', '#', '', 'F', '0', 'system:user:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1004', '用户导出', '100', '5', '#', '', 'F', '0', 'system:user:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1005', '用户导入', '100', '6', '#', '', 'F', '0', 'system:user:import', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1006', '重置密码', '100', '7', '#', '', 'F', '0', 'system:user:resetPwd', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1007', '角色查询', '101', '1', '#', '', 'F', '0', 'system:role:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1008', '角色新增', '101', '2', '#', '', 'F', '0', 'system:role:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1009', '角色修改', '101', '3', '#', '', 'F', '0', 'system:role:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1010', '角色删除', '101', '4', '#', '', 'F', '0', 'system:role:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1011', '角色导出', '101', '5', '#', '', 'F', '0', 'system:role:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1012', '菜单查询', '102', '1', '#', '', 'F', '0', 'system:menu:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1013', '菜单新增', '102', '2', '#', '', 'F', '0', 'system:menu:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1014', '菜单修改', '102', '3', '#', '', 'F', '0', 'system:menu:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1015', '菜单删除', '102', '4', '#', '', 'F', '0', 'system:menu:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1016', '部门查询', '103', '1', '#', '', 'F', '0', 'system:dept:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1017', '部门新增', '103', '2', '#', '', 'F', '0', 'system:dept:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1018', '部门修改', '103', '3', '#', '', 'F', '0', 'system:dept:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1019', '部门删除', '103', '4', '#', '', 'F', '0', 'system:dept:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1020', '岗位查询', '104', '1', '#', '', 'F', '0', 'system:post:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1021', '岗位新增', '104', '2', '#', '', 'F', '0', 'system:post:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1022', '岗位修改', '104', '3', '#', '', 'F', '0', 'system:post:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1023', '岗位删除', '104', '4', '#', '', 'F', '0', 'system:post:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1024', '岗位导出', '104', '5', '#', '', 'F', '0', 'system:post:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1025', '字典查询', '105', '1', '#', '', 'F', '0', 'system:dict:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1026', '字典新增', '105', '2', '#', '', 'F', '0', 'system:dict:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1027', '字典修改', '105', '3', '#', '', 'F', '0', 'system:dict:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1028', '字典删除', '105', '4', '#', '', 'F', '0', 'system:dict:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1029', '字典导出', '105', '5', '#', '', 'F', '0', 'system:dict:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1030', '参数查询', '106', '1', '#', '', 'F', '0', 'system:config:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1031', '参数新增', '106', '2', '#', '', 'F', '0', 'system:config:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1032', '参数修改', '106', '3', '#', '', 'F', '0', 'system:config:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1033', '参数删除', '106', '4', '#', '', 'F', '0', 'system:config:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1034', '参数导出', '106', '5', '#', '', 'F', '0', 'system:config:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1035', '公告查询', '107', '1', '#', '', 'F', '0', 'system:notice:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1036', '公告新增', '107', '2', '#', '', 'F', '0', 'system:notice:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1037', '公告修改', '107', '3', '#', '', 'F', '0', 'system:notice:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1038', '公告删除', '107', '4', '#', '', 'F', '0', 'system:notice:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1039', '操作查询', '500', '1', '#', '', 'F', '0', 'monitor:operlog:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1040', '操作删除', '500', '2', '#', '', 'F', '0', 'monitor:operlog:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1041', '详细信息', '500', '3', '#', '', 'F', '0', 'monitor:operlog:detail', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1042', '日志导出', '500', '4', '#', '', 'F', '0', 'monitor:operlog:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1043', '登录查询', '501', '1', '#', '', 'F', '0', 'monitor:logininfor:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1044', '登录删除', '501', '2', '#', '', 'F', '0', 'monitor:logininfor:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1045', '日志导出', '501', '3', '#', '', 'F', '0', 'monitor:logininfor:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1046', '账户解锁', '501', '4', '#', '', 'F', '0', 'monitor:logininfor:unlock', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1047', '在线查询', '109', '1', '#', '', 'F', '0', 'monitor:online:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1048', '批量强退', '109', '2', '#', '', 'F', '0', 'monitor:online:batchForceLogout', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1049', '单条强退', '109', '3', '#', '', 'F', '0', 'monitor:online:forceLogout', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1050', '任务查询', '110', '1', '#', '', 'F', '0', 'monitor:job:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1051', '任务新增', '110', '2', '#', '', 'F', '0', 'monitor:job:add', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1052', '任务修改', '110', '3', '#', '', 'F', '0', 'monitor:job:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1053', '任务删除', '110', '4', '#', '', 'F', '0', 'monitor:job:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1054', '状态修改', '110', '5', '#', '', 'F', '0', 'monitor:job:changeStatus', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1055', '任务详细', '110', '6', '#', '', 'F', '0', 'monitor:job:detail', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1056', '任务导出', '110', '7', '#', '', 'F', '0', 'monitor:job:export', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1057', '生成查询', '114', '1', '#', '', 'F', '0', 'tool:gen:list', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1058', '生成修改', '114', '2', '#', '', 'F', '0', 'tool:gen:edit', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1059', '生成删除', '114', '3', '#', '', 'F', '0', 'tool:gen:remove', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1060', '预览代码', '114', '4', '#', '', 'F', '0', 'tool:gen:preview', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('1061', '生成代码', '114', '5', '#', '', 'F', '0', 'tool:gen:code', '#', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_menu` VALUES ('2000', '即时日志', '2', '4', '/monitor/consolelog', 'menuItem', 'C', '0', 'monitor:consolelog:view', 'fa fa-fire', 'admin', '2020-09-16 13:38:41', '', null, ''); -- ---------------------------- -- Table structure for `sys_notice` -- ---------------------------- DROP TABLE IF EXISTS `sys_notice`; CREATE TABLE `sys_notice` ( `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID', `notice_title` varchar(50) NOT NULL COMMENT '公告标题', `notice_type` char(1) NOT NULL COMMENT '公告类型(1通知 2公告)', `notice_content` varchar(2000) DEFAULT NULL COMMENT '公告内容', `status` char(1) DEFAULT '0' COMMENT '公告状态(0正常 1关闭)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(255) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`notice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知公告表'; -- ---------------------------- -- Records of sys_notice -- ---------------------------- INSERT INTO `sys_notice` VALUES ('1', '温馨提醒:2020-07-01 新版本发布啦', '2', '新版本内容', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2020-09-16 11:01:20', '管理员'); INSERT INTO `sys_notice` VALUES ('2', '维护通知:2020-07-01 系统凌晨维护', '1', '维护内容', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2020-09-16 11:01:34', '管理员'); -- ---------------------------- -- Table structure for `sys_oper_log` -- ---------------------------- DROP TABLE IF EXISTS `sys_oper_log`; CREATE TABLE `sys_oper_log` ( `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键', `title` varchar(50) DEFAULT '' COMMENT '模块标题', `business_type` int DEFAULT '0' COMMENT '业务类型(0其它 1新增 2修改 3删除)', `method` varchar(100) DEFAULT '' COMMENT '方法名称', `request_method` varchar(10) DEFAULT '' COMMENT '请求方式', `operator_type` int DEFAULT '0' COMMENT '操作类别(0其它 1后台用户 2手机端用户)', `oper_name` varchar(50) DEFAULT '' COMMENT '操作人员', `dept_name` varchar(50) DEFAULT '' COMMENT '部门名称', `oper_url` varchar(255) DEFAULT '' COMMENT '请求URL', `oper_ip` varchar(50) DEFAULT '' COMMENT '主机地址', `oper_location` varchar(255) DEFAULT '' COMMENT '操作地点', `oper_param` varchar(2000) DEFAULT '' COMMENT '请求参数', `json_result` varchar(2000) DEFAULT '' COMMENT '返回参数', `status` int DEFAULT '0' COMMENT '操作状态(0正常 1异常)', `error_msg` varchar(2000) DEFAULT '' COMMENT '错误消息', `oper_time` datetime DEFAULT NULL COMMENT '操作时间', PRIMARY KEY (`oper_id`) ) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='操作日志记录'; -- ---------------------------- -- Records of sys_oper_log -- ---------------------------- INSERT INTO `sys_oper_log` VALUES ('100', '个人信息', '2', 'com.avril.project.system.user.controller.ProfileController.update()', 'POST', '1', 'admin', '研发部门', '/system/user/profile/update', '192.168.1.175', '内网IP', '{\"id\":[\"\"],\"userName\":[\"王者\"],\"phonenumber\":[\"15888888888\"],\"email\":[\"[email protected]\"],\"sex\":[\"1\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:37:42'); INSERT INTO `sys_oper_log` VALUES ('101', '菜单管理', '2', 'com.avril.project.system.menu.controller.MenuController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/menu/edit', '192.168.1.175', '内网IP', '{\"menuId\":[\"4\"],\"parentId\":[\"0\"],\"menuType\":[\"C\"],\"menuName\":[\"若依官网\"],\"url\":[\"http://ruoyi.vip\"],\"target\":[\"menuBlank\"],\"perms\":[\"\"],\"orderNum\":[\"4\"],\"icon\":[\"fa fa-handshake-o\"],\"visible\":[\"1\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:40:13'); INSERT INTO `sys_oper_log` VALUES ('102', '菜单管理', '2', 'com.avril.project.system.menu.controller.MenuController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/menu/edit', '192.168.1.175', '内网IP', '{\"menuId\":[\"4\"],\"parentId\":[\"0\"],\"menuType\":[\"C\"],\"menuName\":[\"若依官网\"],\"url\":[\"http://ruoyi.vip\"],\"target\":[\"menuBlank\"],\"perms\":[\"\"],\"orderNum\":[\"4\"],\"icon\":[\"fa fa-graduation-cap\"],\"visible\":[\"1\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:40:46'); INSERT INTO `sys_oper_log` VALUES ('103', '菜单管理', '3', 'com.avril.project.system.menu.controller.MenuController.remove()', 'GET', '1', 'admin', '研发部门', '/system/menu/remove/4', '192.168.1.175', '内网IP', null, '{\"msg\":\"菜单已分配,不允许删除\",\"code\":301}', '0', null, '2020-09-16 10:42:48'); INSERT INTO `sys_oper_log` VALUES ('104', '角色管理', '2', 'com.avril.project.system.role.controller.RoleController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/role/edit', '192.168.1.175', '内网IP', '{\"roleId\":[\"2\"],\"roleName\":[\"普通角色\"],\"roleKey\":[\"common\"],\"roleSort\":[\"2\"],\"status\":[\"0\"],\"remark\":[\"普通角色\"],\"menuIds\":[\"1,100,1000,1001,1002,1003,1004,1005,1006,101,1007,1008,1009,1010,1011,102,1012,1013,1014,1015,103,1016,1017,1018,1019,104,1020,1021,1022,1023,1024,105,1025,1026,1027,1028,1029,106,1030,1031,1032,1033,1034,107,1035,1036,1037,1038,108,500,1039,1040,1041,1042,501,1043,1044,1045,1046,2,109,1047,1048,1049,110,1050,1051,1052,1053,1054,1055,1056,111,112,3,113,114,1057,1058,1059,1060,1061,115\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:50:21'); INSERT INTO `sys_oper_log` VALUES ('105', '菜单管理', '3', 'com.avril.project.system.menu.controller.MenuController.remove()', 'GET', '1', 'admin', '研发部门', '/system/menu/remove/4', '192.168.1.175', '内网IP', null, '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:50:37'); INSERT INTO `sys_oper_log` VALUES ('106', '用户管理', '2', 'com.avril.project.system.user.controller.UserController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/user/edit', '192.168.1.175', '内网IP', '{\"userId\":[\"2\"],\"deptId\":[\"105\"],\"userName\":[\"百里守约\"],\"dept.deptName\":[\"测试部门\"],\"phonenumber\":[\"15666666666\"],\"email\":[\"[email protected]\"],\"loginName\":[\"ry\"],\"sex\":[\"1\"],\"role\":[\"2\"],\"remark\":[\"\"],\"status\":[\"0\"],\"roleIds\":[\"2\"],\"postIds\":[\"2\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:53:23'); INSERT INTO `sys_oper_log` VALUES ('107', '用户管理', '2', 'com.avril.project.system.user.controller.UserController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/user/edit', '192.168.1.175', '内网IP', '{\"userId\":[\"1\"],\"deptId\":[\"103\"],\"userName\":[\"王者\"],\"dept.deptName\":[\"研发部门\"],\"phonenumber\":[\"18225529110\"],\"email\":[\"[email protected]\"],\"loginName\":[\"admin\"],\"sex\":[\"1\"],\"role\":[\"1\"],\"remark\":[\"管理员\"],\"status\":[\"0\"],\"roleIds\":[\"1\"],\"postIds\":[\"1\"]}', 'null', '1', '不允许操作超级管理员用户', '2020-09-16 10:53:43'); INSERT INTO `sys_oper_log` VALUES ('108', '重置密码', '2', 'com.avril.project.system.user.controller.UserController.resetPwdSave()', 'POST', '1', 'admin', '研发部门', '/system/user/resetPwd', '192.168.1.175', '内网IP', '{\"userId\":[\"2\"],\"loginName\":[\"blsy\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:55:19'); INSERT INTO `sys_oper_log` VALUES ('109', '重置密码', '2', 'com.avril.project.system.user.controller.UserController.resetPwdSave()', 'POST', '1', 'admin', '研发部门', '/system/user/resetPwd', '192.168.1.175', '内网IP', '{\"userId\":[\"1\"],\"loginName\":[\"admin\"]}', 'null', '1', '不允许操作超级管理员用户', '2020-09-16 10:55:39'); INSERT INTO `sys_oper_log` VALUES ('110', '用户管理', '2', 'com.avril.project.system.user.controller.UserController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/user/edit', '192.168.1.175', '内网IP', '{\"userId\":[\"1\"],\"deptId\":[\"103\"],\"userName\":[\"超级管理员\"],\"dept.deptName\":[\"研发部门\"],\"phonenumber\":[\"18225529115\"],\"email\":[\"[email protected]\"],\"loginName\":[\"admin\"],\"sex\":[\"1\"],\"role\":[\"1\"],\"remark\":[\"管理员\"],\"status\":[\"0\"],\"roleIds\":[\"1\"],\"postIds\":[\"1\"]}', 'null', '1', '不允许操作超级管理员用户', '2020-09-16 10:56:14'); INSERT INTO `sys_oper_log` VALUES ('111', '部门管理', '2', 'com.avril.project.system.dept.controller.DeptController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/dept/edit', '192.168.1.175', '内网IP', '{\"deptId\":[\"100\"],\"parentId\":[\"0\"],\"parentName\":[\"无\"],\"deptName\":[\"王者荣耀\"],\"orderNum\":[\"0\"],\"leader\":[\"若依\"],\"phone\":[\"15888888888\"],\"email\":[\"[email protected]\"],\"status\":[\"0\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 10:58:32'); INSERT INTO `sys_oper_log` VALUES ('112', '通知公告', '2', 'com.avril.project.system.notice.controller.NoticeController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/notice/edit', '192.168.1.175', '内网IP', '{\"noticeId\":[\"1\"],\"noticeTitle\":[\"温馨提醒:2020-07-01 新版本发布啦\"],\"noticeType\":[\"2\"],\"noticeContent\":[\"新版本内容\"],\"status\":[\"0\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 11:01:20'); INSERT INTO `sys_oper_log` VALUES ('113', '通知公告', '2', 'com.avril.project.system.notice.controller.NoticeController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/notice/edit', '192.168.1.175', '内网IP', '{\"noticeId\":[\"2\"],\"noticeTitle\":[\"维护通知:2020-07-01 系统凌晨维护\"],\"noticeType\":[\"1\"],\"noticeContent\":[\"维护内容\"],\"status\":[\"0\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 11:01:35'); INSERT INTO `sys_oper_log` VALUES ('114', '菜单管理', '1', 'com.avril.project.system.menu.controller.MenuController.addSave()', 'POST', '1', 'admin', '研发部门', '/system/menu/add', '192.168.1.175', '内网IP', '{\"parentId\":[\"2\"],\"menuType\":[\"C\"],\"menuName\":[\"即时日志\"],\"url\":[\"/monitor/consolelog\"],\"target\":[\"menuItem\"],\"perms\":[\"monitor:consolelog:view\"],\"orderNum\":[\"4\"],\"icon\":[\"fa fa-fire\"],\"visible\":[\"0\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 13:38:42'); INSERT INTO `sys_oper_log` VALUES ('115', '用户管理', '2', 'com.avril.project.system.user.controller.UserController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/user/edit', '192.168.1.175', '内网IP', '{\"userId\":[\"1\"],\"deptId\":[\"103\"],\"userName\":[\"超级管理员\"],\"dept.deptName\":[\"研发部门\"],\"phonenumber\":[\"18225529115\"],\"email\":[\"[email protected]\"],\"loginName\":[\"admin\"],\"sex\":[\"1\"],\"role\":[\"1\"],\"remark\":[\"管理员\"],\"status\":[\"0\"],\"roleIds\":[\"1\"],\"postIds\":[\"1\"]}', 'null', '1', '不允许操作超级管理员用户', '2020-09-16 15:12:48'); INSERT INTO `sys_oper_log` VALUES ('116', '用户管理', '2', 'com.avril.project.system.user.controller.UserController.editSave()', 'POST', '1', 'admin', '研发部门', '/system/user/edit', '192.168.1.175', '内网IP', '{\"userId\":[\"2\"],\"deptId\":[\"105\"],\"userName\":[\"百里守约\"],\"dept.deptName\":[\"测试部门\"],\"phonenumber\":[\"13085035886\"],\"email\":[\"[email protected]\"],\"loginName\":[\"blsy\"],\"sex\":[\"1\"],\"role\":[\"2\"],\"remark\":[\"\"],\"status\":[\"0\"],\"roleIds\":[\"2\"],\"postIds\":[\"2\"]}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 15:12:54'); INSERT INTO `sys_oper_log` VALUES ('117', '重置密码', '2', 'com.avril.project.system.user.controller.ProfileController.resetPwd()', 'POST', '1', 'admin', '研发部门', '/system/user/profile/resetPwd', '192.168.1.175', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 15:48:25'); INSERT INTO `sys_oper_log` VALUES ('118', '重置密码', '2', 'com.avril.project.system.user.controller.ProfileController.resetPwd()', 'POST', '1', 'admin', '研发部门', '/system/user/profile/resetPwd', '192.168.1.175', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":0}', '0', null, '2020-09-16 15:48:31'); -- ---------------------------- -- Table structure for `sys_post` -- ---------------------------- DROP TABLE IF EXISTS `sys_post`; CREATE TABLE `sys_post` ( `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID', `post_code` varchar(64) NOT NULL COMMENT '岗位编码', `post_name` varchar(50) NOT NULL COMMENT '岗位名称', `post_sort` int NOT NULL COMMENT '显示顺序', `status` char(1) NOT NULL COMMENT '状态(0正常 1停用)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`post_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='岗位信息表'; -- ---------------------------- -- Records of sys_post -- ---------------------------- INSERT INTO `sys_post` VALUES ('1', 'ceo', '董事长', '1', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_post` VALUES ('2', 'se', '项目经理', '2', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_post` VALUES ('3', 'hr', '人力资源', '3', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); INSERT INTO `sys_post` VALUES ('4', 'user', '普通员工', '4', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', ''); -- ---------------------------- -- Table structure for `sys_role` -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID', `role_name` varchar(30) NOT NULL COMMENT '角色名称', `role_key` varchar(100) NOT NULL COMMENT '角色权限字符串', `role_sort` int NOT NULL COMMENT '显示顺序', `data_scope` char(1) DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)', `status` char(1) NOT NULL COMMENT '角色状态(0正常 1停用)', `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`role_id`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色信息表'; -- ---------------------------- -- Records of sys_role -- ---------------------------- INSERT INTO `sys_role` VALUES ('1', '超级管理员', 'admin', '1', '1', '0', '0', 'admin', '2018-03-16 11:33:00', 'ry', '2018-03-16 11:33:00', '超级管理员'); INSERT INTO `sys_role` VALUES ('2', '普通角色', 'common', '2', '2', '0', '0', 'admin', '2018-03-16 11:33:00', 'admin', '2020-09-16 10:50:21', '普通角色'); -- ---------------------------- -- Table structure for `sys_role_dept` -- ---------------------------- DROP TABLE IF EXISTS `sys_role_dept`; CREATE TABLE `sys_role_dept` ( `role_id` bigint NOT NULL COMMENT '角色ID', `dept_id` bigint NOT NULL COMMENT '部门ID', PRIMARY KEY (`role_id`,`dept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色和部门关联表'; -- ---------------------------- -- Records of sys_role_dept -- ---------------------------- INSERT INTO `sys_role_dept` VALUES ('2', '100'); INSERT INTO `sys_role_dept` VALUES ('2', '101'); INSERT INTO `sys_role_dept` VALUES ('2', '105'); -- ---------------------------- -- Table structure for `sys_role_menu` -- ---------------------------- DROP TABLE IF EXISTS `sys_role_menu`; CREATE TABLE `sys_role_menu` ( `role_id` bigint NOT NULL COMMENT '角色ID', `menu_id` bigint NOT NULL COMMENT '菜单ID', PRIMARY KEY (`role_id`,`menu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='角色和菜单关联表'; -- ---------------------------- -- Records of sys_role_menu -- ---------------------------- INSERT INTO `sys_role_menu` VALUES ('2', '1'); INSERT INTO `sys_role_menu` VALUES ('2', '2'); INSERT INTO `sys_role_menu` VALUES ('2', '3'); INSERT INTO `sys_role_menu` VALUES ('2', '100'); INSERT INTO `sys_role_menu` VALUES ('2', '101'); INSERT INTO `sys_role_menu` VALUES ('2', '102'); INSERT INTO `sys_role_menu` VALUES ('2', '103'); INSERT INTO `sys_role_menu` VALUES ('2', '104'); INSERT INTO `sys_role_menu` VALUES ('2', '105'); INSERT INTO `sys_role_menu` VALUES ('2', '106'); INSERT INTO `sys_role_menu` VALUES ('2', '107'); INSERT INTO `sys_role_menu` VALUES ('2', '108'); INSERT INTO `sys_role_menu` VALUES ('2', '109'); INSERT INTO `sys_role_menu` VALUES ('2', '110'); INSERT INTO `sys_role_menu` VALUES ('2', '111'); INSERT INTO `sys_role_menu` VALUES ('2', '112'); INSERT INTO `sys_role_menu` VALUES ('2', '113'); INSERT INTO `sys_role_menu` VALUES ('2', '114'); INSERT INTO `sys_role_menu` VALUES ('2', '115'); INSERT INTO `sys_role_menu` VALUES ('2', '500'); INSERT INTO `sys_role_menu` VALUES ('2', '501'); INSERT INTO `sys_role_menu` VALUES ('2', '1000'); INSERT INTO `sys_role_menu` VALUES ('2', '1001'); INSERT INTO `sys_role_menu` VALUES ('2', '1002'); INSERT INTO `sys_role_menu` VALUES ('2', '1003'); INSERT INTO `sys_role_menu` VALUES ('2', '1004'); INSERT INTO `sys_role_menu` VALUES ('2', '1005'); INSERT INTO `sys_role_menu` VALUES ('2', '1006'); INSERT INTO `sys_role_menu` VALUES ('2', '1007'); INSERT INTO `sys_role_menu` VALUES ('2', '1008'); INSERT INTO `sys_role_menu` VALUES ('2', '1009'); INSERT INTO `sys_role_menu` VALUES ('2', '1010'); INSERT INTO `sys_role_menu` VALUES ('2', '1011'); INSERT INTO `sys_role_menu` VALUES ('2', '1012'); INSERT INTO `sys_role_menu` VALUES ('2', '1013'); INSERT INTO `sys_role_menu` VALUES ('2', '1014'); INSERT INTO `sys_role_menu` VALUES ('2', '1015'); INSERT INTO `sys_role_menu` VALUES ('2', '1016'); INSERT INTO `sys_role_menu` VALUES ('2', '1017'); INSERT INTO `sys_role_menu` VALUES ('2', '1018'); INSERT INTO `sys_role_menu` VALUES ('2', '1019'); INSERT INTO `sys_role_menu` VALUES ('2', '1020'); INSERT INTO `sys_role_menu` VALUES ('2', '1021'); INSERT INTO `sys_role_menu` VALUES ('2', '1022'); INSERT INTO `sys_role_menu` VALUES ('2', '1023'); INSERT INTO `sys_role_menu` VALUES ('2', '1024'); INSERT INTO `sys_role_menu` VALUES ('2', '1025'); INSERT INTO `sys_role_menu` VALUES ('2', '1026'); INSERT INTO `sys_role_menu` VALUES ('2', '1027'); INSERT INTO `sys_role_menu` VALUES ('2', '1028'); INSERT INTO `sys_role_menu` VALUES ('2', '1029'); INSERT INTO `sys_role_menu` VALUES ('2', '1030'); INSERT INTO `sys_role_menu` VALUES ('2', '1031'); INSERT INTO `sys_role_menu` VALUES ('2', '1032'); INSERT INTO `sys_role_menu` VALUES ('2', '1033'); INSERT INTO `sys_role_menu` VALUES ('2', '1034'); INSERT INTO `sys_role_menu` VALUES ('2', '1035'); INSERT INTO `sys_role_menu` VALUES ('2', '1036'); INSERT INTO `sys_role_menu` VALUES ('2', '1037'); INSERT INTO `sys_role_menu` VALUES ('2', '1038'); INSERT INTO `sys_role_menu` VALUES ('2', '1039'); INSERT INTO `sys_role_menu` VALUES ('2', '1040'); INSERT INTO `sys_role_menu` VALUES ('2', '1041'); INSERT INTO `sys_role_menu` VALUES ('2', '1042'); INSERT INTO `sys_role_menu` VALUES ('2', '1043'); INSERT INTO `sys_role_menu` VALUES ('2', '1044'); INSERT INTO `sys_role_menu` VALUES ('2', '1045'); INSERT INTO `sys_role_menu` VALUES ('2', '1046'); INSERT INTO `sys_role_menu` VALUES ('2', '1047'); INSERT INTO `sys_role_menu` VALUES ('2', '1048'); INSERT INTO `sys_role_menu` VALUES ('2', '1049'); INSERT INTO `sys_role_menu` VALUES ('2', '1050'); INSERT INTO `sys_role_menu` VALUES ('2', '1051'); INSERT INTO `sys_role_menu` VALUES ('2', '1052'); INSERT INTO `sys_role_menu` VALUES ('2', '1053'); INSERT INTO `sys_role_menu` VALUES ('2', '1054'); INSERT INTO `sys_role_menu` VALUES ('2', '1055'); INSERT INTO `sys_role_menu` VALUES ('2', '1056'); INSERT INTO `sys_role_menu` VALUES ('2', '1057'); INSERT INTO `sys_role_menu` VALUES ('2', '1058'); INSERT INTO `sys_role_menu` VALUES ('2', '1059'); INSERT INTO `sys_role_menu` VALUES ('2', '1060'); INSERT INTO `sys_role_menu` VALUES ('2', '1061'); -- ---------------------------- -- Table structure for `sys_user` -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID', `dept_id` bigint DEFAULT NULL COMMENT '部门ID', `login_name` varchar(30) NOT NULL COMMENT '登录账号', `user_name` varchar(30) DEFAULT '' COMMENT '用户昵称', `user_type` varchar(2) DEFAULT '00' COMMENT '用户类型(00系统用户 01注册用户)', `email` varchar(50) DEFAULT '' COMMENT '用户邮箱', `phonenumber` varchar(11) DEFAULT '' COMMENT '手机号码', `sex` char(1) DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)', `avatar` varchar(100) DEFAULT '' COMMENT '头像路径', `password` varchar(50) DEFAULT '' COMMENT '密码', `salt` varchar(20) DEFAULT '' COMMENT '盐加密', `status` char(1) DEFAULT '0' COMMENT '帐号状态(0正常 1停用)', `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', `login_ip` varchar(50) DEFAULT '' COMMENT '最后登陆IP', `login_date` datetime DEFAULT NULL COMMENT '最后登陆时间', `create_by` varchar(64) DEFAULT '' COMMENT '创建者', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) DEFAULT '' COMMENT '更新者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户信息表'; -- ---------------------------- -- Records of sys_user -- ---------------------------- INSERT INTO `sys_user` VALUES ('1', '103', 'admin', '超级管理员', '00', '[email protected]', '18225529115', '1', '', '6deae25d3b4747951b098533aa79612a', '69ff81', '0', '0', '192.168.1.175', '2020-09-16 16:13:37', 'admin', '2018-03-16 11:33:00', 'ry', '2020-09-16 16:13:36', '管理员'); INSERT INTO `sys_user` VALUES ('2', '105', 'blsy', '百里守约', '00', '[email protected]', '13085035886', '1', '', '22942cbe07dd3f5ee11d34814dc7f165', '007092', '0', '0', '127.0.0.1', '2018-03-16 11:33:00', 'admin', '2018-03-16 11:33:00', 'admin', '2020-09-16 15:12:54', ''); -- ---------------------------- -- Table structure for `sys_user_online` -- ---------------------------- DROP TABLE IF EXISTS `sys_user_online`; CREATE TABLE `sys_user_online` ( `sessionId` varchar(50) NOT NULL DEFAULT '' COMMENT '用户会话id', `login_name` varchar(50) DEFAULT '' COMMENT '登录账号', `dept_name` varchar(50) DEFAULT '' COMMENT '部门名称', `ipaddr` varchar(50) DEFAULT '' COMMENT '登录IP地址', `login_location` varchar(255) DEFAULT '' COMMENT '登录地点', `browser` varchar(50) DEFAULT '' COMMENT '浏览器类型', `os` varchar(50) DEFAULT '' COMMENT '操作系统', `status` varchar(10) DEFAULT '' COMMENT '在线状态on_line在线off_line离线', `start_timestamp` datetime DEFAULT NULL COMMENT 'session创建时间', `last_access_time` datetime DEFAULT NULL COMMENT 'session最后访问时间', `expire_time` int DEFAULT '0' COMMENT '超时时间,单位为分钟', PRIMARY KEY (`sessionId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='在线用户记录'; -- ---------------------------- -- Records of sys_user_online -- ---------------------------- INSERT INTO `sys_user_online` VALUES ('90d14e0f-afdd-4ce2-9c34-fc6dda6e1b9b', 'admin', '研发部门', '192.168.1.175', '内网IP', 'Chrome', 'Windows 10', 'on_line', '2020-09-16 16:13:34', '2020-09-16 16:21:33', '1800000'); -- ---------------------------- -- Table structure for `sys_user_post` -- ---------------------------- DROP TABLE IF EXISTS `sys_user_post`; CREATE TABLE `sys_user_post` ( `user_id` bigint NOT NULL COMMENT '用户ID', `post_id` bigint NOT NULL COMMENT '岗位ID', PRIMARY KEY (`user_id`,`post_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户与岗位关联表'; -- ---------------------------- -- Records of sys_user_post -- ---------------------------- INSERT INTO `sys_user_post` VALUES ('1', '1'); INSERT INTO `sys_user_post` VALUES ('2', '2'); -- ---------------------------- -- Table structure for `sys_user_role` -- ---------------------------- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE `sys_user_role` ( `user_id` bigint NOT NULL COMMENT '用户ID', `role_id` bigint NOT NULL COMMENT '角色ID', PRIMARY KEY (`user_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户和角色关联表'; -- ---------------------------- -- Records of sys_user_role -- ---------------------------- INSERT INTO `sys_user_role` VALUES ('1', '1'); INSERT INTO `sys_user_role` VALUES ('2', '2');
86.430255
2,114
0.654877
c9ca5d80b2685a90c6401e1c05908dfaebfd6465
2,712
ts
TypeScript
test/spec/api/bodyguard/get-readable-relations.spec.ts
StatelessStudio/pointyapi
ddb7999f75fffdbef215177f7843e95400483935
[ "MIT" ]
4
2019-09-13T16:13:41.000Z
2022-02-15T20:30:39.000Z
test/spec/api/bodyguard/get-readable-relations.spec.ts
StatelessStudio/pointyapi
ddb7999f75fffdbef215177f7843e95400483935
[ "MIT" ]
163
2018-11-10T15:15:17.000Z
2021-12-25T22:39:42.000Z
test/spec/api/bodyguard/get-readable-relations.spec.ts
StatelessStudio/pointyapi
ddb7999f75fffdbef215177f7843e95400483935
[ "MIT" ]
1
2022-01-21T17:56:09.000Z
2022-01-21T17:56:09.000Z
import { User } from '../../../examples/chat/models/user'; import { ChatMessage } from '../../../examples/chat/models/chat-message'; import { getReadableRelations, CanReadRelation } from '../../../../src/bodyguard'; import { BaseModel, ExampleUser } from '../../../../src/models'; import { UserRole } from '../../../../src/enums'; class AnyoneCanReadRelationModel extends BaseModel { @CanReadRelation() public anyoneCanRead: ExampleUser = undefined; } /** * getReadableRelations() * pointyapi/bodyguard */ describe('[Bodyguard] getReadableRelations', () => { it('returns an keys for Chat User', () => { // Create user const user = new User(); user.id = 1; // Create Chat Message const chat = new ChatMessage(); chat.from = user; chat.to = user; // Get readable fields const searchableRelations = getReadableRelations(chat, user); // Expect result to be array of strings, e.g. `from.id` expect(searchableRelations).toEqual(jasmine.any(Array)); expect(searchableRelations.length).toBeGreaterThanOrEqual(2); expect(searchableRelations[0]).toEqual(jasmine.any(String)); }); it('returns no keys for Chat User when not logged in', () => { // Create user const user = new User(); user.id = 1; // Create Chat Message const chat = new ChatMessage(); chat.from = user; chat.to = user; // Get readable fields const searchableRelations = getReadableRelations(chat, new User()); // Expect result to be array of strings, e.g. `from.id` expect(searchableRelations).toEqual(jasmine.any(Array)); expect(searchableRelations.length).toBe(0); }); it('returns akeys for admin Chat User', () => { // Create user const user = new User(); user.id = 1; const admin = new User(); admin.id = 2; admin.role = UserRole.Admin; // Create Chat Message const chat = new ChatMessage(); chat.from = user; chat.to = user; // Get readable fields const searchableRelations = getReadableRelations(chat, admin); // Expect result to be array of strings, e.g. `from.id` expect(searchableRelations).toEqual(jasmine.any(Array)); expect(searchableRelations.length).toBeGreaterThanOrEqual(2); expect(searchableRelations[0]).toEqual(jasmine.any(String)); }); it('returns keys for AnyoneCanReadRelationModel', () => { // Create user const user = new User(); user.id = 1; // Create Chat Message const chat = new AnyoneCanReadRelationModel(); chat.anyoneCanRead = user; // Get readable fields const searchableRelations = getReadableRelations(chat, new User()); // Expect result to be array of strings, e.g. `from.id` expect(searchableRelations).toEqual(jasmine.any(Array)); expect(searchableRelations.length).toBe(1); }); });
28.25
73
0.687684
79ac5148bf129d312eb74096bfe0b7c7a8b19de4
12,474
sql
SQL
sisbiblio.sql
christian45p/proyectoBiblioteca
f9f94dc9f04c34b634da918c5e07212b9bc49fd2
[ "MIT" ]
null
null
null
sisbiblio.sql
christian45p/proyectoBiblioteca
f9f94dc9f04c34b634da918c5e07212b9bc49fd2
[ "MIT" ]
1
2019-12-04T16:31:58.000Z
2019-12-04T16:51:32.000Z
sisbiblio.sql
christian45p/proyectoBiblioteca
f9f94dc9f04c34b634da918c5e07212b9bc49fd2
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-11-2019 a las 04:42:46 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `sisbiblio` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `autor` -- CREATE TABLE `autor` ( `auto_id` int(11) NOT NULL, `auto_nombres` varchar(45) DEFAULT NULL, `auto_apellidos` varchar(45) DEFAULT NULL, `auto_biografia` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `autor` -- INSERT INTO `autor` (`auto_id`, `auto_nombres`, `auto_apellidos`, `auto_biografia`) VALUES (1, 'Eduardo', 'Espinoza Ramos', 'Eduardo Espinoza Ramos es un político y matemático peruano. Es un congresista que representa a Cajamarca para el período 2006-2011, y pertenece al partido Unión para Perú.'), (3, 'Anthony', 'Robbins', NULL), (4, 'César', 'Vallejo', NULL), (5, 'Cardellá', 'Hernández', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `categoria` -- CREATE TABLE `categoria` ( `cate_id` int(11) NOT NULL, `cate_nombre` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `categoria` -- INSERT INTO `categoria` (`cate_id`, `cate_nombre`) VALUES (1, 'Ingeniería'), (2, 'Biomédicas'), (3, 'Sociales'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ejemplar` -- CREATE TABLE `ejemplar` ( `ejem_id` int(11) NOT NULL, `ejem_titulo` varchar(150) DEFAULT NULL, `ejem_editorial` varchar(45) DEFAULT NULL, `ejem_paginas` int(11) DEFAULT NULL, `ejem_isbn` varchar(20) DEFAULT NULL, `ejem_idioma` varchar(45) DEFAULT NULL, `ejem_portada` varchar(45) DEFAULT NULL, `ejem_digital` varchar(45) DEFAULT NULL, `ejem_audio` varchar(45) DEFAULT NULL, `ejem_resumen` varchar(255) DEFAULT NULL, `ejem_tipo_id` int(11) DEFAULT NULL, `ejem_cate_id` int(11) DEFAULT NULL, `ejem_valoracion` tinyint(1) DEFAULT NULL, `ejem_anio` int(11) DEFAULT NULL, `ejem_nprestamos` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `ejemplar` -- INSERT INTO `ejemplar` (`ejem_id`, `ejem_titulo`, `ejem_editorial`, `ejem_paginas`, `ejem_isbn`, `ejem_idioma`, `ejem_portada`, `ejem_digital`, `ejem_audio`, `ejem_resumen`, `ejem_tipo_id`, `ejem_cate_id`, `ejem_valoracion`, `ejem_anio`, `ejem_nprestamos`) VALUES (2, 'Análisis Matemático I', 'El limeñito', 200, '13-1234-1234', 'Español', 'analisis_matematico_i.jpg', NULL, NULL, NULL, 1, 1, NULL, NULL, NULL), (3, 'Poder Sin Límites', 'DelBolsillo', 479, '1123-134-1234', 'Español', 'podersinlimites.jfif', NULL, NULL, NULL, 2, 3, NULL, NULL, NULL), (5, 'Analisis Matemático III', 'la espina', 500, '11234-32344-1234', 'Español', 'analisis-matematico-espinoza.jpeg', NULL, NULL, NULL, 1, 1, NULL, NULL, NULL), (6, 'Los Heraldos Negros', 'Talleres de la Penitenciaría de Lima', 128, '978-612-305-078-8', 'Español', 'heraldos_negros.jpg', NULL, NULL, NULL, 2, 3, NULL, NULL, NULL), (7, 'Biología Humana', 'Médica Panamericana S.A', 345, '234-123-76574', 'Español', 'biologiahumana.jpg', NULL, NULL, NULL, 1, 2, NULL, NULL, NULL), (8, 'asdasdasd', 'asdf234', 900, '43214-1234-123478', 'Español', 'ellibrodelafisica.jpg', NULL, NULL, NULL, 1, 3, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ejemplar_autor` -- CREATE TABLE `ejemplar_autor` ( `rela_auto_id` int(11) NOT NULL, `rela_ejem_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `ejemplar_autor` -- INSERT INTO `ejemplar_autor` (`rela_auto_id`, `rela_ejem_id`) VALUES (1, 2), (1, 5), (3, 3), (4, 6), (4, 8), (5, 7); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ejemplar_tipo` -- CREATE TABLE `ejemplar_tipo` ( `tipo_id` int(11) NOT NULL, `tipo_nombre` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `ejemplar_tipo` -- INSERT INTO `ejemplar_tipo` (`tipo_id`, `tipo_nombre`) VALUES (1, 'Libro'), (2, 'Revista'), (3, 'Audio-Libro'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `favorito` -- CREATE TABLE `favorito` ( `favo_usua_id` int(11) NOT NULL, `favo_ejem_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `historial` -- CREATE TABLE `historial` ( `histo_id` int(11) NOT NULL, `histo_usua_id` int(11) DEFAULT NULL, `histo_termino` varchar(45) DEFAULT NULL, `histo_fechareg` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `peticion` -- CREATE TABLE `peticion` ( `peti_id` int(11) NOT NULL, `peti_ejem_id` int(11) DEFAULT NULL, `peti_dias` int(11) DEFAULT NULL, `peti_usua_id` int(11) DEFAULT NULL, `peti_fechareg` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `prestamo` -- CREATE TABLE `prestamo` ( `pres_id` int(11) NOT NULL, `pres_usua_id` int(11) DEFAULT NULL, `pres_ejem_id` int(11) DEFAULT NULL, `pres_fechareg` datetime DEFAULT NULL, `pres_dias` int(11) DEFAULT NULL, `pres_fechaprestamo` date DEFAULT NULL, `pres_fechadevolucion` date DEFAULT NULL, `pres_estado` tinyint(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE `usuario` ( `usua_id` int(11) NOT NULL, `usua_login` varchar(45) DEFAULT NULL, `usua_password` varchar(45) DEFAULT NULL, `usua_codigo` int(11) DEFAULT NULL, `usua_nombres` varchar(45) DEFAULT NULL, `usua_apellidos` varchar(45) DEFAULT NULL, `usua_direccion` varchar(150) DEFAULT NULL, `usua_email` varchar(70) DEFAULT NULL, `usua_telefono` varchar(20) DEFAULT NULL, `usua_esadmin` tinyint(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`usua_id`, `usua_login`, `usua_password`, `usua_codigo`, `usua_nombres`, `usua_apellidos`, `usua_direccion`, `usua_email`, `usua_telefono`, `usua_esadmin`) VALUES (1, 'administrador', '81dc9bdb52d04dc20036dbd8313ed055', 103176, 'Christian André', 'Urviola García', 'Jr. puno', '[email protected]', '969591277', 1), (3, 'kakaroto', '81dc9bdb52d04dc20036dbd8313ed055', 453467, 'Goku', 'Perez', 'jr. asdr 1234', '[email protected]', '954857456', 0), (4, 'elcejas', '81dc9bdb52d04dc20036dbd8313ed055', 676776, 'ElCeja', 'blablabla', 'jr. elceja 1324', '[email protected]', '984234857', 0), (5, 'usuario', '81dc9bdb52d04dc20036dbd8313ed055', 584756, 'usuario', 'usuario', 'jr. usuario 34', '[email protected]', '954236878', 0), (6, 'momazo', '81dc9bdb52d04dc20036dbd8313ed055', 258741, 'momazo', 'momazo', 'jr momazos 342', '[email protected]', '947362738', 0); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `autor` -- ALTER TABLE `autor` ADD PRIMARY KEY (`auto_id`); -- -- Indices de la tabla `categoria` -- ALTER TABLE `categoria` ADD PRIMARY KEY (`cate_id`); -- -- Indices de la tabla `ejemplar` -- ALTER TABLE `ejemplar` ADD PRIMARY KEY (`ejem_id`), ADD KEY `fk_ejemplar_ejemplar_tipo_idx` (`ejem_tipo_id`), ADD KEY `fk_ejemplar_categoria1_idx` (`ejem_cate_id`); -- -- Indices de la tabla `ejemplar_autor` -- ALTER TABLE `ejemplar_autor` ADD PRIMARY KEY (`rela_auto_id`,`rela_ejem_id`), ADD KEY `fk_ejemplar_autor_ejemplar1_idx` (`rela_ejem_id`); -- -- Indices de la tabla `ejemplar_tipo` -- ALTER TABLE `ejemplar_tipo` ADD PRIMARY KEY (`tipo_id`); -- -- Indices de la tabla `favorito` -- ALTER TABLE `favorito` ADD PRIMARY KEY (`favo_usua_id`,`favo_ejem_id`), ADD KEY `fk_favorito_ejemplar1_idx` (`favo_ejem_id`); -- -- Indices de la tabla `historial` -- ALTER TABLE `historial` ADD PRIMARY KEY (`histo_id`), ADD KEY `fk_historial_usuario1_idx` (`histo_usua_id`); -- -- Indices de la tabla `peticion` -- ALTER TABLE `peticion` ADD PRIMARY KEY (`peti_id`), ADD KEY `fk_peticion_ejemplar1_idx` (`peti_ejem_id`), ADD KEY `fk_peticion_usuario1_idx` (`peti_usua_id`); -- -- Indices de la tabla `prestamo` -- ALTER TABLE `prestamo` ADD PRIMARY KEY (`pres_id`), ADD KEY `fk_prestamo_usuario1_idx` (`pres_usua_id`), ADD KEY `fk_prestamo_ejemplar1_idx` (`pres_ejem_id`); -- -- Indices de la tabla `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`usua_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `autor` -- ALTER TABLE `autor` MODIFY `auto_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `categoria` -- ALTER TABLE `categoria` MODIFY `cate_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT de la tabla `ejemplar` -- ALTER TABLE `ejemplar` MODIFY `ejem_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de la tabla `ejemplar_tipo` -- ALTER TABLE `ejemplar_tipo` MODIFY `tipo_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT de la tabla `peticion` -- ALTER TABLE `peticion` MODIFY `peti_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `prestamo` -- ALTER TABLE `prestamo` MODIFY `pres_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `usuario` -- ALTER TABLE `usuario` MODIFY `usua_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `ejemplar` -- ALTER TABLE `ejemplar` ADD CONSTRAINT `fk_ejemplar_categoria1` FOREIGN KEY (`ejem_cate_id`) REFERENCES `categoria` (`cate_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_ejemplar_ejemplar_tipo` FOREIGN KEY (`ejem_tipo_id`) REFERENCES `ejemplar_tipo` (`tipo_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `ejemplar_autor` -- ALTER TABLE `ejemplar_autor` ADD CONSTRAINT `fk_ejemplar_autor_autor1` FOREIGN KEY (`rela_auto_id`) REFERENCES `autor` (`auto_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_ejemplar_autor_ejemplar1` FOREIGN KEY (`rela_ejem_id`) REFERENCES `ejemplar` (`ejem_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `favorito` -- ALTER TABLE `favorito` ADD CONSTRAINT `fk_favorito_ejemplar1` FOREIGN KEY (`favo_ejem_id`) REFERENCES `ejemplar` (`ejem_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_favorito_usuario1` FOREIGN KEY (`favo_usua_id`) REFERENCES `usuario` (`usua_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `historial` -- ALTER TABLE `historial` ADD CONSTRAINT `fk_historial_usuario1` FOREIGN KEY (`histo_usua_id`) REFERENCES `usuario` (`usua_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `peticion` -- ALTER TABLE `peticion` ADD CONSTRAINT `fk_peticion_ejemplar1` FOREIGN KEY (`peti_ejem_id`) REFERENCES `ejemplar` (`ejem_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_peticion_usuario1` FOREIGN KEY (`peti_usua_id`) REFERENCES `usuario` (`usua_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `prestamo` -- ALTER TABLE `prestamo` ADD CONSTRAINT `fk_prestamo_ejemplar1` FOREIGN KEY (`pres_ejem_id`) REFERENCES `ejemplar` (`ejem_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_prestamo_usuario1` FOREIGN KEY (`pres_usua_id`) REFERENCES `usuario` (`usua_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
31.185
263
0.68278
ebace485d85c45f5d62b518e5d4d79a54f980c7b
13,175
css
CSS
dsg/tema-padrao.css
gruhh/Biblioteca.cc
2cb8111234302ec4d8ac19d0e8494acf72451a7c
[ "MIT" ]
null
null
null
dsg/tema-padrao.css
gruhh/Biblioteca.cc
2cb8111234302ec4d8ac19d0e8494acf72451a7c
[ "MIT" ]
null
null
null
dsg/tema-padrao.css
gruhh/Biblioteca.cc
2cb8111234302ec4d8ac19d0e8494acf72451a7c
[ "MIT" ]
null
null
null
body{font-family:Arial,Helvetica,sans-serif;font-weight:300}a{color:#0699d0;text-decoration:none}a:hover,a:focus{color:#0286b9;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-danger{color:#fff;background-color:#19262a;border-color:#ccc}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#ccc;background-color:#0a0f10;border-color:#adadad}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#19262a;border-color:#ccc}.btn-primary{color:#fff;background-color:#0699d0;border-color:#0587b7}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#057ca8;border-color:#045b7c}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#0699d0;border-color:#0587b7}.btn-warning{color:#fff;background-color:#fed62b;border-color:#fed112}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#fece02;border-color:#d1aa01}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#fed62b;border-color:#fed112}.btn-default{color:#fff;background-color:#999fa1;border-color:#8c9395}.btn-default .caret{color:#fff;border-top-color:#fff}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#fff;background-color:#848b8d;border-color:#6d7476}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#999fa1;border-color:#8c9395}.btn-success{color:#fff;background-color:#91c751;border-color:#85c13e}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#7db53a;border-color:#65922f}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#91c751;border-color:#85c13e}.btn-info{color:#fff;background-color:#9cd757;border-color:#90d242}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#89cf36;border-color:#71ae29}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#9cd757;border-color:#90d242}.btn-link{color:#0699d0;font-weight:normal;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#046286;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-xs{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:11px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-block+.btn-block{margin-top:5px}.cabecalho .navbar{min-height:24px}.cabecalho .navbar-brand{padding:12px 15px}.cabecalho .navbar-nav>li>a{padding:12px 15px;font-size:13px}.cabecalho .navbar-default{background-color:#0699d0;border:0;border-radius:0}.cabecalho .navbar-text{margin-top:12px;margin-bottom:12px;font-size:13px}.cabecalho .navbar-default .navbar-brand{color:#fff}.cabecalho .navbar-default .navbar-brand:hover,.cabecalho .navbar-default .navbar-brand:focus{color:#fff;background-color:transparent}.cabecalho .navbar-default .navbar-text{color:#fff}.cabecalho .navbar-default .navbar-nav>li>a{color:#fff}.cabecalho .navbar-default .navbar-nav>li>a:hover,.cabecalho .navbar-default .navbar-nav>li>a:focus{color:#fff;background-color:#0286b9}.cabecalho .navbar-default .navbar-nav>.active>a,.cabecalho .navbar-default .navbar-nav>.active>a:hover,.cabecalho .navbar-default .navbar-nav>.active>a:focus{color:#fff;background-color:#0286b9}.cabecalho .navbar-default .navbar-toggle{border-color:#fff}.cabecalho .navbar-default .navbar-toggle:hover,.cabecalho .navbar-default .navbar-toggle:focus{background-color:#0699d0}.cabecalho .navbar-default .navbar-toggle .icon-bar{background-color:#fff}.cabecalho .navbar-default .navbar-nav>.dropdown>a:hover .caret,.cabecalho .navbar-default .navbar-nav>.dropdown>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.cabecalho .navbar-default .navbar-nav>.open>a,.cabecalho .navbar-default .navbar-nav>.open>a:hover,.cabecalho .navbar-default .navbar-nav>.open>a:focus{background-color:#0699d0;color:#fff}.cabecalho .navbar-default .navbar-nav>.open>a .caret,.cabecalho .navbar-default .navbar-nav>.open>a:hover .caret,.cabecalho .navbar-default .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.cabecalho .navbar-default .navbar-nav>.dropdown>a .caret{border-top-color:#fff;border-bottom-color:#fff}.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#0699d0;background-color:transparent}.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.active>a,.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.cabecalho .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}.cabecalho .badge{color:#999;padding:3px 4px;background-color:#fff;border-radius:4px}.painel .menu .nav>li>a{padding:8px 10px;color:#0699d0}.painel .menu .nav>li>a:hover,.painel .menu .nav>li>a:focus{text-decoration:none;background-color:#efefef}.painel .menu .nav>li.disabled>a{color:#ccc}.painel .menu .nav>li.disabled>a:hover,.painel .menu .nav>li.disabled>a:focus{color:#999}.painel .menu .nav .open>a,.painel .menu .nav .open>a:hover,.painel .menu .nav .open>a:focus{background-color:#fff;border-color:#efefef}.painel .menu .nav-pills>li>a{border-radius:0}.painel .menu .nav-pills>li.active>a,.painel .menu .nav-pills>li.active>a:hover,.painel .menu .nav-pills>li.active>a:focus{color:#0699d0;background-color:#f7f7f7}.painel .menu .nav-pills>li.title>a{color:#ccc}.painel .menu .nav-pills>li.title>a,.painel .menu .nav-pills>li.title>a:hover,.painel .menu .nav-pills>li.title>a:focus{background-color:#fff}.dropdown-menu{font-size:13px;font-weight:300;background-color:#fff;border:1px solid #ccc;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.dropdown-menu>li>a{padding:3px 20px;color:#777}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#0699d0;background-color:#fff}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#0699d0;background-color:#fff}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#ccc}.rodape{margin-top:40px;border-top:1px solid #efefef;padding-top:10px;font-size:11px;color:#999}.menu-busca-rapida{margin:21px 0}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}h1,.h1{font-size:30px}h1 small,.h1 small{font-size:18px}h2,.h2{font-size:26px}h2 small,.h2 small{font-size:16px}h1,h2,h3,h4,h5,h6,h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1,.h2,.h3,.h4,.h5,.h6,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small{font-weight:300}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{color:#474949}.page-header{padding-bottom:9px;margin:0 0 20px}.panel-default>.panel-heading{background-color:#f7f7f7}.panel{border-radius:0;-webkit-box-shadow:none;box-shadow:none}p.divider{height:1px;width:100%;background-color:#e5e5e5}.btn-alerta{color:#fff;background-color:#e54538;border-color:#be392f}.btn-alerta:hover,.btn-alerta:focus,.btn-alerta:active,.btn-alerta.active,.open .dropdown-toggle.btn-alerta{color:#fff;background-color:#b5362d;border-color:#be392f}blockquote p{font-size:15px;line-height:1.3}.pagination{margin:20px 0;border-radius:0}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{border-bottom-left-radius:0;border-top-left-radius:0}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:0;border-top-right-radius:0}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{background-color:#eee}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#999;background-color:#efefef;border-color:#ddd;cursor:default}.pagination>.disabled>span,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;background-color:#fff;border-color:#ddd;cursor:not-allowed}.icon-pequeno{font-size:10px;top:-1px}.painel-entrada{background:#efefef}
13,175
13,175
0.793169
af2acdfbf6cbbe46551c5cb31d154e309ae604ca
473
py
Python
metroclima/__version__.py
jonathadv/metroclima-cli
1511c3495e4f7c2808eabf6f969d0a067002cc02
[ "MIT" ]
null
null
null
metroclima/__version__.py
jonathadv/metroclima-cli
1511c3495e4f7c2808eabf6f969d0a067002cc02
[ "MIT" ]
null
null
null
metroclima/__version__.py
jonathadv/metroclima-cli
1511c3495e4f7c2808eabf6f969d0a067002cc02
[ "MIT" ]
null
null
null
""" Metroclima database CLI tool Project information """ __title__ = 'metroclima' __description__ = 'A simple Python tool to retrieve information from ' \ 'the Porto Alegre city\'s Metroclima database.' __url__ = 'https://github.com/jonathadv/metroclima-dump' __version__ = '1.0.0' __author__ = 'Jonatha Daguerre Vasconcelos' __author_email__ = '[email protected]' __license__ = 'MIT' __copyright__ = 'Copyright 2018 Jonatha Daguerre Vasconcelos'
29.5625
72
0.744186
c862be6c5159bba2064f6ab471d2c3a2b96b3866
8,890
swift
Swift
CavernSeer/Models/Serializations/ProjectFile.swift
skgrush/CavernSeer
0571b7dd93e1515641726d03a93cb6a3218904d5
[ "MIT" ]
15
2021-01-03T17:30:00.000Z
2022-03-21T23:06:32.000Z
CavernSeer/Models/Serializations/ProjectFile.swift
skgrush/CavernSeer
0571b7dd93e1515641726d03a93cb6a3218904d5
[ "MIT" ]
26
2020-11-01T01:17:12.000Z
2021-12-27T15:04:59.000Z
CavernSeer/Models/Serializations/ProjectFile.swift
skgrush/CavernSeer
0571b7dd93e1515641726d03a93cb6a3218904d5
[ "MIT" ]
4
2021-06-21T02:44:33.000Z
2022-03-22T10:28:43.000Z
// // ProjectFile.swift // CavernSeer // // Created by Samuel Grush on 7/13/20. // Copyright © 2020 Samuel K. Grush. All rights reserved. // import Foundation import ARKit /// simd_float4x4 final class ProjectFile : NSObject, StoredFileProtocol { typealias CacheType = ProjectCacheFile static let filePrefix = "proj" static let fileExtension: String = "cavernseerproj" static let supportsSecureCoding: Bool = true static let currentEncodingVersion: Int32 = 1 let encodingVersion: Int32 let timestamp: Date let name: String let scans: [ProjectScanRelation] init(name: String, scans: [ProjectScanRelation]) { self.encodingVersion = ProjectFile.currentEncodingVersion self.timestamp = Date() self.name = name self.scans = scans } required init?(coder decoder: NSCoder) { let version = decoder.decodeInt32(forKey: PropertyKeys.version) self.encodingVersion = version if (version == 1) { self.timestamp = decoder.decodeObject( of: NSDate.self, forKey: PropertyKeys.timestamp )! as Date self.name = decoder.decodeObject( of: NSString.self, forKey: PropertyKeys.name )! as String self.scans = decoder.decodeObject( of: [NSArray.self, ProjectScanRelation.self], forKey: PropertyKeys.scans ) as! [ProjectScanRelation] } else { fatalError("Unexpected encoding version \(version)") } } func encode(with coder: NSCoder) { coder.encode(ProjectFile.currentEncodingVersion, forKey: PropertyKeys.version) coder.encode(timestamp, forKey: PropertyKeys.timestamp) coder.encode(name, forKey: PropertyKeys.name) coder.encode(scans as NSArray, forKey: PropertyKeys.scans) } private struct PropertyKeys { static let version = "version" static let timestamp = "timestamp" static let name = "name" static let scans = "scans" } func createCacheFile(thisFileURL: URL) -> ProjectCacheFile { return ProjectCacheFile( realFileURL: thisFileURL, timestamp: timestamp, displayName: name, img: nil ) } } extension ProjectFile { /// affected by the encoding version of its parent @objc(ProjectFile_ProjectScanRelation) final class ProjectScanRelation : NSObject, NSSecureCoding { typealias PositionType = Int32 static let supportsSecureCoding: Bool = true let encodingVersion: Int32 let scan: ScanFile /// transformation of this `ScanFile` from the common origin let transform: simd_float4x4 /// which scan (in the `ProjectFile.scans` array) is this one positioned relative to let positionedRelativeToScan: PositionType init(scan: ScanFile, transform: simd_float4x4, relative: PositionType) { self.encodingVersion = ProjectFile.currentEncodingVersion self.scan = scan self.transform = transform self.positionedRelativeToScan = relative } required init?(coder decoder: NSCoder) { let version = decoder.decodeInt32(forKey: PropertyKeys.version) self.encodingVersion = version if version == 1 { self.scan = decoder.decodeObject( of: ScanFile.self, forKey: PropertyKeys.scan )! self.transform = decoder.decode_simd_float4x4( prefix: PropertyKeys.transform ) self.positionedRelativeToScan = decoder.decodeInt32(forKey: PropertyKeys.positionedRelativeToScan) } else { fatalError("Unexpected encoding version \(version)") } } func encode(with coder: NSCoder) { coder.encode(ProjectFile.currentEncodingVersion, forKey: PropertyKeys.version) coder.encode(scan, forKey: PropertyKeys.scan) coder.encode(transform, forPrefix: PropertyKeys.transform) coder.encode( positionedRelativeToScan, forKey: PropertyKeys.positionedRelativeToScan ) } private struct PropertyKeys { static let version = "version" static let scan = "scan" static let transform = "transform" static let positionedRelativeToScan = "relative" } } // TODO // /// how station pairs/groups positionings are resolved // enum StationPositioningType : Int32 { // /// the origin // case OriginFixed = 1 // } // // /// joins two scans via common stations // @objc(ProjectFile_StationPair) // final class StationPair : NSObject, Identifiable, NSSecureCoding { // typealias Id = String // static let supportsSecureCoding: Bool = true // // let encodingVersion: Int32 // // var id: Id { name } // let name: String // let positioning: StationPositioningType // // let rootScan: ProjectScanRelation.PositionType // let secondScan: ProjectScanRelation.PositionType // // let originRootStation: SurveyStation.Identifier // let originSecondaryStation: SurveyStation.Identifier // // let radialRootStation: SurveyStation.Identifier // let radialSecondaryStation: SurveyStation.Identifier // // required init?(coder decoder: NSCoder) { // let version = decoder.decodeInt32(forKey: PropertyKeys.version) // self.encodingVersion = version // // if version == 1 { // self.name = decoder.decodeObject( // forKey: PropertyKeys.name // ) as! String // // let pos = decoder.decodeInt32(forKey: PropertyKeys.positioning) // self.positioning = StationPositioningType(rawValue: pos)! // // self.rootScan = decoder.decodeInt32(forKey: PropertyKeys.rootScan) // self.secondScan = decoder.decodeInt32( // forKey: PropertyKeys.secondScan) // // self.originRootStation = decoder.decodeObject( // of: NSUUID.self, // forKey: PropertyKeys.originRootStation // )! as SurveyStation.Identifier // self.originSecondaryStation = decoder.decodeObject( // of: NSUUID.self, // forKey: PropertyKeys.originSecondaryStation // )! as SurveyStation.Identifier // // self.radialRootStation = decoder.decodeObject( // of: NSUUID.self, // forKey: PropertyKeys.radialRootStation // )! as SurveyStation.Identifier // self.radialSecondaryStation = decoder.decodeObject( // of: NSUUID.self, // forKey: PropertyKeys.radialSecondaryStation // )! as SurveyStation.Identifier // } else { // fatalError("Unexpected encoding version \(version)") // } // } // // func encode(with coder: NSCoder) { // coder.encode(ProjectFile.currentEncodingVersion, // forKey: PropertyKeys.version) // // coder.encode(name as NSString, forKey: PropertyKeys.name) // coder.encode(positioning.rawValue, forKey: PropertyKeys.positioning) // coder.encode(rootScan, forKey: PropertyKeys.rootScan) // coder.encode(secondScan, forKey: PropertyKeys.secondScan) // coder.encode(originRootStation, // forKey: PropertyKeys.originRootStation) // coder.encode(originSecondaryStation, // forKey: PropertyKeys.originSecondaryStation) // coder.encode(radialRootStation, // forKey: PropertyKeys.radialRootStation) // coder.encode(radialSecondaryStation, // forKey: PropertyKeys.radialSecondaryStation) // // } // // func calculateTransform() { } // // private struct PropertyKeys { // static let version = "version" // static let name = "name" // static let positioning = "positioning" // static let rootScan = "rootScan" // static let secondScan = "secondScan" // static let originRootStation = "originRootStation" // static let originSecondaryStation = "originSecondaryStation" // static let radialRootStation = "radialRootStation" // static let radialSecondaryStation = "radialSecondaryStation" // } // } }
36.285714
92
0.595726
f9370f561bcb2e1cbcc3fe08d94b8e4d6fe4d3b7
93
go
Go
version.go
sourya-deepsource/stopwatch
46e3f3537b82c716e6d7dae1d1ba409d2f5128c3
[ "BSD-3-Clause" ]
14
2015-04-22T17:30:39.000Z
2021-01-17T22:10:33.000Z
version.go
sourya-deepsource/stopwatch
46e3f3537b82c716e6d7dae1d1ba409d2f5128c3
[ "BSD-3-Clause" ]
4
2017-04-17T18:55:40.000Z
2018-04-30T16:33:53.000Z
version.go
sourya-deepsource/stopwatch
46e3f3537b82c716e6d7dae1d1ba409d2f5128c3
[ "BSD-3-Clause" ]
6
2015-04-20T20:52:32.000Z
2020-11-23T06:33:10.000Z
package stopwatch // VERSION represents the version of this library const VERSION = "1.0.0"
18.6
49
0.763441
7e9a46d0726f37e217e87324383afe246ec34957
3,405
kt
Kotlin
src/main/java/com/sayzen/campfiresdk/controllers/ControllerAlive.kt
ZeonXX/CampfireSDKKotlin
f35704dd1b362a631055fa64768decc0d612a46c
[ "Apache-2.0" ]
null
null
null
src/main/java/com/sayzen/campfiresdk/controllers/ControllerAlive.kt
ZeonXX/CampfireSDKKotlin
f35704dd1b362a631055fa64768decc0d612a46c
[ "Apache-2.0" ]
null
null
null
src/main/java/com/sayzen/campfiresdk/controllers/ControllerAlive.kt
ZeonXX/CampfireSDKKotlin
f35704dd1b362a631055fa64768decc0d612a46c
[ "Apache-2.0" ]
4
2019-10-27T09:31:52.000Z
2021-12-31T13:26:22.000Z
package com.sayzen.campfiresdk.controllers import android.content.Intent import com.dzen.campfire.api.models.notifications.project.NotificationAlive import com.dzen.campfire.api.requests.project.RProjectVersionGet import com.dzen.campfire.api_media.requests.RResourcesGet import com.sayzen.campfiresdk.R import com.sayzen.campfiresdk.models.events.account.EventAccountCurrentChanged import com.sayzen.campfiresdk.models.events.notifications.EventNotification import com.sup.dev.android.tools.ToolsJobScheduler import com.sup.dev.android.tools.ToolsStorage import com.sup.dev.java.libs.debug.info import com.sup.dev.java.libs.eventBus.EventBus import com.sup.dev.java.tools.ToolsDate import com.sup.dev.java.tools.ToolsThreads object ControllerAlive { private val eventBus = EventBus .subscribe(EventAccountCurrentChanged::class) { schedule() } .subscribe(EventNotification::class) { if (it.notification is NotificationAlive) onPush() } fun init() { } private fun onPush() { info("ControllerAlive", "push") ToolsStorage.put("ControllerAlive.push", System.currentTimeMillis()) } private fun schedule() { if (ControllerApi.account.getId() != 1L) return info("ControllerAlive", "subscribe") ToolsJobScheduler.scheduleJob(15, 1000L * 60 * 5) { info("ControllerAlive", "start check") checkServer() checkServerMedia() checkPush() schedule() } } private fun checkServer(tryCount: Int = 10) { RProjectVersionGet() .onComplete { info("ControllerAlive", "Check server done") } .onError { info("ControllerAlive", "Check server ERROR") if (tryCount <= 0) ControllerNotifications.chanelOther.post(R.drawable.logo_campfire_alpha_black_and_white_no_margins, "Алерт!", "Сервер недоступен!", Intent(), "ControllerAlive_1") else ToolsThreads.main(10000) { checkServerMedia(tryCount - 1) } } .send(api) } private fun checkServerMedia(tryCount: Int = 10) { RResourcesGet(1) .onComplete { info("ControllerAlive", "Check media server done") } .onError { info("ControllerAlive", "Check media server ERROR") if (tryCount <= 0) ControllerNotifications.chanelOther.post(R.drawable.logo_campfire_alpha_black_and_white_no_margins, "Алерт!", "Медиа сервер недоступен!", Intent(), "ControllerAlive_2") else ToolsThreads.main(10000) { checkServerMedia(tryCount - 1) } } .send(apiMedia) } private fun checkPush() { val time = ToolsStorage.getLong("ControllerAlive.push", 0) if (time < System.currentTimeMillis() - 1000L * 60 * 60) { info("ControllerAlive", "Check push ERROR") ControllerNotifications.chanelOther.post(R.drawable.logo_campfire_alpha_black_and_white_no_margins, "Алерт!", "Пуши не работают. Последнйи пуш: ${ToolsDate.dateToString(time)}", Intent(), "ControllerAlive_2") } else { info("ControllerAlive", "Check push done") } } }
40.535714
220
0.628781
b36600c0007234d96ffbd2c16850a8d03bde32b5
1,988
py
Python
pushNotification/pushNotification/pushNotification.py
mkalioby/Python_Notifications
56d1e404fbc7496febc2955edc1359438718cc75
[ "MIT" ]
1
2015-10-10T12:41:17.000Z
2015-10-10T12:41:17.000Z
pushNotification/pushNotification/pushNotification.py
mkalioby/Python_Notifications
56d1e404fbc7496febc2955edc1359438718cc75
[ "MIT" ]
null
null
null
pushNotification/pushNotification/pushNotification.py
mkalioby/Python_Notifications
56d1e404fbc7496febc2955edc1359438718cc75
[ "MIT" ]
null
null
null
#! /usr/bin/python from __future__ import print_function try: import ConfigParser except: import configparser as ConfigParser import os import simplejson,sys from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError import urllib class NoAPIKey(Exception): def __init__(self, message): self.message = message def getAPIKey(): config = ConfigParser.RawConfigParser() if os.path.exists(os.path.expanduser("~/.pushNotification.cfg")): config.read(os.path.expanduser("~/.pushNotification.cfg")) else: if os.path.exists("/etc/pushNotification.cfg"): config.read("/etc/pushNotification.cfg") else: return "" return config.get("API","key") def push(msg,topic,CUSTOM_API_KEY=""): API_KEY=getAPIKey() if CUSTOM_API_KEY!="": API_KEY=CUSTOM_API_KEY if API_KEY=="": raise NoAPIKey("You have to set the API KEY at /etc/pushNotification.cfg or ~/.pushNotification.cfg") jGcmData={} jData={} jData["message"]= msg jGcmData["to"]= "/topics/"+topic # if len(sys.argv) > 2: jGcmData["to"]="/topics/"+sys.argv[2].strip() jGcmData["data"]= jData data=simplejson.dumps(jGcmData) req=Request("http://android.googleapis.com/gcm/send",data) req.add_header("Authorization","key=" + API_KEY) req.add_header("Content-Type", "application/json"); try: response = urlopen(req) except: req=Request("https://android.googleapis.com/gcm/send",data.encode('utf8')) req.add_header("Authorization","key=" + API_KEY) req.add_header("Content-Type", "application/json"); response= urllib.request.urlopen(req) return response.read() if __name__=="__main__": if sys.argv[1]=="--help" or sys.argv[1]=="-h": print ("""This script sends notifications to Android Phones. python pushNotification msg topic """) exit(0) msg=sys.argv[1] topic=sys.argv[2] print (push(msg,topic)) print ("Check your device/emulator for notification.")
28.811594
103
0.732897
d5b73a8c53e0bb8add0f8bf46aa92ea1df3931ad
1,100
lua
Lua
questions/numbers/q00081/init.lua
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
2
2019-08-25T09:37:27.000Z
2021-01-25T20:22:30.000Z
questions/numbers/q00081/init.lua
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
28
2019-07-04T19:53:36.000Z
2020-10-24T13:27:56.000Z
questions/numbers/q00081/init.lua
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
null
null
null
addition_table = function() columns = 8 min_range = 101 max_range = 499 adder = min_range + math.random(max_range - min_range); substr = min_range + math.random(adder - min_range); q = {} for i=0,columns-1 do q[i] = {} q[i][1] = min_range + math.random(899 - adder) q[i][2] = q[i][1] + adder q[i][3] = q[i][2] - substr q[i][4] = math.random(3) end style = {} style["text-align"] = "center" style["width"] = "70px" text = lib.start_table() text = text .. lib.start_row() text = text .. lib.add_cell("A", style) text = text .. lib.add_cell("B=A+" .. tostring(adder), style) text = text .. lib.add_cell("C=B-" .. tostring(substr), style) text = text .. lib.end_row() for c=0,columns-1 do text = text .. lib.start_row() for r=1,3 do if q[c][4] ~= r then text = text .. lib.add_cell(lib.check_number(q[c][r]), style) else text = text .. lib.add_cell(tostring(q[c][r]), style) end end text = text .. lib.end_row() end text = text .. lib.end_table() return text end
22.916667
69
0.56
515e860cf3b0bcd1e09b2f9da64d5577b1e6f251
3,146
rs
Rust
src/pool/tests.rs
BusyJay/yatp
6dc4a84646868c51104bc8ba8860d7b6cd0464c3
[ "Apache-2.0" ]
null
null
null
src/pool/tests.rs
BusyJay/yatp
6dc4a84646868c51104bc8ba8860d7b6cd0464c3
[ "Apache-2.0" ]
null
null
null
src/pool/tests.rs
BusyJay/yatp
6dc4a84646868c51104bc8ba8860d7b6cd0464c3
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. use crate::pool::*; use crate::queue; use crate::task::callback::{Handle, Runner}; use rand::seq::SliceRandom; use std::sync::mpsc; use std::thread; use std::time::*; #[test] fn test_basic() { let r = Runner::new(3); let mut builder = Builder::new("test_basic"); builder.max_thread_count(4); let pool = builder.build(queue::simple, CloneRunnerBuilder(r)); let (tx, rx) = mpsc::channel(); // Task should be executed immediately. let t = tx.clone(); pool.spawn(move |_: &mut Handle<'_>| t.send(1).unwrap()); assert_eq!(Ok(1), rx.recv_timeout(Duration::from_millis(10))); // Tasks should be executed concurrently. let mut pairs = vec![]; for _ in 0..4 { let (tx1, rx1) = mpsc::channel(); let (tx2, rx2) = mpsc::channel(); pool.spawn(move |_: &mut Handle<'_>| { let t = rx1.recv().unwrap(); tx2.send(t).unwrap(); }); pairs.push((tx1, rx2)); } pairs.shuffle(&mut rand::thread_rng()); for (tx, rx) in pairs { let value: u64 = rand::random(); tx.send(value).unwrap(); assert_eq!(value, rx.recv_timeout(Duration::from_millis(1000)).unwrap()); } // A bunch of tasks should be executed correctly. let cases: Vec<_> = (10..1000).collect(); for id in &cases { let t = tx.clone(); let id = *id; pool.spawn(move |_: &mut Handle<'_>| t.send(id).unwrap()); } let mut ans = vec![]; for _ in 10..1000 { let r = rx.recv_timeout(Duration::from_millis(1000)).unwrap(); ans.push(r); } ans.sort(); assert_eq!(cases, ans); // Shutdown should only wait for at most one tasks. for _ in 0..5 { let t = tx.clone(); pool.spawn(move |_: &mut Handle<'_>| { thread::sleep(Duration::from_millis(100)); t.send(0).unwrap(); }); } pool.shutdown(); for _ in 0..4 { if rx.try_recv().is_err() { break; } } assert_eq!( Err(mpsc::RecvTimeoutError::Timeout), rx.recv_timeout(Duration::from_millis(250)) ); // Shutdown should stop processing tasks. pool.spawn(move |_: &mut Handle<'_>| tx.send(2).unwrap()); let res = rx.recv_timeout(Duration::from_millis(10)); assert_eq!(res, Err(mpsc::RecvTimeoutError::Timeout)); } #[test] fn test_remote() { let r = Runner::new(3); let mut builder = Builder::new("test_remote"); builder.max_thread_count(4); let pool = builder.build(queue::simple, CloneRunnerBuilder(r)); // Remote should work just like pool. let remote = pool.remote(); let (tx, rx) = mpsc::channel(); let t = tx.clone(); remote.spawn(move |_: &mut Handle<'_>| t.send(1).unwrap()); assert_eq!(Ok(1), rx.recv_timeout(Duration::from_millis(500))); // Shutdown should stop processing tasks. pool.shutdown(); remote.spawn(move |_: &mut Handle<'_>| tx.send(2).unwrap()); let res = rx.recv_timeout(Duration::from_millis(500)); assert_eq!(res, Err(mpsc::RecvTimeoutError::Timeout)); }
30.843137
81
0.587095
797741b73416f679662ff7b1780b36f7d3be3b41
144,880
cc
C++
xconv/src/mainWS.cc
scattering-central/CCP13
e78440d34d0ac80d2294b131ca17dddcf7505b01
[ "BSD-3-Clause" ]
null
null
null
xconv/src/mainWS.cc
scattering-central/CCP13
e78440d34d0ac80d2294b131ca17dddcf7505b01
[ "BSD-3-Clause" ]
null
null
null
xconv/src/mainWS.cc
scattering-central/CCP13
e78440d34d0ac80d2294b131ca17dddcf7505b01
[ "BSD-3-Clause" ]
3
2017-09-05T15:15:22.000Z
2021-01-15T11:13:45.000Z
/******************************************************************************* mainWS.cc Associated Header file: mainWS.h *******************************************************************************/ #include <stdio.h> #include<iostream.h> #ifdef MOTIF #include <Xm/Xm.h> #include <Xm/MwmUtil.h> #include <Xm/MenuShell.h> #endif /* MOTIF */ #include "UxXt.h" #include <Xm/Separator.h> #include <Xm/ToggleB.h> #include <Xm/RowColumn.h> #include <Xm/Text.h> #include <Xm/ScrolledW.h> #include <Xm/TextF.h> #include <Xm/PushB.h> #include <Xm/Label.h> #include <Xm/SeparatoG.h> #include <Xm/BulletinB.h> #include <X11/Shell.h> /******************************************************************************* Includes, Defines, and Global variables from the Declarations Editor: *******************************************************************************/ #include <string.h> #include <stdlib.h> #include <ctype.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <X11/cursorfont.h> #include "xpm.h" #include "xconv.x.pm" #ifndef DESIGN_TIME #include "FileSelection.h" #include "ErrorMessage.h" #include "QuestionDialog.h" #include "InformationDialog.h" #include <iostream.h> #include <fstream.h> #ifndef LINUX #include <exception.h> #else #include <exception> #endif #include "xerror.h" #include "strng.h" #include "file.h" #endif extern swidget create_FileSelection(); extern swidget create_ErrorMessage(); extern swidget create_QuestionDialog(); extern swidget create_InformationDialog(); swidget FileSelect; swidget ErrMessage; swidget QuestDialog; swidget InfoDialog; Cursor busyCursor; char* stripws(char*); #ifndef DESIGN_TIME // Declarations for main conversion routine int match(strng[],int,strng&); static const int nTypes=24; static strng psTypes[nTypes]= { strng ("char"), strng ("short"), strng ("int"), strng ("float"), strng ("smar"), strng ("bmar"), strng ("fuji"), strng ("fuji2500"), strng ("rax2"), strng ("psci"), strng ("riso"), strng ("id2"), strng ("id3"), strng ("loq_1d"), strng ("loq_2d"), strng ("smv"), strng ("bruker_gfrm"), strng ("bruker_asc"), strng ("bruker_plosto"), strng ("tiff"), strng ("mar345"), strng ("bsl"), strng ("rax4"), strng ("ILL_SANS"), }; static const int CHAR=0; static const int SHORT=1; static const int INT=2; static const int FLOAT=3; static const int SMAR=4; static const int BMAR=5; static const int FUJI=6; static const int FUJI2500=7; static const int RAX2=8; static const int PSCI=9; static const int RISO=10; static const int ESRF_ID2=11; static const int ESRF_ID3=12; static const int LOQ1D=13; static const int LOQ2D=14; static const int SMV=15; static const int BR_GFRM=16; static const int BR_ASC=17; static const int BR_PLOSTO=18; static const int TIF=19; static const int MAR345=20; static const int BSL=21; static const int RAX4=22; static const int SANS=23; static myBool bSwap,tiffseries; static strng sType,sFile,sNthFile,sOutFile,soFile; static strng sHead1,sHead2; static int nSkip,nInPix,nInRast,nOutPix,nOutRast,nDataType; static int nFirst,nLast,nInc,nFrames,indice10,fileNo; static double dAspect,dRange; static strng gotFile; #endif #ifndef XKLOADDS #define XKLOADDS #endif /* XKLOADDS */ #include "mainWS.h" Widget mainWS; /******************************************************************************* Auxiliary code from the Declarations Editor: *******************************************************************************/ #ifndef DESIGN_TIME // ************************************************************* // Match input file type to allowed options // ************************************************************* int match (strng psOptions[], int nOptions, strng& sSelection) { for (int i = 0; i < nOptions; i++) if (psOptions[i] == sSelection) return i; return -1; } // ************************************************************* // Strip off leading and trailing whitespace in a string // ************************************************************* char* stripws(char* pptr) { int iflag; // Strip off leading white space iflag=0; do { if(isspace((int)pptr[0])) pptr++; else iflag=1; }while(!iflag); // Strip off trailing spaces iflag=0; do { if(isspace((int)pptr[strlen(pptr)-1])) pptr[strlen(pptr)-1]='\0'; else iflag=1; }while(!iflag); return pptr; } // ************************************************************* // Build icon pixmap // ************************************************************* static void SetIconImage(Widget wgt) { Pixmap iconmap; Screen *screen=XtScreen(wgt); Display *dpy=XtDisplay(wgt); XpmCreatePixmapFromData(dpy,RootWindowOfScreen(screen),xconv_x_pm,&iconmap,NULL,NULL); XtVaSetValues(wgt,XmNiconPixmap,iconmap,NULL); } #endif /******************************************************************************* The following are method functions. *******************************************************************************/ int _UxCmainWS::SaveProfile( Environment * pEnv, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME const char* pptr; if((pptr=strrchr(gotFile.data(),(int)'/'))==NULL) pptr=gotFile.data(); else pptr++; ofstream out_profile(gotFile.data(),ios::out); if(out_profile.bad()) { strcpy(error,"Error opening output file"); return 0; } else { out_profile<<"Xconv v1.0 profile"<<endl <<pptr<<endl <<sType.data()<<endl; if(SaveInPix) out_profile<<nInPix<<endl; else out_profile<<endl; if(SaveInRast) out_profile<<nInRast<<endl; else out_profile<<endl; if(SaveSkip) out_profile<<nSkip<<endl; else out_profile<<endl; if(SaveAspect) out_profile<<dAspect<<endl; else out_profile<<endl; if(SaveRange) out_profile<<dRange<<endl; else out_profile<<endl; if(SaveOutPix) out_profile<<nOutPix<<endl; else out_profile<<endl; if(SaveOutRast) out_profile<<nOutRast<<endl; else out_profile<<endl; if(bSwap) out_profile<<1<<endl; else out_profile<<0<<endl; return 1; } #endif } void _UxCmainWS::UpdateRun( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(firstField),XmNvalue,firstptr,NULL); XtVaSetValues(UxGetWidget(lastField),XmNvalue,lastptr,NULL); XtVaSetValues(UxGetWidget(incField),XmNvalue,incptr,NULL); } void _UxCmainWS::UpdateOutFields( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(outpixField),XmNvalue,outpixptr,NULL); XtVaSetValues(UxGetWidget(outrastField),XmNvalue,outrastptr,NULL); } int _UxCmainWS::Convert( Environment * pEnv, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME // ************************************************************* // Create input and output file objects and perform conversion // ************************************************************* try { BSLHeader* pHeader; BinaryOutFile* pBinary; InConvFile* pInFile; tiffOutFile* tifffile; txtOutFile* txtfile; int j; if(dtype>10) { soFile=sOutFile; int nOff; if ((nOff = soFile.find("#")) != NPS) { tiffseries=1; } else { tiffseries=0; } } // Loop over run numbers for (int i = nFirst; i <= nLast; i += nInc) { // Get file name for this run number sNthFile = InConvFile::getNthFileName (sFile, i); // Create an input binary/text file object of the required type switch(match(psTypes,nTypes,sType)) { case CHAR: // unsigned char pInFile=new BinInFile<unsigned char>(sNthFile.data(),nInPix,nInRast,bSwap,nSkip,dAspect); break; case SHORT: // unsigned short pInFile=new BinInFile<unsigned short>(sNthFile.data(),nInPix,nInRast,bSwap,nSkip,dAspect); break; case INT: // unsigned int pInFile=new BinInFile<unsigned int>(sNthFile.data(),nInPix,nInRast,bSwap,nSkip,dAspect); break; case FLOAT: // float pInFile=new BinInFile<float>(sNthFile.data(),nInPix,nInRast,bSwap,nSkip,dAspect); break; case SMAR: // small MAR (1200 x 1200) pInFile = new SMarInFile (sNthFile.data (), bSwap); break; case BMAR: // big MAR (2000 x 2000) pInFile = new BMarInFile (sNthFile.data (), bSwap); break; case FUJI: // Fuji image plate pInFile = new FujiInFile (sNthFile.data (), bSwap, dRange); break; case FUJI2500: // BAS2500 Fuji image plate pInFile = new Fuji2500InFile (sNthFile.data (), bSwap); break; case RAX2: // R-Axis II pInFile = new RAxisInFile (sNthFile.data (), bSwap); break; case RAX4: // R-Axis 4 pInFile = new RAxis4InFile (sNthFile.data (), bSwap); break; case PSCI: // Photonics Science CCD pInFile = new PSciInFile (sNthFile.data (), bSwap); break; case RISO: // Riso file format pInFile = new RisoInFile (sNthFile.data ()); if(strlen(XmTextGetString(header1Text))==0) { sHead1=strng(pInFile->GetTitle()); } break; case ESRF_ID2: // MAR CCD ESRF_ID2 pInFile = new MARInFile (sNthFile.data ()); break; case MAR345://MAR345 pInFile = new Mar345InFile (sNthFile.data ()); break; case ESRF_ID3://ESRF ID3 pInFile = new TiffInFile (sNthFile.data (),0); break; case LOQ1D: //log ID image pInFile = new LOQ1dInFile (sNthFile.data (),0); break; case LOQ2D://log 2D image pInFile = new LOQ2dInFile (sNthFile.data (),0); break; case SMV: //smv format pInFile = new SMVInFile (sNthFile.data ()); break; case BR_GFRM: pInFile =new BrukerInFile (sNthFile.data ()); break; case BR_ASC: pInFile =new BrukerAscInFile (sNthFile.data ()); break; /* case BR_PLOSTO: pInFile =new BrukerPLOSTOInFile (sNthFile.data ()); break;*/ case BSL: //BSl file pInFile =new BslInFile(sNthFile.data (),0,0); break; case SANS: // sans file format pInFile =new SANSInFile (sNthFile.data (),0); // pInFile = new TiffInFile (sNthFile.data (),0); break; case TIF: // Tif file format pInFile = new TiffInFile (sNthFile.data (),0); break; default: strcpy(error,"No matching file format: "); strcat(error,sType.data()); return 0; } #ifndef SOLARIS if (pInFile == NULL) { strcpy(error,"Error allocating memory"); return 0; } #endif if(dtype<10){ if (i == nFirst) { // Get the number of pixels from input file object if // none were specified from the command line if (nOutPix == 0) { nOutPix = pInFile->pixels (); } // Calculate number of rasters if necessary if (nOutRast == 0) { nOutRast = pInFile->rasters (nOutPix); } //pInFile->putcurrentdir(0); // Create BSL header and binary file objects nFrames = (nLast - nFirst + nInc) / nInc; //tiff multi frame image if (match(psTypes,nTypes,sType)==TIF &&nFrames==1) { nFrames=pInFile->getdircount(); pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),0); // AfxMessageBox(pHeader->binaryName ().data()); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; pInFile = new TiffInFile(sNthFile.data (),(j+1)); } } // BSL multi frame image else if (match(psTypes,nTypes,sType)==BSL &&nFrames==1) { int bslcount; bslcount=0; nFrames=pInFile->getdircount(); indice10 = pInFile->bslind(); fileNo =pInFile->bslfilNo(); pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),indice10); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); while(indice10!=0) { for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; pInFile = new BslInFile(sNthFile.data (),(j+1),bslcount); } pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; delete pBinary; bslcount++; pInFile = new BslInFile(sNthFile.data (),0,bslcount); //pInFile = new BslInFile(sNthFile.data (),(j+1),1); nFrames=pInFile->getdircount(); indice10 = pInFile->bslind(); fileNo =pInFile->bslfilNo(); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); pHeader->WriteHeader(nOutPix,nOutRast,dtype,nFrames,indice10,fileNo); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; pInFile = new BslInFile(sNthFile.data (),(j+1),bslcount); } } //////////////////////////LOQ file/////////////////////// else if ((match(psTypes,nTypes,sType)==LOQ1D||match(psTypes,nTypes,sType)==LOQ2D)&&nFrames==1) { pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),1); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; delete pBinary; //error of intensities file 3-for error file if (match(psTypes,nTypes,sType)==LOQ1D) { pInFile = new LOQ1dInFile (sNthFile.data (),3); }else //LOQ2D { pInFile = new LOQ2dInFile (sNthFile.data (),3); } nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); pHeader->WriteHeader(nOutPix,nOutRast,dtype,nFrames,0,2); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; delete pBinary; delete pHeader; //create calibration file 2-for calibration if (match(psTypes,nTypes,sType)==LOQ1D) { pInFile = new LOQ1dInFile (sNthFile.data (),2); }else //LOQ2D { pInFile = new LOQ2dInFile (sNthFile.data (),2); } nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); pHeader = new BSLHeader(InConvFile::getQAxFileName(sOutFile.data()).data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),0); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } //////////////////////////SANSfile/////////////////////// else if (match(psTypes,nTypes,sType)==SANS&&nFrames==1) { int error,dim; dim=pInFile->rasters(); error=pInFile->bslfilNo(); if(error==0) { pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),0); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } else { pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),1); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; delete pBinary; pInFile = new SANSInFile (sNthFile.data (),3); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); pHeader->WriteHeader(nOutPix,nOutRast,dtype,nFrames,0,2); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } if(dim==1) { pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; delete pBinary; delete pHeader; pInFile = new SANSInFile (sNthFile.data (),2); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); pHeader = new BSLHeader(InConvFile::getQAxFileName(sOutFile.data()).data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),0); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } } //////////////////////////// else { pHeader = new BSLHeader(sOutFile.data(),nOutPix,nOutRast,dtype,nFrames,sHead1.data(),sHead2.data(),0); pBinary = new BinaryOutFile ((pHeader->binaryName ()).data ()); } } // Convert pInFile->putdtype(dtype); pInFile->convert (*pHeader, *pBinary); delete pInFile; } else //convert to tiff image { if (i == nFirst) { // Get the number of pixels from input file object if // none were specified from the command line if (nOutPix == 0) { nOutPix = pInFile->pixels (); } // Calculate number of rasters if necessary if (nOutRast == 0) { nOutRast = pInFile->rasters (nOutPix); } if(dtype==10) { txtfile = new txtOutFile(sOutFile.data(),nOutPix,nOutRast); } else{ if(tiffseries==1) { sOutFile=InConvFile::getNthFileName (soFile, 1); } tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } nFrames = (nLast - nFirst + nInc) / nInc; //tiff multi frame image if (match(psTypes,nTypes,sType)==TIF &&nFrames==1) { nFrames=pInFile->getdircount(); for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } if(tiffseries==1) { delete tifffile; sOutFile=InConvFile::getNthFileName (soFile, j+2); tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } delete pInFile; pInFile = new TiffInFile(sNthFile.data (),(j+1)); } } //BSL multi frame image else if (match(psTypes,nTypes,sType)==BSL &&nFrames==1) { int bslcount; bslcount=0; nFrames=pInFile->getdircount(); indice10 = pInFile->bslind(); fileNo =pInFile->bslfilNo(); while(indice10!=0) { for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else { pInFile->convert(*tifffile); } if(tiffseries==1) { delete tifffile; sOutFile=InConvFile::getNthFileName (soFile, j+2); tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } delete pInFile; pInFile = new BslInFile(sNthFile.data (),(j+1),bslcount); } pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } if(tiffseries==1) { delete tifffile; sOutFile=InConvFile::getNthFileName (soFile, j+2); tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } delete pInFile; bslcount++; pInFile = new BslInFile(sNthFile.data (),0,bslcount); nFrames=pInFile->getdircount(); indice10 = pInFile->bslind(); fileNo =pInFile->bslfilNo(); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); } for ( j=0; j<(nFrames-1);j++) { pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else { pInFile->convert(*tifffile); } if(tiffseries==1) { delete tifffile; sOutFile=InConvFile::getNthFileName (soFile, j+2); tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } delete pInFile; pInFile = new BslInFile(sNthFile.data (),(j+1),bslcount); } } //////////////////////////LOQ file/////////////////////// else if ((match(psTypes,nTypes,sType)==LOQ1D||match(psTypes,nTypes,sType)==LOQ2D)&&nFrames==1) { pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } //create calibration file 2-for calibration if (match(psTypes,nTypes,sType)==LOQ1D) { pInFile = new LOQ1dInFile (sNthFile.data (),2); }else //LOQ2D { pInFile = new LOQ2dInFile (sNthFile.data (),2); } nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } delete pInFile; //error of intensities file 3-for error file if (match(psTypes,nTypes,sType)==LOQ1D) { pInFile = new LOQ1dInFile (sNthFile.data (),3); }else //LOQ2D { pInFile = new LOQ2dInFile (sNthFile.data (),3); } nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); } //////////////////////////SANSfile/////////////////////// else if (match(psTypes,nTypes,sType)==SANS&&nFrames==1) { int error,dim; dim=pInFile->rasters(); error=pInFile->bslfilNo(); pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } delete pInFile; if(dim==1) { pInFile = new SANSInFile (sNthFile.data (),2); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); }else if(error==1) { pInFile = new SANSInFile (sNthFile.data (),2); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); } if((dim==1)&&(error==1)) { pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } delete pInFile; pInFile = new SANSInFile (sNthFile.data (),3); nOutPix = pInFile->pixels (); nOutRast = pInFile->rasters (nOutPix); } } //////////////////////////// } pInFile->putdtype(dtype); if(dtype==10) { pInFile->convert(*txtfile); } else{ pInFile->convert(*tifffile); } if(tiffseries==1&& i<nLast) { delete tifffile; sOutFile=InConvFile::getNthFileName (soFile, i+2); tifffile = new tiffOutFile(sOutFile.data(),nOutPix,nOutRast); } delete pInFile; } } inpixptr = new char[10]; inrastptr = new char[10]; sprintf(inpixptr,"%d",nOutPix); sprintf(inrastptr,"%d",nOutRast); XtVaSetValues(UxGetWidget(outpixField),XmNvalue,inpixptr,NULL); XtVaSetValues(UxGetWidget(outrastField),XmNvalue,inrastptr,NULL); sprintf(inpixptr,"%d",pInFile->pixels()); sprintf(inrastptr,"%d",pInFile->rasters()); XtVaSetValues(UxGetWidget(inpixField),XmNvalue,inpixptr,NULL); XtVaSetValues(UxGetWidget(inrastField),XmNvalue,inrastptr,NULL); delete[] inpixptr; delete[] inrastptr; if(dtype<10) { delete pHeader; delete pBinary; } else if(dtype==10) { delete txtfile; } else{ delete tifffile; } } catch (XError& xerr) { sprintf(error,"Exception thrown: %s",xerr.sReason.data()); return 0; } #ifdef SOLARIS catch (xalloc& e) { strcpy(error,"Error allocating memory"); return 0; } #endif return 1; #endif } int _UxCmainWS::CheckOutFile( Environment * pEnv, char *sptr, char *error, Boolean bsl ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME // ********************************************************************** // Check that output file has been specified // and is writable and a valid BSL filename // ********************************************************************** if(strlen(sptr)==0) { strcpy(error,"Output file not specified"); return 0; } else if(bsl&&!mainWS_Legalbslname(mainWS,&UxEnv,sptr)) { strcpy(error,"Output file: Invalid header filename"); return 0; } else if(access(sptr,F_OK)==-1) { char*mptr,*pptr; mptr=new char[strlen(sptr)+1]; strcpy(mptr,sptr); pptr=strrchr(mptr,'/'); if(pptr!=NULL) mptr[strlen(sptr)-strlen(pptr)+1]='\0'; else strcpy(mptr,"./"); if(access(mptr,W_OK)==-1) { strcpy(error,"Output file: "); strcat(error,strerror(errno)); delete[] mptr; return 0; } else { delete[] mptr; } } else if(access(sptr,W_OK)==-1) { strcpy(error,"Output file: "); strcat(error,strerror(errno)); return 0; } else { char *jptr; jptr=new char[80]; strcpy(jptr,""); struct stat buf; if(strchr(sptr,(int)'/')==NULL) strcat(jptr,"./"); strcat(jptr,sptr); stat(jptr,&buf); if(S_ISDIR(buf.st_mode)) { strcpy(error,"Selection is a directory"); delete[] jptr; return 0; } else { delete[] jptr; } } return 1; #endif } void _UxCmainWS::UpdateData( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(datalabel),XmNlabelString,XmStringCreateSimple(dataptr),NULL); } void _UxCmainWS::Help( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME char *helpString; helpString=new char[80]; strcpy(helpString,"netscape -raise -remote "); if (ccp13ptr) { strcat(helpString," 'openFile ("); } else { strcat(helpString," 'openURL ("); } strcat(helpString,helpfile); strcat(helpString,")'"); if ((system (helpString) == -1)) { ErrorMessage_set(ErrMessage,&UxEnv,"Error opening netscape browser"); UxPopupInterface(ErrMessage,no_grab); } delete[] helpString; #endif } void _UxCmainWS::FieldsEditable( Environment * pEnv, int i ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(inpixField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(inrastField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(skipField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(aspectField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(inpixlabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(inrastlabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(skiplabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(aspectlabel),XmNsensitive,i,NULL); if(!strcmp(sType.data(),"id2")|| !strcmp(sType.data(),"id3")|| !strcmp(sType.data(),"loq_1d")|| !strcmp(sType.data(),"loq_2d")|| !strcmp(sType.data(),"smv")|| !strcmp(sType.data(),"bruker_gfrm")|| !strcmp(sType.data(),"bruker_asc")|| !strcmp(sType.data(),"bruker_plosto")|| !strcmp(sType.data(),"mar345")|| !strcmp(sType.data(),"tiff")|| !strcmp(sType.data(),"ILL_SANS")|| !strcmp(sType.data(),"bsl") ) XtVaSetValues(UxGetWidget(toggleButton1),XmNsensitive,0,NULL); else XtVaSetValues(UxGetWidget(toggleButton1),XmNsensitive,1,NULL); XtVaSetValues(UxGetWidget(inpixField),XmNcursorPositionVisible,i,NULL); XtVaSetValues(UxGetWidget(inrastField),XmNcursorPositionVisible,i,NULL); XtVaSetValues(UxGetWidget(skipField),XmNcursorPositionVisible,i,NULL); XtVaSetValues(UxGetWidget(aspectField),XmNcursorPositionVisible,i,NULL); } void _UxCmainWS::FieldsEditable_out( Environment * pEnv, int i ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(optionMenu2),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(label6),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(label19),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(header1Text),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(label20),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(header2Text),XmNsensitive,i,NULL); } int _UxCmainWS::GetProfile( Environment * pEnv, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME char *sptr,*strptr; int i,iflag; if(!strcmp(sType.data(),"smar")|| !strcmp(sType.data(),"bmar")|| !strcmp(sType.data(),"fuji")|| !strcmp(sType.data(),"rax2")|| !strcmp(sType.data(),"rax4")|| !strcmp(sType.data(),"id2")|| !strcmp(sType.data(),"id3")|| !strcmp(sType.data(),"loq_1d")|| !strcmp(sType.data(),"loq_2d")|| !strcmp(sType.data(),"smv")|| !strcmp(sType.data(),"bruker_gfrm")|| !strcmp(sType.data(),"bruker_asc")|| !strcmp(sType.data(),"bruker_plosto")|| !strcmp(sType.data(),"mar345")|| !strcmp(sType.data(),"tiff")|| !strcmp(sType.data(),"bsl")|| !strcmp(sType.data(),"ILL_SANS")|| !strcmp(sType.data(),"psci")) { SaveInPix=0; SaveInRast=0; SaveSkip=0; SaveAspect=0; } else { // ********************************************************************** // Check input pixels,rasters // ********************************************************************** strptr=XmTextFieldGetString(inpixField); sptr=stripws(strptr); nInPix=atoi(sptr); if(strlen(sptr)==0) { SaveInPix=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Input pixels: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nInPix<=0) { strcpy(error,"Invalid number of input pixels"); XtFree(strptr); return 0; } } SaveInPix=1; } XtFree(strptr); strptr=XmTextFieldGetString(inrastField); sptr=stripws(strptr); nInRast=atoi(sptr); if(strlen(sptr)==0) { SaveInRast=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Input rasters: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nInRast<=0) { strcpy(error,"Invalid number of input rasters"); XtFree(strptr); return 0; } } SaveInRast=1; } XtFree(strptr); // ********************************************************************** // Check bytes to skip // ********************************************************************** strptr=XmTextFieldGetString(skipField); sptr=stripws(strptr); nSkip=atoi(sptr); if(strlen(sptr)==0) { SaveSkip=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Bytes to skip: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nSkip<0) { strcpy(error,"Invalid number of bytes to skip"); XtFree(strptr); return 0; } } SaveSkip=1; } XtFree(strptr); // ********************************************************************** // Check aspect ratio // ********************************************************************** strptr=XmTextFieldGetString(aspectField); sptr=stripws(strptr); dAspect=atof(sptr); if(strlen(sptr)==0) { SaveAspect=0; } else if(dAspect<=0.) { strcpy(error,"Invalid aspect ratio"); XtFree(strptr); return 0; } else { iflag=0; for(i=0;i<strlen(sptr);i++) { if(!isdigit(sptr[i])) { if(sptr[i]="."&&!iflag) iflag=1; else { strcpy(error,"Invalid aspect ratio"); XtFree(strptr); return 0; } } } SaveAspect=1; } XtFree(strptr); } if(!strcmp(sType.data(),"fuji")) { // ********************************************************************** // Check dynamic range // ********************************************************************** strptr=XmTextFieldGetString(rangeField); sptr=stripws(strptr); dRange=atof(sptr); if(strlen(sptr)==0) { SaveRange=0; } else if(dRange<=0.) { strcpy(error,"Invalid dynamic range"); XtFree(strptr); return 0; } else { iflag=0; for(i=0;i<strlen(sptr);i++) { if(!isdigit(sptr[i])) { if(sptr[i]="."&&!iflag) iflag=1; else { strcpy(error,"Invalid dynamic range"); XtFree(strptr); return 0; } } } SaveRange=1; } XtFree(strptr); } else SaveRange=0; // ********************************************************************** // Check output pixels,rasters // ********************************************************************** strptr=XmTextFieldGetString(outpixField); sptr=stripws(strptr); nOutPix=atoi(sptr); if(strlen(sptr)==0) { SaveOutPix=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Output pixels: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nOutPix<=0) { strcpy(error,"Invalid number of output pixels"); XtFree(strptr); return 0; } } SaveOutPix=1; } XtFree(strptr); strptr=XmTextFieldGetString(outrastField); sptr=stripws(strptr); nOutRast=atoi(sptr); if(strlen(sptr)==0) { SaveOutRast=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Output rasters: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nOutRast<=0) { strcpy(error,"Invalid number of output rasters"); XtFree(strptr); return 0; } } SaveOutRast=1; } XtFree(strptr); // ********************************************************************** // Get swap option // ********************************************************************** if(XmToggleButtonGetState(toggleButton1)) bSwap=IS_TRUE; else bSwap=IS_FALSE; // ********************************************************************** // If everything OK return 1 // ********************************************************************** return 1; #endif } void _UxCmainWS::UpdateFields( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(inpixField),XmNvalue,inpixptr,NULL); XtVaSetValues(UxGetWidget(inrastField),XmNvalue,inrastptr,NULL); XtVaSetValues(UxGetWidget(skipField),XmNvalue,skptr,NULL); XtVaSetValues(UxGetWidget(aspectField),XmNvalue,asptr,NULL); XtVaSetValues(UxGetWidget(rangeField),XmNvalue,rangeptr,NULL); } Boolean _UxCmainWS::Legalbslname( Environment * pEnv, char *fptr ) { if (pEnv) pEnv->_major = NO_EXCEPTION; char *sptr; int i; /* Strip off path */ sptr=strrchr(fptr,'/'); if(sptr!=NULL) { fptr=++sptr; } if(strlen(fptr)!=10) { return(FALSE); } if(isalpha((int)fptr[0]) && isdigit((int)fptr[1]) && isdigit((int)fptr[2])) { if (strstr(fptr,"000.")!=fptr+3) { return(FALSE); } } else { return(FALSE); } if(isalnum((int)fptr[7]) && isalnum((int)fptr[8]) && isalnum((int)fptr[9])) { return(TRUE); } else { return(FALSE); } } int _UxCmainWS::CheckInFile( Environment * pEnv, char *sptr, char *error, Boolean multiple, Boolean bsl ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME // ********************************************************************** // Check that input files have been specified // and are readable // ********************************************************************** int i; char c1,c2; c1='#'; c2='%'; if(strlen(sptr)==0) { strcpy(error,"Input file not specified"); return 0; } else if(multiple&&(strchr(sptr,(int)c1)||strchr(sptr,(int)c2))) { for(i=nFirst;i<=nLast;i+=nInc) { sNthFile=InConvFile::getNthFileName(strng(sptr),i); char* mptr=new char[strlen(sNthFile.data())+1]; strcpy(mptr,sNthFile.data()); if(bsl&&!mainWS_Legalbslname(mainWS,&UxEnv,mptr)) { strcpy(error,"Input file "); strcat(error,sNthFile.data()); strcat(error," : Invalid header filename"); return 0; } else if(access(sNthFile.data(),R_OK)==-1) { strcpy(error,"Input file "); strcat(error,sNthFile.data()); strcat(error,": "); strcat(error,strerror(errno)); return 0; } else { char *jptr; jptr=new char[80]; strcpy(jptr,""); struct stat buf; if(strchr(sNthFile.data(),(int)'/')==NULL) strcat(jptr,"./"); strcat(jptr,sNthFile.data()); stat(jptr,&buf); if(S_ISDIR(buf.st_mode)) { strcpy(error,"Selection: "); strcat(error,sNthFile.data()); strcat(error," is a directory"); delete[] jptr; return 0; } else { delete[] jptr; } } delete[] mptr; } } else if(bsl&&!mainWS_Legalbslname(mainWS,&UxEnv,sptr)) { strcpy(error,"Input file "); strcat(error,sNthFile.data()); strcat(error," : Invalid header filename"); return 0; } else if(access(sptr,R_OK)==-1) { strcpy(error,"Input file: "); strcat(error,strerror(errno)); return 0; } else { char *jptr; jptr=new char[80]; strcpy(jptr,""); struct stat buf; if(strchr(sptr,(int)'/')==NULL) strcat(jptr,"./"); strcat(jptr,sptr); stat(jptr,&buf); if(S_ISDIR(buf.st_mode)) { strcpy(error,"Selection is a directory"); delete[] jptr; return 0; } else { delete[] jptr; } } return 1; #endif } void _UxCmainWS::RangeSensitive( Environment * pEnv, int i ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(rangeLabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(rangeField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(rangeField),XmNcursorPositionVisible,i,NULL); } void _UxCmainWS::RunSensitive( Environment * pEnv, int i ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(runLabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(firstLabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(firstField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(lastLabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(lastField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(incLabel),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(incField),XmNsensitive,i,NULL); XtVaSetValues(UxGetWidget(firstField),XmNcursorPositionVisible,i,NULL); XtVaSetValues(UxGetWidget(lastField),XmNcursorPositionVisible,i,NULL); XtVaSetValues(UxGetWidget(incField),XmNcursorPositionVisible,i,NULL); } int _UxCmainWS::FileSelectionOK( Environment * pEnv, int fok, char *sptr, swidget *sw, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME gotFile=strng(sptr); if(fok) { if(*sw==infileText||*sw==outfileText) { XmTextSetString(UxGetWidget(*sw),sptr); XmTextSetInsertionPosition(UxGetWidget(*sw),strlen(sptr)) ; return 1; } else if(*sw==saveButton) { if(mainWS_SaveProfile(mainWS,&UxEnv,error)) return 1; else return 0; } else if(*sw==loadButton) { if(mainWS_LoadProfile(mainWS,&UxEnv,error)) return 1; else return 0; } } #endif } int _UxCmainWS::CheckSize( Environment * pEnv, int nrec, int nrast, int nsize ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME char* jptr; struct stat buf; jptr=new char[80]; strcpy(jptr,""); if(strchr(sNthFile.data(),(int)'/')==NULL) strcat(jptr,"./"); strcat(jptr,sNthFile.data()); stat(jptr,&buf); if( buf.st_size<(off_t)(nrec*nrast*nsize+nSkip) ) { delete[] jptr; return 0; } else { delete[] jptr; } #endif } int _UxCmainWS::GetParams( Environment * pEnv, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME char *sptr,*strptr; int i,iflag; // ********************************************************************** // Check first, last and increment in run no. // ********************************************************************** strptr=XmTextFieldGetString(firstField); sptr=stripws(strptr); nFirst=atoi(sptr); if(strlen(sptr)==0) { strcpy(error,"First run number not specified"); XtFree(strptr); return 0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"First run number: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nFirst<0) { strcpy(error,"Invalid first run number"); XtFree(strptr); return 0; } } } XtFree(strptr); strptr=XmTextFieldGetString(lastField); sptr=stripws(strptr); nLast=atoi(sptr); if(strlen(sptr)==0) { strcpy(error,"Last run number not specified"); XtFree(strptr); return 0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Last run number: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nLast<nFirst) { strcpy(error,"Invalid last run number"); XtFree(strptr); return 0; } } } XtFree(strptr); strptr=XmTextFieldGetString(incField); sptr=stripws(strptr); nInc=atoi(sptr); if(strlen(sptr)==0) { strcpy(error,"Run number increment not specified"); XtFree(strptr); return 0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Run number increment: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nInc<=0||(nLast-nFirst)%nInc!=0) { strcpy(error,"Invalid run number increment"); XtFree(strptr); return 0; } } } XtFree(strptr); // ********************************************************************** // Check that input files have been specified // and are readable // ********************************************************************** strptr=XmTextGetString(infileText); sptr=stripws(strptr); if (strcmp(sType.data(),"bsl")) { if(mainWS_CheckInFile(mainWS,&UxEnv,sptr,error,TRUE,FALSE)) { sFile=strng(sptr); XtFree(strptr); } else { XtFree(strptr); return 0; } }else { if(mainWS_CheckInFile(mainWS,&UxEnv,sptr,error,TRUE,TRUE)) { sFile=strng(sptr); XtFree(strptr); } else { XtFree(strptr); return 0; } } // ********************************************************************** // Check that output file has been specified // and is writable and a valid BSL filename // ********************************************************************** strptr=XmTextGetString(outfileText); sptr=stripws(strptr); if(dtype<10){ if(!mainWS_CheckOutFile(mainWS,&UxEnv,sptr,error,TRUE)) { XtFree(strptr); return 0; } }/*else(!mainWS_CheckOutFile(mainWS,&UxEnv,sptr,error,FALSE)) { XtFree(strptr); return 0; }*/ // ********************************************************************** // Convert characters in output filename to uppercase // ********************************************************************** char* pptr; if((pptr=strrchr(sptr,(int)'/'))==NULL) pptr=sptr; else pptr++; for(i=0;i<=strlen(pptr);i++) { if(islower((int)pptr[i])) pptr[i]=toupper((int)pptr[i]); } sOutFile=strng(sptr); XmTextSetString(outfileText,sptr); XmTextSetInsertionPosition(outfileText,strlen(sptr)); XtFree(strptr); // ********************************************************************** // Check input and output pixels,rasters // ********************************************************************** if((strcmp(dataptr,"riso")!=0)&& (strcmp(dataptr,"id2")!=0)&& (strcmp(dataptr,"bsl")!=0)&& (strcmp(dataptr,"tiff")!=0)&& (strcmp(dataptr,"id3")!=0)&& (strcmp(dataptr,"smv")!=0)&& (strcmp(dataptr,"loq_1d")!=0)&& (strcmp(dataptr,"loq_2d")!=0)&& (strcmp(dataptr,"gfrm")!=0)&& (strcmp(dataptr,"asc")!=0)&& (strcmp(dataptr,"plosto")!=0)&& (strcmp(dataptr,"ILL_SANS")!=0)&& (strcmp(dataptr,"mar345")!=0)) { strptr=XmTextFieldGetString(inpixField); sptr=stripws(strptr); nInPix=atoi(sptr); if(strlen(sptr)==0) { strcpy(error,"Number of input pixels not specified"); XtFree(strptr); return 0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Input pixels: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nInPix<=0) { strcpy(error,"Invalid number of input pixels"); XtFree(strptr); return 0; } } } XtFree(strptr); strptr=XmTextFieldGetString(inrastField); sptr=stripws(strptr); nInRast=atoi(sptr); if(strlen(sptr)==0) { strcpy(error,"Number of input rasters not specified"); XtFree(strptr); return 0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Input rasters: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nInRast<=0) { strcpy(error,"Invalid number of input rasters"); XtFree(strptr); return 0; } } } XtFree(strptr); } else { nInPix=0; nInRast=0; } strptr=XmTextFieldGetString(outpixField); sptr=stripws(strptr); nOutPix=atoi(sptr); if(strlen(sptr)==0) { nOutPix=nInPix; inpixptr=stripws(XmTextFieldGetString(inpixField)); XtVaSetValues(UxGetWidget(outpixField),XmNvalue,inpixptr,NULL); XtFree(inpixptr); } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Output pixels: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nOutPix<=0) { strcpy(error,"Invalid number of output pixels"); XtFree(strptr); return 0; } } } XtFree(strptr); strptr=XmTextFieldGetString(outrastField); sptr=stripws(strptr); nOutRast=atoi(sptr); if(strlen(sptr)==0) { nOutRast=nInRast; inrastptr=stripws(XmTextFieldGetString(inrastField)); XtVaSetValues(UxGetWidget(outrastField),XmNvalue,inrastptr,NULL); XtFree(inrastptr); } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Output rasters: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nOutRast<=0) { strcpy(error,"Invalid number of output rasters"); XtFree(strptr); return 0; } } } XtFree(strptr); // ********************************************************************** // Check bytes to skip // ********************************************************************** strptr=XmTextFieldGetString(skipField); sptr=stripws(strptr); nSkip=atoi(sptr); if(strlen(sptr)==0) { nSkip=0; } else { for(i=0;i<strlen(sptr);i++) { if(sptr[i]=='.') { strcpy(error,"Bytes to skip: Integer value expected"); XtFree(strptr); return 0; } else if(!isdigit(sptr[i])||nSkip<0) { strcpy(error,"Invalid number of bytes to skip"); XtFree(strptr); return 0; } } } XtFree(strptr); // ********************************************************************** // Check aspect ratio // ********************************************************************** strptr=XmTextFieldGetString(aspectField); sptr=stripws(strptr); dAspect=atof(sptr); if(strlen(sptr)==0) { dAspect=1.0; } else if(dAspect<=0.) { strcpy(error,"Invalid aspect ratio"); XtFree(strptr); return 0; } else { iflag=0; for(i=0;i<strlen(sptr);i++) { if(!isdigit(sptr[i])) { if(sptr[i]="."&&!iflag) iflag=1; else { strcpy(error,"Invalid aspect ratio"); XtFree(strptr); return 0; } } } } XtFree(strptr); // ********************************************************************** // Check dynamic range // ********************************************************************** if(strcmp(sType.data(),"fuji")==0) { strptr=XmTextFieldGetString(rangeField); sptr=stripws(strptr); dRange=atof(sptr); if(strlen(sptr)==0) { strcpy(error,"Dynamic range not specified"); XtFree(strptr); return 0; } else if (dRange<=0.) { strcpy(error,"Invalid dynamic range"); XtFree(strptr); return 0; } else { iflag=0; for(i=0;i<strlen(sptr);i++) { if(!isdigit(sptr[i])) { if(sptr[i]="."&&!iflag) iflag=1; else { strcpy(error,"Invalid dynamic range"); XtFree(strptr); return 0; } } } XtFree(strptr); } } else dRange=0.; // ********************************************************************** // Get output file headers // ********************************************************************** sptr=XmTextGetString(header1Text); if(strlen(sptr)==0) sHead1=strng(" "); else sHead1=strng(sptr); XtFree(sptr); sptr=XmTextGetString(header2Text); if(strlen(sptr)==0) sHead2=strng(" "); else sHead2=strng(sptr); XtFree(sptr); // ********************************************************************** // Get swap option // ********************************************************************** if(XmToggleButtonGetState(toggleButton1)) bSwap=IS_TRUE; else bSwap=IS_FALSE; // ********************************************************************** // If everything OK return 1 // ********************************************************************** return 1; #endif } void _UxCmainWS::UpdateRange( Environment * pEnv ) { if (pEnv) pEnv->_major = NO_EXCEPTION; XtVaSetValues(UxGetWidget(rangeField),XmNvalue,rangeptr,NULL); } int _UxCmainWS::LoadProfile( Environment * pEnv, char *error ) { if (pEnv) pEnv->_major = NO_EXCEPTION; #ifndef DESIGN_TIME char lstring[81]; int nstate; ifstream in_profile(gotFile.data(),(ios::openmode)(ios::in|ios::skipws)); if(in_profile.bad()) { strcpy(error,"Error opening input file"); return 0; } in_profile.getline(lstring,sizeof(lstring)); if(strcmp(stripws(lstring),"Xconv v1.0 profile")!=0) { strcpy(error,"Invalid file format"); return 0; } in_profile.getline(lstring,sizeof(lstring)); in_profile.getline(lstring,sizeof(lstring)); sType=strng(lstring); if(match(psTypes,nTypes,sType)==-1) { strcpy(error,"Profile specifies an invalid data format"); sType=strng(""); return 0; } in_profile.getline(lstring,sizeof(lstring)); inpixptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); inrastptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); skptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); asptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); rangeptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); outpixptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); outrastptr=strdup(lstring); in_profile.getline(lstring,sizeof(lstring)); nstate=atoi(lstring); if(!strcmp(sType.data(),"float")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_float,NULL); XtCallCallbacks(optionMenu_p1_float,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); } else if(!strcmp(sType.data(),"int")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_int,NULL); XtCallCallbacks(optionMenu_p1_int,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); } else if(!strcmp(sType.data(),"short")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_short,NULL); XtCallCallbacks(optionMenu_p1_short,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); } else if(!strcmp(sType.data(),"char")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_char,NULL); XtCallCallbacks(optionMenu_p1_char,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); } else if(!strcmp(sType.data(),"smar")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_smar,NULL); XtCallCallbacks(optionMenu_p1_smar,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"bmar")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bmar,NULL); XtCallCallbacks(optionMenu_p1_bmar,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"fuji")) { char *tmp; tmp=strdup(rangeptr); XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_fuji,NULL); XtCallCallbacks(optionMenu_p1_fuji,XmNactivateCallback,0); rangeptr=tmp; mainWS_UpdateRange(mainWS,&UxEnv); } else if(!strcmp(sType.data(),"rax2")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_rax2,NULL); XtCallCallbacks(optionMenu_p1_rax2,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"rax4")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_rax4,NULL); XtCallCallbacks(optionMenu_p1_rax4,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"psci")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_psci,NULL); XtCallCallbacks(optionMenu_p1_psci,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"tiff")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_tiff,NULL); XtCallCallbacks(optionMenu_p1_tiff,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"bsl")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bsl,NULL); XtCallCallbacks(optionMenu_p1_bsl,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"smv")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_smv,NULL); XtCallCallbacks(optionMenu_p1_smv,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"id2")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_id2,NULL); XtCallCallbacks(optionMenu_p1_id2,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"id3")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_id3,NULL); XtCallCallbacks(optionMenu_p1_id3,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"loq_1d")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_loq_1d,NULL); XtCallCallbacks(optionMenu_p1_loq_1d,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"loq_2d")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_loq_2d,NULL); XtCallCallbacks(optionMenu_p1_loq_2d,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"ILL_SANS")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_sans,NULL); XtCallCallbacks(optionMenu_p1_sans,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"mar345")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_mar345,NULL); XtCallCallbacks(optionMenu_p1_mar345,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"bruker_gfrm")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bruker_gfrm,NULL); XtCallCallbacks(optionMenu_p1_bruker_gfrm,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"bruker_asc")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bruker_asc,NULL); XtCallCallbacks(optionMenu_p1_bruker_asc,XmNactivateCallback,0); } else if(!strcmp(sType.data(),"bruker_plosto")) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bruker_plosto,NULL); XtCallCallbacks(optionMenu_p1_bruker_plosto,XmNactivateCallback,0); } if(strlen(outpixptr)!=0||strlen(outrastptr)!=0) mainWS_UpdateOutFields(mainWS,&UxEnv); XmToggleButtonSetState(toggleButton1,nstate,True); return 1; #endif } /******************************************************************************* The following are callback functions. *******************************************************************************/ void _UxCmainWS::activateCB_pushButton1( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { FileSelection_set(FileSelect,&UxEnv,&infileText,"*","Input file selection",FALSE,TRUE,1,0,0); UxPopupInterface(FileSelect,no_grab); } } void _UxCmainWS::Wrap_activateCB_pushButton1( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_pushButton1(UxWidget, UxClientData, UxCallbackArg); } /////////////////////////////////// void _UxCmainWS::valueChangedCB_infileText( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { char *sptr,*dumptr; char *ptr1="#"; char *ptr2="%"; int i,ilen,iflag; iflag=0; sptr=XmTextGetString(UxWidget); dumptr=sptr; ilen=(int)strlen(sptr); for(i=0;i<ilen;i++) { if(strstr(sptr,ptr1)!=NULL||strstr(sptr,ptr2)!=NULL) { mainWS_RunSensitive(UxThisWidget,&UxEnv,1); iflag=1; break; } sptr++; } if(!iflag) { firstptr="1"; lastptr="1"; incptr="1"; mainWS_UpdateRun(UxThisWidget,&UxEnv); mainWS_RunSensitive(UxThisWidget,&UxEnv,0); } XtFree(dumptr); } { //update file type char *sptr,*dumptr; int i,ilen; sptr=XmTextGetString(UxWidget); ilen=(int)strlen(sptr); for(i=0;i<ilen;i++) { if(strstr(sptr,".tif")!=NULL||strstr(sptr,".tiff")!=NULL||strstr(sptr,".TIF")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_tiff,NULL); XtCallCallbacks(optionMenu_p1_tiff,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".mar1200")!=NULL||strstr(sptr,".mar1600")!=NULL||strstr(sptr,".mar1800")!=NULL||\ strstr(sptr,".mar2400")!=NULL||strstr(sptr,".mar2000")!=NULL||strstr(sptr,".mar3000")!=NULL||\ strstr(sptr,".mar2300")!=NULL||strstr(sptr,".mar3450")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_mar345,NULL); XtCallCallbacks(optionMenu_p1_mar345,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".smv")!=NULL||strstr(sptr,".SMV")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_smv,NULL); XtCallCallbacks(optionMenu_p1_smv,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".Q")!=NULL||strstr(sptr,".QQ")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_loq_1d,NULL); XtCallCallbacks(optionMenu_p1_loq_1d,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".LQA")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_loq_2d,NULL); XtCallCallbacks(optionMenu_p1_loq_2d,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".gfrm")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bruker_gfrm,NULL); XtCallCallbacks(optionMenu_p1_bruker_gfrm,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".asc")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bruker_asc,NULL); XtCallCallbacks(optionMenu_p1_bruker_asc,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".osc")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_rax4,NULL); XtCallCallbacks(optionMenu_p1_rax4,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } if(strstr(sptr,".BSL")!=NULL) { XtVaSetValues(optionMenu1,XmNmenuHistory,optionMenu_p1_bsl,NULL); XtCallCallbacks(optionMenu_p1_bsl,XmNactivateCallback,0); mainWS_UpdateFields(mainWS,&UxEnv); break; } sptr++; } } } void _UxCmainWS::Wrap_valueChangedCB_infileText( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->valueChangedCB_infileText(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_float( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; rangeptr=""; dataptr="float"; #ifndef DESIGN_TIME sType=strng("float"); #endif mainWS_UpdateRange(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,1); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::activateCB_optionMenu_p1_BSL_out( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; XtVaSetValues(optionMenu2,XmNmenuHistory,optionMenu_p1_float32,NULL); XtCallCallbacks(optionMenu_p1_float32,XmNactivateCallback,0); mainWS_FieldsEditable_out(UxThisWidget,&UxEnv,1); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_BSL_out( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_BSL_out(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_tiff_8out( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=11; mainWS_FieldsEditable_out(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff_8out( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_tiff_8out(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_tiff_16out( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=12; mainWS_FieldsEditable_out(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff_16out( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_tiff_16out(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_txt_out( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=10; mainWS_FieldsEditable_out(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_txt_out( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_txt_out(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_float( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_float(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_int( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; rangeptr=""; dataptr="int"; #ifndef DESIGN_TIME sType=strng("int"); #endif mainWS_UpdateRange(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,1); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_int( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_int(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_short( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("short"); #endif mainWS_UpdateRange(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,1); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_short( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_short(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_char( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; rangeptr=""; dataptr="char"; #ifndef DESIGN_TIME sType=strng("char"); #endif mainWS_UpdateRange(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,1); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_char( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_char(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_smar( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="1200"; inrastptr="1200"; skptr="2400"; asptr="1.0"; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("smar"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_smar( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_smar(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_bmar( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="2000"; inrastptr="2000"; skptr="4000"; asptr="1.0"; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("bmar"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_bmar( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_bmar(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_fuji( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="2048"; inrastptr="4096"; skptr="8192"; asptr="1.0"; rangeptr="4.0"; dataptr="short"; #ifndef DESIGN_TIME sType=strng("fuji"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,1); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_fuji( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_fuji(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_fuji2500( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="2000"; inrastptr="2500"; skptr="0"; asptr="1.0"; rangeptr="5.0"; dataptr="short"; #ifndef DESIGN_TIME sType=strng("fuji2500"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_fuji2500( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_fuji2500(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_rax2( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="400"; inrastptr="1"; skptr="0"; asptr="1.0"; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("rax2"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_rax2( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_rax2(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_rax4( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="3000"; inrastptr="3000"; skptr="6000"; asptr="1.0"; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("rax4"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_rax4( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_rax4(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_psci( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr="768"; inrastptr="576"; skptr="0"; asptr="1.0"; rangeptr=""; dataptr="short"; #ifndef DESIGN_TIME sType=strng("psci"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_psci( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_psci(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_riso( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="riso"; #ifndef DESIGN_TIME sType=strng("riso"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_riso( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_riso(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_tiff( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="tiff"; #ifndef DESIGN_TIME sType=strng("tiff"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_tiff(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_bsl( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="bsl"; #ifndef DESIGN_TIME sType=strng("bsl"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_bsl( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_bsl(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_id3( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="id3"; #ifndef DESIGN_TIME sType=strng("id3"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_id3( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_id3(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_sans( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="ILL_SANS"; #ifndef DESIGN_TIME sType=strng("ILL_SANS"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_sans( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_sans(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_loq_2d( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="loq_2d"; #ifndef DESIGN_TIME sType=strng("loq_2d"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_loq_2d( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_loq_2d(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_loq_1d( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="loq_1d"; #ifndef DESIGN_TIME sType=strng("loq_1d"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_loq_1d( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_loq_1d(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_smv( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="smv"; #ifndef DESIGN_TIME sType=strng("smv"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_smv( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_smv(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_bruker_gfrm( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="gfrm"; #ifndef DESIGN_TIME sType=strng("bruker_gfrm"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_gfrm( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_bruker_gfrm(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_bruker_asc( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="asc"; #ifndef DESIGN_TIME sType=strng("bruker_asc"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_asc( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_bruker_asc(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_bruker_plosto( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="plosto"; #ifndef DESIGN_TIME sType=strng("bruker_plosto"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_plosto( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_bruker_plosto(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_mar345( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="mar345"; #ifndef DESIGN_TIME sType=strng("mar345"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_mar345( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_mar345(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_id2( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; inpixptr=""; inrastptr=""; skptr=""; asptr="1.0"; rangeptr=""; dataptr="id2"; #ifndef DESIGN_TIME sType=strng("id2"); #endif mainWS_UpdateFields(UxThisWidget,&UxEnv); mainWS_UpdateData(UxThisWidget,&UxEnv); mainWS_FieldsEditable(UxThisWidget,&UxEnv,0); mainWS_RangeSensitive(UxThisWidget,&UxEnv,0); } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_id2( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_id2(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::valueChangedCB_inpixField( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { /*inpixptr=XmTextFieldGetString(UxWidget); XtVaSetValues(UxGetWidget(outpixField),XmNvalue,inpixptr,NULL); XtFree(inpixptr); */ } } void _UxCmainWS::Wrap_valueChangedCB_inpixField( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->valueChangedCB_inpixField(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::valueChangedCB_inrastField( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { /*inrastptr=XmTextFieldGetString(UxWidget); XtVaSetValues(UxGetWidget(outrastField),XmNvalue,inrastptr,NULL); XtFree(inrastptr); */ } } void _UxCmainWS::Wrap_valueChangedCB_inrastField( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->valueChangedCB_inrastField(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_pushButton2( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { #ifndef DESIGN_TIME char* error; error=new char[80]; strcpy(error,""); if(!mainWS_GetParams(UxThisWidget,&UxEnv,error)) { ErrorMessage_set(ErrMessage,&UxEnv,error); UxPopupInterface(ErrMessage,no_grab); } else { XDefineCursor(UxDisplay,XtWindow(mainWS),busyCursor); XFlush(UxDisplay); if(mainWS_Convert(mainWS,&UxEnv,error)) { XUndefineCursor(UxDisplay,XtWindow(mainWS)); InformationDialog_set(InfoDialog,&UxEnv,"Conversion completed","Confirmation message"); UxPopupInterface(InfoDialog,no_grab); } else { XUndefineCursor(UxDisplay,XtWindow(mainWS)); ErrorMessage_set(ErrMessage,&UxEnv,error); UxPopupInterface(ErrMessage,no_grab); } } delete []error; #endif } } void _UxCmainWS::Wrap_activateCB_pushButton2( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_pushButton2(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_pushButton3( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { XDefineCursor(UxDisplay,XtWindow(mainWS),busyCursor); XFlush(UxDisplay); mainWS_Help(mainWS,&UxEnv); XUndefineCursor(UxDisplay,XtWindow(mainWS)); } } void _UxCmainWS::Wrap_activateCB_pushButton3( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_pushButton3(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_pushButton4( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { QuestionDialog_set(QuestDialog,&UxEnv,"Do you really want to quit?","Confirm exit"); UxPopupInterface(QuestDialog,no_grab); } } void _UxCmainWS::Wrap_activateCB_pushButton4( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_pushButton4(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_saveButton( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { #ifndef DESIGN_TIME char *error; error=new char[80]; strcpy(error,""); if(!mainWS_GetProfile(mainWS,&UxEnv,error)) { ErrorMessage_set(ErrMessage,&UxEnv,error); UxPopupInterface(ErrMessage,no_grab); } else { FileSelection_set(FileSelect,&UxEnv,&saveButton,"*.prf","Save profile",FALSE,TRUE,0,0,0); UxPopupInterface(FileSelect,no_grab); } #endif } } void _UxCmainWS::Wrap_activateCB_saveButton( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_saveButton(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_loadButton( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { #ifndef DESIGN_TIME FileSelection_set(FileSelect,&UxEnv,&loadButton,"*.prf","Load profile",FALSE,TRUE,1,0,0); UxPopupInterface(FileSelect,no_grab); #endif } } void _UxCmainWS::Wrap_activateCB_loadButton( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_loadButton(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_pushButton7( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; { FileSelection_set(FileSelect,&UxEnv,&outfileText,"*000.*","Output file selection",FALSE,TRUE,1,0,0); UxPopupInterface(FileSelect,no_grab); } } void _UxCmainWS::Wrap_activateCB_pushButton7( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_pushButton7(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_float32( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=0; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_float32( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_float32(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_float64( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=9; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_float64( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_float64(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_int16( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=3; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_int16( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_int16(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_uint16( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=4; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_uint16( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_uint16(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_int32( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=5; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_int32( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_int32(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_uint32( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=6; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_uint32( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_uint32(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_int64( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=7; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_int64( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_int64(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_uint64( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=8; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_uint64( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_uint64(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_char8( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=1; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_char8( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_char8(UxWidget, UxClientData, UxCallbackArg); } void _UxCmainWS::activateCB_optionMenu_p1_uchar8( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; dtype=2; } void _UxCmainWS::Wrap_activateCB_optionMenu_p1_uchar8( Widget wgt, XtPointer cd, XtPointer cb) { _UxCmainWS *UxContext; Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; UxContext = (_UxCmainWS *) UxGetContext(UxWidget); UxContext->activateCB_optionMenu_p1_uchar8(UxWidget, UxClientData, UxCallbackArg); } /******************************************************************************* The following is the destroyContext callback function. It is needed to free the memory allocated by the context. *******************************************************************************/ static void DelayedDelete( XtPointer obj, XtIntervalId *) { delete ((_UxCmainWS *) obj); } void _UxCmainWS::UxDestroyContextCB( Widget wgt, XtPointer cd, XtPointer cb) { Widget UxWidget = wgt; XtPointer UxClientData = cd; XtPointer UxCallbackArg = cb; ((_UxCmainWS *) UxClientData)->UxThis = NULL; XtAppAddTimeOut(UxAppContext, 0, DelayedDelete, UxClientData); } /******************************************************************************* The 'build_' function creates all the widgets using the resource values specified in the Property Editor. *******************************************************************************/ Widget _UxCmainWS::_build() { Widget _UxParent; Widget optionMenu_p1_shell; Widget optionMenu_p2_shell; Widget optionMenu_p3_shell; // Creation of mainWS _UxParent = UxParent; if ( _UxParent == NULL ) { _UxParent = UxTopLevel; } mainWS = XtVaCreatePopupShell( "mainWS", applicationShellWidgetClass, _UxParent, XmNheight, 659, XmNiconName, "xconv", XmNwidth, 800, XmNtitle, "CCP13 : xconv v6.0 ", XmNx, 0, XmNy, 0, XmNmaxHeight, 659, XmNmaxWidth, 800, NULL ); UxPutContext( mainWS, (char *) this ); UxThis = mainWS; // Creation of bulletinBoard1 bulletinBoard1 = XtVaCreateManagedWidget( "bulletinBoard1", xmBulletinBoardWidgetClass, mainWS, XmNresizePolicy, XmRESIZE_NONE, XmNunitType, XmPIXELS, XmNmarginHeight, 0, XmNmarginWidth, 0, XmNwidth, 800, XmNheight, 659, XmNnoResize, TRUE, XmNx, 2, XmNy, -1, NULL ); UxPutContext( bulletinBoard1, (char *) this ); // Creation of separatorGadget1 separatorGadget1 = XtVaCreateManagedWidget( "separatorGadget1", xmSeparatorGadgetClass, bulletinBoard1, XmNorientation, XmVERTICAL, XmNheight, 574, XmNwidth, 10, XmNx, 395, XmNseparatorType, XmSHADOW_ETCHED_IN, XmNy, 5, NULL ); UxPutContext( separatorGadget1, (char *) this ); // Creation of label1 label1 = XtVaCreateManagedWidget( "label1", xmLabelWidgetClass, bulletinBoard1, XmNx, 169, XmNy, 10, RES_CONVERT( XmNlabelString, "Input" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--25-180-100-100-p-125-iso8859-1" ), NULL ); UxPutContext( label1, (char *) this ); // Creation of label2 label2 = XtVaCreateManagedWidget( "label2", xmLabelWidgetClass, bulletinBoard1, XmNx, 566, XmNy, 10, RES_CONVERT( XmNlabelString, "Output" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--25-180-100-100-p-125-iso8859-1" ), NULL ); UxPutContext( label2, (char *) this ); // Creation of label3 label3 = XtVaCreateManagedWidget( "label3", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 80, RES_CONVERT( XmNlabelString, "Filename : " ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label3, (char *) this ); // Creation of pushButton1 pushButton1 = XtVaCreateManagedWidget( "pushButton1", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 310, XmNy, 77, RES_CONVERT( XmNlabelString, "Browse" ), XmNmarginHeight, 5, XmNmarginWidth, 5, XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( pushButton1, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_pushButton1, (XtPointer) NULL ); UxPutContext( pushButton1, (char *) this ); // Creation of label4 label4 = XtVaCreateManagedWidget( "label4", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 80, RES_CONVERT( XmNlabelString, "Filename : " ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label4, (char *) this ); // Creation of firstLabel firstLabel = XtVaCreateManagedWidget( "firstLabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 96, XmNy, 152, RES_CONVERT( XmNlabelString, "First" ), XmNfontList, UxConvertFontList("7x14" ), NULL ); UxPutContext( firstLabel, (char *) this ); // Creation of lastLabel lastLabel = XtVaCreateManagedWidget( "lastLabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 187, XmNy, 152, RES_CONVERT( XmNlabelString, "Last" ), XmNfontList, UxConvertFontList("7x14" ), NULL ); UxPutContext( lastLabel, (char *) this ); // Creation of incLabel incLabel = XtVaCreateManagedWidget( "incLabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 271, XmNy, 152, RES_CONVERT( XmNlabelString, "Inc" ), XmNfontList, UxConvertFontList("7x14" ), NULL ); UxPutContext( incLabel, (char *) this ); // Creation of firstField firstField = XtVaCreateManagedWidget( "firstField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 40, XmNx, 137, XmNy, 147, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( firstField, (char *) this ); // Creation of textField4 textField4 = XtVaCreateManagedWidget( "textField4", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 40, XmNx, 330, XmNy, 177, XmNheight, 2, NULL ); UxPutContext( textField4, (char *) this ); // Creation of runLabel runLabel = XtVaCreateManagedWidget( "runLabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 150, RES_CONVERT( XmNlabelString, "Run no :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( runLabel, (char *) this ); // Creation of scrolledWindowText1 scrolledWindowText1 = XtVaCreateManagedWidget( "scrolledWindowText1", xmScrolledWindowWidgetClass, bulletinBoard1, XmNscrollingPolicy, XmAPPLICATION_DEFINED, XmNvisualPolicy, XmVARIABLE, XmNscrollBarDisplayPolicy, XmSTATIC, XmNx, 117, XmNy, 77, NULL ); UxPutContext( scrolledWindowText1, (char *) this ); // Creation of infileText infileText = XtVaCreateManagedWidget( "infileText", xmTextWidgetClass, scrolledWindowText1, XmNwidth, 183, XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( infileText, XmNvalueChangedCallback, (XtCallbackProc) &_UxCmainWS::Wrap_valueChangedCB_infileText, (XtPointer) NULL ); UxPutContext( infileText, (char *) this ); // Creation of lastField lastField = XtVaCreateManagedWidget( "lastField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 40, XmNx, 221, XmNy, 147, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( lastField, (char *) this ); // Creation of label10 label10 = XtVaCreateManagedWidget( "label10", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 218, RES_CONVERT( XmNlabelString, "File type :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label10, (char *) this ); // Creation of optionMenu_p1 optionMenu_p1_shell = XtVaCreatePopupShell ("optionMenu_p1_shell", xmMenuShellWidgetClass, bulletinBoard1, XmNwidth, 1, XmNheight, 1, XmNallowShellResize, TRUE, XmNoverrideRedirect, TRUE, NULL ); optionMenu_p1 = XtVaCreateWidget( "optionMenu_p1", xmRowColumnWidgetClass, optionMenu_p1_shell, XmNrowColumnType, XmMENU_PULLDOWN, NULL ); UxPutContext( optionMenu_p1, (char *) this ); // Creation of optionMenu_p1_float optionMenu_p1_float = XtVaCreateManagedWidget( "optionMenu_p1_float", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "float" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_float, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_float, (XtPointer) NULL ); UxPutContext( optionMenu_p1_float, (char *) this ); // Creation of optionMenu_p1_int optionMenu_p1_int = XtVaCreateManagedWidget( "optionMenu_p1_int", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "int" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_int, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_int, (XtPointer) NULL ); UxPutContext( optionMenu_p1_int, (char *) this ); // Creation of optionMenu_p1_short optionMenu_p1_short = XtVaCreateManagedWidget( "optionMenu_p1_short", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "short" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_short, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_short, (XtPointer) NULL ); UxPutContext( optionMenu_p1_short, (char *) this ); // Creation of optionMenu_p1_char optionMenu_p1_char = XtVaCreateManagedWidget( "optionMenu_p1_char", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "char" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_char, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_char, (XtPointer) NULL ); UxPutContext( optionMenu_p1_char, (char *) this ); // Creation of optionMenu_p1_smar optionMenu_p1_smar = XtVaCreateManagedWidget( "optionMenu_p1_smar", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "smar" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_smar, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_smar, (XtPointer) NULL ); UxPutContext( optionMenu_p1_smar, (char *) this ); // Creation of optionMenu_p1_bmar optionMenu_p1_bmar = XtVaCreateManagedWidget( "optionMenu_p1_bmar", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "bmar" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_bmar, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_bmar, (XtPointer) NULL ); UxPutContext( optionMenu_p1_bmar, (char *) this ); // Creation of optionMenu_p1_fuji optionMenu_p1_fuji = XtVaCreateManagedWidget( "optionMenu_p1_fuji", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "fuji" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_fuji, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_fuji, (XtPointer) NULL ); UxPutContext( optionMenu_p1_fuji, (char *) this ); // Creation of optionMenu_p1_fuji2500 optionMenu_p1_fuji2500 = XtVaCreateManagedWidget( "optionMenu_p1_fuji2500", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "fuji2500" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_fuji2500, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_fuji2500, (XtPointer) NULL ); UxPutContext( optionMenu_p1_fuji2500, (char *) this ); // Creation of optionMenu_p1_rax2 optionMenu_p1_rax2 = XtVaCreateManagedWidget( "optionMenu_p1_rax2", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "rax2" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_rax2, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_rax2, (XtPointer) NULL ); UxPutContext( optionMenu_p1_rax2, (char *) this ); // Creation of optionMenu_p1_rax4 optionMenu_p1_rax4 = XtVaCreateManagedWidget( "optionMenu_p1_rax4", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "rax4" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_rax4, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_rax4, (XtPointer) NULL ); UxPutContext( optionMenu_p1_rax4, (char *) this ); // Creation of optionMenu_p1_psci optionMenu_p1_psci = XtVaCreateManagedWidget( "optionMenu_p1_psci", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "psci" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_psci, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_psci, (XtPointer) NULL ); UxPutContext( optionMenu_p1_psci, (char *) this ); // Creation of optionMenu_p1_riso optionMenu_p1_riso = XtVaCreateManagedWidget( "optionMenu_p1_riso", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "riso" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_riso, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_riso, (XtPointer) NULL ); UxPutContext( optionMenu_p1_riso, (char *) this ); //Creation of optionMenu_p1_tiff optionMenu_p1_tiff = XtVaCreateManagedWidget( "optionMenu_p1_tiff", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "tiff" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_tiff, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff, (XtPointer) NULL ); UxPutContext( optionMenu_p1_tiff, (char *) this ); //Creation of optionMenu_p1_bsl optionMenu_p1_bsl = XtVaCreateManagedWidget( "optionMenu_p1_bsl", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "bsl" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_bsl, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_bsl, (XtPointer) NULL ); UxPutContext( optionMenu_p1_bsl, (char *) this ); //Creation of optionMenu_p1_id2 optionMenu_p1_id2 = XtVaCreateManagedWidget( "optionMenu_p1_id2", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "ESRF_ID2(KLORA)" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_id2, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_id2, (XtPointer) NULL ); UxPutContext( optionMenu_p1_id2, (char *) this ); //Creation of optionMenu_p1_loq_1d optionMenu_p1_loq_1d = XtVaCreateManagedWidget( "optionMenu_p1_loq_1d", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "LOQ1D" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_loq_1d, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_loq_1d, (XtPointer) NULL ); UxPutContext( optionMenu_p1_loq_1d, (char *) this ); //Creation of optionMenu_p1_loq_2d optionMenu_p1_loq_2d = XtVaCreateManagedWidget( "optionMenu_p1_loq_2d", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "LOQ2D" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_loq_2d, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_loq_2d, (XtPointer) NULL ); UxPutContext( optionMenu_p1_loq_2d, (char *) this ); //Creation of optionMenu_p1_smv optionMenu_p1_smv = XtVaCreateManagedWidget( "optionMenu_p1_smv", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "SMV" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_smv, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_smv, (XtPointer) NULL ); UxPutContext( optionMenu_p1_smv, (char *) this ); //Creation of optionMenu_p1_id3 optionMenu_p1_id3 = XtVaCreateManagedWidget( "optionMenu_p1_id3", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "ESRF_ID3" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_id3, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_id3, (XtPointer) NULL ); UxPutContext( optionMenu_p1_id3, (char *) this ); //Creation of optionMenu_p1_bruker_gfrm optionMenu_p1_bruker_gfrm = XtVaCreateManagedWidget( "optionMenu_p1_bruker_gfrm", xmPushButtonWidgetClass, optionMenu_p1, //RES_CONVERT( XmNlabelString, "BRUKER_gfrm" ), RES_CONVERT( XmNlabelString, "BRUKER" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_bruker_gfrm, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_gfrm, (XtPointer) NULL ); UxPutContext( optionMenu_p1_bruker_gfrm, (char *) this ); /* //Creation of optionMenu_p1_bruker_asc optionMenu_p1_bruker_asc = XtVaCreateManagedWidget( "optionMenu_p1_bruker_asc", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "BRUKER_asc" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_bruker_asc, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_asc, (XtPointer) NULL ); UxPutContext( optionMenu_p1_bruker_asc, (char *) this ); //Creation of optionMenu_p1_bruker_plosto optionMenu_p1_bruker_plosto = XtVaCreateManagedWidget( "optionMenu_p1_bruker_plosto", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "BRUKER_plosto" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_bruker_plosto, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_bruker_plosto, (XtPointer) NULL ); UxPutContext( optionMenu_p1_bruker_plosto, (char *) this ); */ //Creation of optionMenu_p1_mar345 optionMenu_p1_mar345 = XtVaCreateManagedWidget( "optionMenu_p1_mar345", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "MAR345" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_mar345, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_mar345, (XtPointer) NULL ); UxPutContext( optionMenu_p1_mar345, (char *) this ); //Creation of optionMenu_p1_sans optionMenu_p1_sans = XtVaCreateManagedWidget( "optionMenu_p1_sans", xmPushButtonWidgetClass, optionMenu_p1, RES_CONVERT( XmNlabelString, "ILL_SANS" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_sans, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_sans, (XtPointer) NULL ); UxPutContext( optionMenu_p1_sans, (char *) this ); // Creation of optionMenu1 optionMenu1 = XtVaCreateManagedWidget( "optionMenu1", xmRowColumnWidgetClass, bulletinBoard1, XmNrowColumnType, XmMENU_OPTION, XmNsubMenuId, optionMenu_p1, XmNx, 104, XmNy, 214, XmNmarginHeight, 3, XmNmarginWidth, 3, NULL ); UxPutContext( optionMenu1, (char *) this ); // Creation of inpixlabel inpixlabel = XtVaCreateManagedWidget( "inpixlabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 349, RES_CONVERT( XmNlabelString, "Pixels :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( inpixlabel, (char *) this ); // Creation of inrastlabel inrastlabel = XtVaCreateManagedWidget( "inrastlabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 165, XmNy, 349, RES_CONVERT( XmNlabelString, "Rasters :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( inrastlabel, (char *) this ); // Creation of inpixField inpixField = XtVaCreateManagedWidget( "inpixField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 85, XmNy, 346, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); XtAddCallback( inpixField, XmNvalueChangedCallback, (XtCallbackProc) &_UxCmainWS::Wrap_valueChangedCB_inpixField, (XtPointer) NULL ); UxPutContext( inpixField, (char *) this ); // Creation of inrastField inrastField = XtVaCreateManagedWidget( "inrastField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 241, XmNy, 346, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); XtAddCallback( inrastField, XmNvalueChangedCallback, (XtCallbackProc) &_UxCmainWS::Wrap_valueChangedCB_inrastField, (XtPointer) NULL ); UxPutContext( inrastField, (char *) this ); // Creation of skiplabel skiplabel = XtVaCreateManagedWidget( "skiplabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 419, RES_CONVERT( XmNlabelString, "Bytes to skip : " ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( skiplabel, (char *) this ); // Creation of aspectlabel aspectlabel = XtVaCreateManagedWidget( "aspectlabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 469, RES_CONVERT( XmNlabelString, "Aspect ratio :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( aspectlabel, (char *) this ); // Creation of rangeLabel rangeLabel = XtVaCreateManagedWidget( "rangeLabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 519, RES_CONVERT( XmNlabelString, "Dynamic range :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( rangeLabel, (char *) this ); // Creation of toggleButton1 toggleButton1 = XtVaCreateManagedWidget( "toggleButton1", xmToggleButtonWidgetClass, bulletinBoard1, XmNx, 205, XmNy, 281, RES_CONVERT( XmNlabelString, " Swap byte order" ), XmNindicatorType, XmONE_OF_MANY, XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), XmNhighlightThickness, 0, NULL ); UxPutContext( toggleButton1, (char *) this ); // Creation of skipField skipField = XtVaCreateManagedWidget( "skipField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 156, XmNy, 416, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( skipField, (char *) this ); // Creation of aspectField aspectField = XtVaCreateManagedWidget( "aspectField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 156, XmNy, 466, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( aspectField, (char *) this ); // Creation of rangeField rangeField = XtVaCreateManagedWidget( "rangeField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 156, XmNy, 516, XmNfontList, UxConvertFontList("9x15" ), NULL ); UxPutContext( rangeField, (char *) this ); // Creation of separator1 separator1 = XtVaCreateManagedWidget( "separator1", xmSeparatorWidgetClass, bulletinBoard1, XmNwidth, 800, XmNheight, 10, XmNx, 0, XmNy, 579, NULL ); UxPutContext( separator1, (char *) this ); // Creation of label16 label16 = XtVaCreateManagedWidget( "label16", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 349, RES_CONVERT( XmNlabelString, "Pixels :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label16, (char *) this ); // Creation of label17 label17 = XtVaCreateManagedWidget( "label17", xmLabelWidgetClass, bulletinBoard1, XmNx, 570, XmNy, 349, RES_CONVERT( XmNlabelString, "Rasters :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label17, (char *) this ); // Creation of outpixField outpixField = XtVaCreateManagedWidget( "outpixField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 490, XmNy, 346, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( outpixField, (char *) this ); // Creation of outrastField outrastField = XtVaCreateManagedWidget( "outrastField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 60, XmNx, 646, XmNy, 346, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( outrastField, (char *) this ); // Creation of label18 label18 = XtVaCreateManagedWidget( "label18", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 218, RES_CONVERT( XmNlabelString, "File type : " ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label18, (char *) this ); // Creation of label19 label19 = XtVaCreateManagedWidget( "label19", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 419, RES_CONVERT( XmNlabelString, "Header 1 :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label19, (char *) this ); // Creation of label20 label20 = XtVaCreateManagedWidget( "label20", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 519, RES_CONVERT( XmNlabelString, "Header 2 :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label20, (char *) this ); // Creation of scrolledWindowText2 scrolledWindowText2 = XtVaCreateManagedWidget( "scrolledWindowText2", xmScrolledWindowWidgetClass, bulletinBoard1, XmNscrollingPolicy, XmAPPLICATION_DEFINED, XmNvisualPolicy, XmVARIABLE, XmNscrollBarDisplayPolicy, XmSTATIC, XmNx, 514, XmNy, 416, NULL ); UxPutContext( scrolledWindowText2, (char *) this ); // Creation of header1Text header1Text = XtVaCreateManagedWidget( "header1Text", xmTextWidgetClass, scrolledWindowText2, XmNwidth, 267, XmNfontList, UxConvertFontList("9x15" ), NULL ); UxPutContext( header1Text, (char *) this ); // Creation of scrolledWindowText3 scrolledWindowText3 = XtVaCreateManagedWidget( "scrolledWindowText3", xmScrolledWindowWidgetClass, bulletinBoard1, XmNscrollingPolicy, XmAPPLICATION_DEFINED, XmNvisualPolicy, XmVARIABLE, XmNscrollBarDisplayPolicy, XmSTATIC, XmNx, 514, XmNy, 516, NULL ); UxPutContext( scrolledWindowText3, (char *) this ); // Creation of header2Text header2Text = XtVaCreateManagedWidget( "header2Text", xmTextWidgetClass, scrolledWindowText3, XmNwidth, 267, XmNfontList, UxConvertFontList("9x15" ), NULL ); UxPutContext( header2Text, (char *) this ); // Creation of pushButton2 pushButton2 = XtVaCreateManagedWidget( "pushButton2", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 260, XmNy, 602, XmNwidth, 100, XmNheight, 35, RES_CONVERT( XmNlabelString, "Run" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); XtAddCallback( pushButton2, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_pushButton2, (XtPointer) NULL ); UxPutContext( pushButton2, (char *) this ); // Creation of pushButton3 pushButton3 = XtVaCreateManagedWidget( "pushButton3", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 680, XmNy, 602, XmNwidth, 100, XmNheight, 35, RES_CONVERT( XmNlabelString, "Help" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); XtAddCallback( pushButton3, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_pushButton3, (XtPointer) NULL ); UxPutContext( pushButton3, (char *) this ); // Creation of pushButton4 pushButton4 = XtVaCreateManagedWidget( "pushButton4", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 560, XmNy, 602, XmNwidth, 100, XmNheight, 35, RES_CONVERT( XmNlabelString, "Quit" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); XtAddCallback( pushButton4, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_pushButton4, (XtPointer) NULL ); UxPutContext( pushButton4, (char *) this ); // Creation of saveButton saveButton = XtVaCreateManagedWidget( "saveButton", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 140, XmNy, 602, XmNwidth, 100, XmNheight, 35, RES_CONVERT( XmNlabelString, "Save profile" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); XtAddCallback( saveButton, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_saveButton, (XtPointer) NULL ); UxPutContext( saveButton, (char *) this ); // Creation of loadButton loadButton = XtVaCreateManagedWidget( "loadButton", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 602, XmNwidth, 100, XmNheight, 35, RES_CONVERT( XmNlabelString, "Load profile" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), XmNsensitive, TRUE, NULL ); XtAddCallback( loadButton, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_loadButton, (XtPointer) NULL ); UxPutContext( loadButton, (char *) this ); // Creation of incField incField = XtVaCreateManagedWidget( "incField", xmTextFieldWidgetClass, bulletinBoard1, XmNwidth, 40, XmNx, 298, XmNy, 147, XmNfontList, UxConvertFontList("9x15" ), XmNvalue, "", NULL ); UxPutContext( incField, (char *) this ); // Creation of scrolledWindowText4 scrolledWindowText4 = XtVaCreateManagedWidget( "scrolledWindowText4", xmScrolledWindowWidgetClass, bulletinBoard1, XmNscrollingPolicy, XmAPPLICATION_DEFINED, XmNvisualPolicy, XmVARIABLE, XmNscrollBarDisplayPolicy, XmSTATIC, XmNx, 522, XmNy, 77, NULL ); UxPutContext( scrolledWindowText4, (char *) this ); // Creation of outfileText outfileText = XtVaCreateManagedWidget( "outfileText", xmTextWidgetClass, scrolledWindowText4, XmNwidth, 183, XmNfontList, UxConvertFontList("9x15" ), NULL ); UxPutContext( outfileText, (char *) this ); // Creation of pushButton7 pushButton7 = XtVaCreateManagedWidget( "pushButton7", xmPushButtonWidgetClass, bulletinBoard1, XmNx, 715, XmNy, 77, RES_CONVERT( XmNlabelString, "Browse" ), XmNmarginHeight, 5, XmNmarginWidth, 5, XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( pushButton7, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_pushButton7, (XtPointer) NULL ); UxPutContext( pushButton7, (char *) this ); // Creation of label5 label5 = XtVaCreateManagedWidget( "label5", xmLabelWidgetClass, bulletinBoard1, XmNx, 20, XmNy, 281, RES_CONVERT( XmNlabelString, "Data type :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label5, (char *) this ); // Creation of datalabel datalabel = XtVaCreateManagedWidget( "datalabel", xmLabelWidgetClass, bulletinBoard1, XmNx, 118, RES_CONVERT( XmNlabelString, "float" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), XmNy, 281, NULL ); UxPutContext( datalabel, (char *) this ); // Creation of label6 label6 = XtVaCreateManagedWidget( "label6", xmLabelWidgetClass, bulletinBoard1, XmNx, 425, XmNy, 281, RES_CONVERT( XmNlabelString, "Data type :" ), XmNfontList, UxConvertFontList("-adobe-times-medium-r-normal--18-180-75-75-p-94-iso8859-1" ), NULL ); UxPutContext( label6, (char *) this ); // Creation of optionMenu_p2 optionMenu_p2_shell = XtVaCreatePopupShell ("optionMenu_p2_shell", xmMenuShellWidgetClass, bulletinBoard1, XmNwidth, 1, XmNheight, 1, XmNallowShellResize, TRUE, XmNoverrideRedirect, TRUE, NULL ); optionMenu_p2 = XtVaCreateWidget( "optionMenu_p2", xmRowColumnWidgetClass, optionMenu_p2_shell, XmNrowColumnType, XmMENU_PULLDOWN, NULL ); UxPutContext( optionMenu_p2, (char *) this ); // Creation of optionMenu_p3 optionMenu_p3_shell = XtVaCreatePopupShell ("optionMenu_p3_shell", xmMenuShellWidgetClass, bulletinBoard1, XmNwidth, 1, XmNheight, 1, XmNallowShellResize, TRUE, XmNoverrideRedirect, TRUE, NULL ); optionMenu_p3 = XtVaCreateWidget( "optionMenu_p3", xmRowColumnWidgetClass, optionMenu_p3_shell, XmNrowColumnType, XmMENU_PULLDOWN, NULL ); UxPutContext( optionMenu_p3, (char *) this ); // Creation of optionMenu_p1_float32 optionMenu_p1_float32 = XtVaCreateManagedWidget( "optionMenu_p1_float32", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "float32" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_float32, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_float32, (XtPointer) NULL ); UxPutContext( optionMenu_p1_float32, (char *) this ); // Creation of optionMenu_p1_bsl_out optionMenu_p1_BSL_out = XtVaCreateManagedWidget( "optionMenu_p1_BSL_out", xmPushButtonWidgetClass, optionMenu_p3, RES_CONVERT( XmNlabelString, "BSL" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_BSL_out, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_BSL_out, (XtPointer) NULL ); UxPutContext( optionMenu_p1_BSL_out, (char *) this ); // Creation of optionMenu_p1_tiff_8out optionMenu_p1_tiff_8out = XtVaCreateManagedWidget( "optionMenu_p1_tiff_8out", xmPushButtonWidgetClass, optionMenu_p3, RES_CONVERT( XmNlabelString, "Tiff 8bit" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_tiff_8out, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff_8out, (XtPointer) NULL ); UxPutContext( optionMenu_p1_tiff_8out, (char *) this ); // Creation of optionMenu_p1_tiff_16out optionMenu_p1_tiff_16out = XtVaCreateManagedWidget( "optionMenu_p1_tiff_16out", xmPushButtonWidgetClass, optionMenu_p3, RES_CONVERT( XmNlabelString, "Tiff 16bit" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_tiff_16out, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_tiff_16out, (XtPointer) NULL ); UxPutContext( optionMenu_p1_tiff_16out, (char *) this ); // Creation of optionMenu_p1_txt_out optionMenu_p1_txt_out = XtVaCreateManagedWidget( "optionMenu_p1_txt_out", xmPushButtonWidgetClass, optionMenu_p3, RES_CONVERT( XmNlabelString, "Txt" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_txt_out, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_txt_out, (XtPointer) NULL ); UxPutContext( optionMenu_p1_txt_out, (char *) this ); // Creation of optionMenu_p1_float64 optionMenu_p1_float64 = XtVaCreateManagedWidget( "optionMenu_p1_float64", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "float64" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_float64, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_float64, (XtPointer) NULL ); UxPutContext( optionMenu_p1_float64, (char *) this ); // Creation of optionMenu_p1_int16 optionMenu_p1_int16 = XtVaCreateManagedWidget( "optionMenu_p1_int16", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "int16" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_int16, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_int16, (XtPointer) NULL ); UxPutContext( optionMenu_p1_int16, (char *) this ); // Creation of optionMenu_p1_uint16 optionMenu_p1_uint16 = XtVaCreateManagedWidget( "optionMenu_p1_uint16", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "uint16" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_uint16, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_uint16, (XtPointer) NULL ); UxPutContext( optionMenu_p1_uint16, (char *) this ); // Creation of optionMenu_p1_int32 optionMenu_p1_int32 = XtVaCreateManagedWidget( "optionMenu_p1_int32", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "int32" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_int32, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_int32, (XtPointer) NULL ); UxPutContext( optionMenu_p1_int32, (char *) this ); // Creation of optionMenu_p1_uint32 optionMenu_p1_uint32 = XtVaCreateManagedWidget( "optionMenu_p1_uint32", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "uint32" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_uint32, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_uint32, (XtPointer) NULL ); UxPutContext( optionMenu_p1_uint32, (char *) this ); // Creation of optionMenu_p1_int64 optionMenu_p1_int64 = XtVaCreateManagedWidget( "optionMenu_p1_int64", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "int64" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_int64, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_int64, (XtPointer) NULL ); UxPutContext( optionMenu_p1_int64, (char *) this ); // Creation of optionMenu_p1_uint64 optionMenu_p1_uint64 = XtVaCreateManagedWidget( "optionMenu_p1_uint64", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "uint64" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_uint64, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_uint64, (XtPointer) NULL ); UxPutContext( optionMenu_p1_uint64, (char *) this ); // Creation of optionMenu_p1_char8 optionMenu_p1_char8 = XtVaCreateManagedWidget( "optionMenu_p1_char8", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "char8" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_char8, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_char8, (XtPointer) NULL ); UxPutContext( optionMenu_p1_char8, (char *) this ); // Creation of optionMenu_p1_uchar8 optionMenu_p1_uchar8 = XtVaCreateManagedWidget( "optionMenu_p1_uchar8", xmPushButtonWidgetClass, optionMenu_p2, RES_CONVERT( XmNlabelString, "uchar8" ), XmNfontList, UxConvertFontList("9x15" ), NULL ); XtAddCallback( optionMenu_p1_uchar8, XmNactivateCallback, (XtCallbackProc) &_UxCmainWS::Wrap_activateCB_optionMenu_p1_uchar8, (XtPointer) NULL ); UxPutContext( optionMenu_p1_uchar8, (char *) this ); // Creation of optionMenu2 optionMenu2 = XtVaCreateManagedWidget( "optionMenu2", xmRowColumnWidgetClass, bulletinBoard1, XmNrowColumnType, XmMENU_OPTION, XmNsubMenuId, optionMenu_p2, XmNx, 517, XmNy, 277, XmNmarginHeight, 3, XmNmarginWidth, 3, NULL ); UxPutContext( optionMenu2, (char *) this ); // Creation of optionMenu3 optionMenu3 = XtVaCreateManagedWidget( "optionMenu3", xmRowColumnWidgetClass, bulletinBoard1, XmNrowColumnType, XmMENU_OPTION, XmNsubMenuId, optionMenu_p3, XmNx, 517, XmNy, 214, XmNmarginHeight, 3, XmNmarginWidth, 3, NULL ); UxPutContext( optionMenu3, (char *) this ); XtAddCallback( mainWS, XmNdestroyCallback, (XtCallbackProc) &_UxCmainWS::UxDestroyContextCB, (XtPointer) this); return ( mainWS ); } /******************************************************************************* The following function includes the code that was entered in the 'Initial Code' and 'Final Code' sections of the Declarations Editor. This function is called from the 'Interface function' below. *******************************************************************************/ swidget _UxCmainWS::_create_mainWS(void) { Widget rtrn; UxThis = rtrn = _build(); // Final Code from declarations editor busyCursor=XCreateFontCursor(UxDisplay,XC_watch); SetIconImage(UxGetWidget(rtrn)); FileSelect=create_FileSelection(rtrn); ErrMessage=create_ErrorMessage(rtrn); QuestDialog=create_QuestionDialog(rtrn); InfoDialog=create_InformationDialog(rtrn); if ((ccp13ptr =(char*)getenv ("CCP13HOME"))) { strcpy(helpfile,ccp13ptr); strcat(helpfile,"/doc/xconv.html"); } else { strcpy(helpfile,"http://www.ccp13.ac.uk/software/program/xconv5.html"); } infileptr=""; outfileptr=""; inpixptr=""; inrastptr=""; outpixptr=""; outrastptr=""; skptr="0"; asptr="1.0"; rangeptr=""; firstptr="1"; lastptr="1"; incptr="1"; dataptr="float"; dtype=0; #ifndef DESIGN_TIME nFirst=1; nLast=1; nInc=1; sType=strng("float"); #endif mainWS_UpdateFields(rtrn,&UxEnv); mainWS_UpdateData(rtrn,&UxEnv); mainWS_FieldsEditable(rtrn,&UxEnv,1); mainWS_FieldsEditable_out(rtrn,&UxEnv,1); mainWS_RangeSensitive(rtrn,&UxEnv,0); mainWS_UpdateRun(rtrn,&UxEnv); mainWS_RunSensitive(rtrn,&UxEnv,0); return(rtrn); } /******************************************************************************* The following is the destructor function. *******************************************************************************/ _UxCmainWS::~_UxCmainWS() { if (this->UxThis) { XtRemoveCallback( UxGetWidget(this->UxThis), XmNdestroyCallback, (XtCallbackProc) &_UxCmainWS::UxDestroyContextCB, (XtPointer) this); UxDestroyInterface(this->UxThis); } } /******************************************************************************* The following is the constructor function. *******************************************************************************/ _UxCmainWS::_UxCmainWS( swidget UxParent ) { this->UxParent = UxParent; // User Supplied Constructor Code } /******************************************************************************* The following is the 'Interface function' which is the external entry point for creating this interface. This function should be called from your application or from a callback function. *******************************************************************************/ swidget create_mainWS( swidget UxParent ) { _UxCmainWS *theInterface = new _UxCmainWS( UxParent ); return (theInterface->_create_mainWS()); } /******************************************************************************* END OF FILE *******************************************************************************/
26.544522
144
0.639301
4d9350675667ce3f37d3c8f4b7621b4f12aec221
623
cs
C#
src/Server/Application/Users/FindById/FindUserByIdQueryHandler.cs
afgalvan/Tilia
4137679b5cfce56fd2920cf387fad32dd2957486
[ "MIT" ]
4
2021-09-08T19:30:29.000Z
2022-03-24T11:56:12.000Z
src/Server/Application/Users/FindById/FindUserByIdQueryHandler.cs
afgalvan/Tilia
4137679b5cfce56fd2920cf387fad32dd2957486
[ "MIT" ]
46
2021-10-20T16:45:43.000Z
2022-03-21T22:30:13.000Z
src/Server/Application/Users/FindById/FindUserByIdQueryHandler.cs
afgalvan/Tilia
4137679b5cfce56fd2920cf387fad32dd2957486
[ "MIT" ]
1
2021-09-11T17:17:29.000Z
2021-09-11T17:17:29.000Z
using System.Threading; using System.Threading.Tasks; using Domain.Users; using SharedLib.Domain.Bus.Query; namespace Application.Users.FindById { public class FindUserByIdQueryHandler : IQueryHandler<FindUserByIdQuery, User> { private readonly UserFinder _userFinder; public FindUserByIdQueryHandler(UserFinder userFinder) { _userFinder = userFinder; } public async Task<User> Handle(FindUserByIdQuery request, CancellationToken cancellationToken) { return await _userFinder.FindUserById(request.Id, cancellationToken); } } }
27.086957
102
0.707865
dd880178849dc60258db558f492f717d3fdf11fc
2,827
java
Java
src/main/java/com/codnos/dbgp/api/DBGpFactory.java
Codnos/dbgp-interfaces
8d15f35e7496163aac41e8451e851a6847e1741d
[ "Apache-2.0" ]
1
2016-11-16T23:47:30.000Z
2016-11-16T23:47:30.000Z
src/main/java/com/codnos/dbgp/api/DBGpFactory.java
Codnos/dbgp-interfaces
8d15f35e7496163aac41e8451e851a6847e1741d
[ "Apache-2.0" ]
null
null
null
src/main/java/com/codnos/dbgp/api/DBGpFactory.java
Codnos/dbgp-interfaces
8d15f35e7496163aac41e8451e851a6847e1741d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Codnos Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.codnos.dbgp.api; import com.codnos.dbgp.internal.impl.DBGpEngineImpl; import com.codnos.dbgp.internal.impl.DBGpIdeImpl; import com.codnos.dbgp.internal.impl.StatusChangeHandlerFactory; public class DBGpFactory { public static DBGpIdeBuilder ide() { return new DBGpIdeBuilder(); } public static DBGpEngineBuilder engine() { return new DBGpEngineBuilder(); } public static class DBGpIdeBuilder { private int port; private DebuggerIde debuggerIde; public DBGpIdeBuilder withPort(int port) { this.port = port; return this; } public DBGpIdeBuilder withDebuggerIde(DebuggerIde debuggerIde) { this.debuggerIde = debuggerIde; return this; } public DBGpIde build() { validate("port", port); validate("debuggerIde", debuggerIde); return new DBGpIdeImpl(port, debuggerIde); } } public static class DBGpEngineBuilder { private int port; private DebuggerEngine debuggerEngine; private StatusChangeHandlerFactory statusChangeHandlerFactory = new StatusChangeHandlerFactory(); public DBGpEngineBuilder withPort(int port) { this.port = port; return this; } public DBGpEngineBuilder withDebuggerEngine(DebuggerEngine debuggerEngine) { this.debuggerEngine = debuggerEngine; return this; } DBGpEngineBuilder withStatusChangeHandlerFactory(StatusChangeHandlerFactory statusChangeHandlerFactory) { this.statusChangeHandlerFactory = statusChangeHandlerFactory; return this; } public DBGpEngine build() { validate("port", port); validate("debuggerEngine", debuggerEngine); validate("statusChangeHandlerFactory", statusChangeHandlerFactory); return new DBGpEngineImpl(port, debuggerEngine, statusChangeHandlerFactory); } } private static void validate(String field, Object value) { if (value == null) { throw new IllegalStateException("Field " + field + " was not set but is required!"); } } }
32.494253
113
0.6682
e70aece5e5cc683e697e0fb332b7bc2de8c5b9d3
732
go
Go
len/main.go
qshuai/Tools
1f7ed7c8af0fb5a78035496bf87a9b5e17705488
[ "MIT" ]
3
2018-08-23T15:43:37.000Z
2018-10-15T15:34:08.000Z
len/main.go
qshuai/commandlineTool
1f7ed7c8af0fb5a78035496bf87a9b5e17705488
[ "MIT" ]
null
null
null
len/main.go
qshuai/commandlineTool
1f7ed7c8af0fb5a78035496bf87a9b5e17705488
[ "MIT" ]
1
2018-10-15T08:20:06.000Z
2018-10-15T08:20:06.000Z
//this program will calculate the length of input string. //you can build a executable file and move it to your path. //usage: go build -o len main.go //commandline: len input your string package main import ( "fmt" "os" ) func main() { args := os.Args length := len(args) if length < 2 { fmt.Println(" \033[0;31mplease input a or more string\n\033[0m") fmt.Println(" usage:\033[0;32mlen hello world test usage\033[0m") fmt.Println(" output:\033[0;32m") fmt.Println(" \033[0;32m 5") fmt.Println(" \033[0;32m 5") fmt.Println(" \033[0;32m 4") fmt.Println(" \033[0;32m 5") return } for i := 1; i < length; i++ { fmt.Print("\033[0;32m ") fmt.Println(len(args[i])) } }
24.4
69
0.610656
8dab1882e53eb319f5ec444109d43bdc044548f7
1,857
js
JavaScript
bg_client/src/component/banner.js
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
bg_client/src/component/banner.js
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
bg_client/src/component/banner.js
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
// @flow import React, {Component} from 'react'; import { StyleSheet, View, Image, Text, TouchableOpacity } from 'react-native'; import Global from '../utils/global' import FullViewTab from '../page/full_view_tab' export default class Banner extends Component { constructor(props) { super(props); } showDes(){ let des = this.props.module.text == null?this.props.data[0].component.des:this.props.module.text if(this.props.module.style=="display:block;"){ return( <View style={styles.text_container}> <View style={styles.view_opacity}/> <Text style={styles.text_name}>{des}</Text> </View> ) } } render(){ return ( <View style={styles.list_container}> <TouchableOpacity onPress={() => this.props.onPress(this.props.data[0].component.id, this.props.data[0].category)}> <Image source={{uri:this.props.data[0].pic.min}} style={styles.container}> {this.showDes()} </Image> </TouchableOpacity> </View> ); } } var styles = StyleSheet.create({ list_container: { flexDirection: 'row', justifyContent: 'center', flexWrap: 'nowrap', alignItems: 'center', width: Global.size.width }, container: { flexDirection: "column", justifyContent: 'flex-end', alignItems: 'center', height: Global.size.width/2, width: Global.size.width-4, borderWidth: 1, borderColor: "white" }, text_container: { flexDirection: "row", justifyContent: 'flex-start', alignItems: 'center', height: 40, backgroundColor:'transparent', }, view_opacity: { width: Global.size.width, height: 60, opacity:0.5, backgroundColor:'#AEAEAE', }, text_name: { position: 'absolute', color: 'white', paddingLeft: 10, fontSize: 16, }, })
20.406593
121
0.616586
623b06fcbf9cf128fe5da03335e677117d93ad78
2,160
py
Python
services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name from typing import Dict, List import pytest from starlette.testclient import TestClient from simcore_service_catalog.__version__ import api_version from simcore_service_catalog.models.schemas.meta import Meta core_services = ["postgres"] ops_services = ["adminer"] @pytest.mark.skip(reason="Failing on github actions") def test_read_healthcheck(director_mockup, client: TestClient): response = client.get("/") assert response.status_code == 200 assert response.text == '":-)"' @pytest.mark.skip(reason="Failing on github actions") def test_read_meta(director_mockup, client: TestClient): response = client.get("/v0/meta") assert response.status_code == 200 meta = Meta(**response.json()) assert meta.version == api_version assert meta.name == "simcore_service_catalog" @pytest.mark.skip(reason="Failing on github actions") def test_list_dags(director_mockup, client: TestClient): response = client.get("/v0/dags") assert response.status_code == 200 assert response.json() == [] # inject three dagin response = client.get("/v0/dags") assert response.status_code == 200 # TODO: assert i can list them as dagouts # TODO: assert dagout have identifiers now @pytest.mark.skip(reason="Failing on github actions") def test_standard_operations_on_resource( director_mockup, client: TestClient, fake_data_dag_in: Dict ): response = client.post("/v0/dags", json=fake_data_dag_in) assert response.status_code == 201 assert response.json() == 1 # list response = client.get("/v0/dags") assert response.status_code == 200 got = response.json() assert isinstance(got, List) assert len(got) == 1 # TODO: data_in is not the same as data_out?? data_out = got[0] assert data_out["id"] == 1 # extra key, once in db # get response = client.get("/v0/dags/1") assert response.status_code == 200 assert response.json() == data_out # delete response = client.delete("/v0/dags/1") assert response.status_code == 204
28.421053
63
0.710648
cd40de9135b5452ac76074fcecb7e88df4bd86b4
1,197
cs
C#
Source/Inixe.CoinManagement.Bitso.Api/BalanceUpdate.cs
ingemarparra/Inixe.Coinmanager
d92824f82bd51df91a45cfab859769e2bf710401
[ "MIT" ]
null
null
null
Source/Inixe.CoinManagement.Bitso.Api/BalanceUpdate.cs
ingemarparra/Inixe.Coinmanager
d92824f82bd51df91a45cfab859769e2bf710401
[ "MIT" ]
null
null
null
Source/Inixe.CoinManagement.Bitso.Api/BalanceUpdate.cs
ingemarparra/Inixe.Coinmanager
d92824f82bd51df91a45cfab859769e2bf710401
[ "MIT" ]
2
2019-06-27T22:10:22.000Z
2019-06-27T22:25:46.000Z
// ----------------------------------------------------------------------- // <copyright file="BalanceUpdate.cs" company="Inixe"> // Copyright (c) Inixe 2017. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace Inixe.CoinManagement.Bitso.Api { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; /// <summary> /// Class BalanceUpdate /// </summary> /// <remarks>Represents a Balace Change</remarks> [JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))] public sealed class BalanceUpdate { /// <summary>Gets the currency identifier.</summary> /// <value>The currency identifier.</value> /// <remarks>None</remarks> public string Currency { get; internal set; } /// <summary>Gets the updated amount.</summary> /// <value>The updated amount.</value> /// <remarks>None</remarks> public decimal Amount { get; internal set; } } }
33.25
75
0.572264
a4a17c11297da27205f1c90d80641de24d729d4b
1,191
php
PHP
resources/views/admin/category/index.blade.php
TichShowers/Character-Repository
ba492c1b33e5db886d2c844bd7f60e475f0f663b
[ "Apache-2.0" ]
null
null
null
resources/views/admin/category/index.blade.php
TichShowers/Character-Repository
ba492c1b33e5db886d2c844bd7f60e475f0f663b
[ "Apache-2.0" ]
null
null
null
resources/views/admin/category/index.blade.php
TichShowers/Character-Repository
ba492c1b33e5db886d2c844bd7f60e475f0f663b
[ "Apache-2.0" ]
null
null
null
@extends('shared/_adminlayout') @section('title') Categories @endsection @section('content') <a href="{{ route('admin.category.create') }}" class="btn btn-primary btn-lg"><i class="glyphicon glyphicon-plus"></i> Create new Category</a> <hr/> @if($categories->count()) <ul class="list-group"> @foreach($categories as $category) <li class="list-group-item"> {{ $category->name }} <span class="pull-right btn-group btn-group-xs"> <a href="{{ route('admin.category.edit', ['category' => $category->id]) }}" class="btn btn-primary"> <i class="glyphicon glyphicon-pencil"></i> Edit </a> <a href="{{ route('admin.category.delete', ['category' => $category->id]) }}" class="btn btn-danger" data-post="true"> <i class="glyphicon glyphicon-trash"></i> Delete </a> </span> </li> @endforeach </ul> @else <p>No Categories</p> @endif <form id="anti-forgery-token"> {!! Form::token() !!} </form> @endsection
33.083333
146
0.502099
660327d3d857a7a801d952dbaba10accab85b02a
418
py
Python
testRegression.py
hongzhenwei/Recognition
5ce88c3c09b0894330c692bb84c04327bc930885
[ "Apache-2.0" ]
6
2020-04-14T04:54:30.000Z
2021-12-04T08:14:17.000Z
testRegression.py
hongzhenwei/Recognition
5ce88c3c09b0894330c692bb84c04327bc930885
[ "Apache-2.0" ]
null
null
null
testRegression.py
hongzhenwei/Recognition
5ce88c3c09b0894330c692bb84c04327bc930885
[ "Apache-2.0" ]
1
2022-02-14T00:42:29.000Z
2022-02-14T00:42:29.000Z
import tensorflow as tf x = tf.placeholder("float", [None, 784]) sess = tf.Session() #获取模型参数 W = tf.Variable(tf.zeros([784, 10]), name='W') b = tf.Variable(tf.zeros([10]), name='b') y = tf.nn.softmax(tf.matmul(x, W) + b) saver = tf.train.Saver([W, b]) saver.restore(sess, 'mnist/data/regresstion.ckpt') def regression(input): result= sess.run(y, feed_dict={x: input}).flatten().tolist() return result
19
64
0.650718