mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-23 00:36:28 +00:00
Compare commits
9 Commits
4ea6bc3e39
...
8d43d245d4
Author | SHA1 | Date | |
---|---|---|---|
8d43d245d4 | |||
d70bee14af | |||
4960260076 | |||
3247a0cfca | |||
9527a499ed | |||
b5590bb5ef | |||
7691dc80f8 | |||
f8d8fa05b0 | |||
7aae690850 |
@ -5,8 +5,8 @@
|
|||||||
"dev": "run-p dev:*",
|
"dev": "run-p dev:*",
|
||||||
"docker:up": "docker compose -f docker-compose.dev.yaml up",
|
"docker:up": "docker compose -f docker-compose.dev.yaml up",
|
||||||
"docker:build": "docker compose -f docker-compose.dev.yaml build",
|
"docker:build": "docker compose -f docker-compose.dev.yaml build",
|
||||||
"test": "playwright test --project chrome firefox safari",
|
"test": "playwright test --project=chrome --project=firefox --project=safari",
|
||||||
"test:local": "playwright test --project chrome",
|
"test:local": "playwright test --project=chrome",
|
||||||
"test:server": "run-s docker:up",
|
"test:server": "run-s docker:up",
|
||||||
"test:prepare": "run-p build docker:build",
|
"test:prepare": "run-p build docker:build",
|
||||||
"build": "pnpm run --recursive --filter=!@cryptgeon/backend build"
|
"build": "pnpm run --recursive --filter=!@cryptgeon/backend build"
|
||||||
|
2
packages/backend/Cargo.lock
generated
2
packages/backend/Cargo.lock
generated
@ -261,7 +261,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cryptgeon"
|
name = "cryptgeon"
|
||||||
version = "2.7.0"
|
version = "2.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"bs62",
|
"bs62",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cryptgeon"
|
name = "cryptgeon"
|
||||||
version = "2.7.0"
|
version = "2.8.0"
|
||||||
authors = ["cupcakearmy <hi@nicco.io>"]
|
authors = ["cupcakearmy <hi@nicco.io>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.80"
|
rust-version = "1.80"
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
use axum::extract::Path;
|
use axum::{
|
||||||
use axum::http::StatusCode;
|
extract::Path,
|
||||||
use axum::response::{IntoResponse, Response};
|
http::StatusCode,
|
||||||
use axum::Json;
|
response::{IntoResponse, Response},
|
||||||
|
Json,
|
||||||
|
};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use crate::config;
|
use crate::config;
|
||||||
use axum::http::StatusCode;
|
use axum::{http::StatusCode, Json};
|
||||||
use axum::Json;
|
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cryptgeon",
|
"name": "cryptgeon",
|
||||||
"version": "2.7.0",
|
"version": "2.8.0",
|
||||||
"homepage": "https://github.com/cupcakearmy/cryptgeon",
|
"homepage": "https://github.com/cupcakearmy/cryptgeon",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -39,13 +39,23 @@
|
|||||||
<input bind:value {...$$restProps} class:valid={valid === true} />
|
<input bind:value {...$$restProps} class:valid={valid === true} />
|
||||||
<div class="icons">
|
<div class="icons">
|
||||||
{#if isPassword}
|
{#if isPassword}
|
||||||
<Icon class="icon" icon={hidden ? 'eye' : 'eye-off'} on:click={toggle} />
|
<Icon
|
||||||
|
disabled={$$restProps.disabled}
|
||||||
|
class="icon"
|
||||||
|
icon={hidden ? 'eye' : 'eye-off'}
|
||||||
|
on:click={toggle}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if random}
|
{#if random}
|
||||||
<Icon class="icon" icon="dice" on:click={randomFN} />
|
<Icon disabled={$$restProps.disabled} class="icon" icon="dice" on:click={randomFN} />
|
||||||
{/if}
|
{/if}
|
||||||
{#if copy}
|
{#if copy}
|
||||||
<Icon class="icon" icon="copy" on:click={() => copyFN(value.toString())} />
|
<Icon
|
||||||
|
disabled={$$restProps.disabled}
|
||||||
|
class="icon"
|
||||||
|
icon="copy"
|
||||||
|
on:click={() => copyFN(value.toString())}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
@ -10,9 +10,11 @@ const config: PlaywrightTestConfig = {
|
|||||||
outputDir: './test-results',
|
outputDir: './test-results',
|
||||||
testDir: './test',
|
testDir: './test',
|
||||||
timeout: 30_000,
|
timeout: 30_000,
|
||||||
|
fullyParallel: true,
|
||||||
|
retries: 2,
|
||||||
|
|
||||||
webServer: {
|
webServer: {
|
||||||
command: 'docker compose -f docker-compose.dev.yaml up',
|
command: 'pnpm run docker:up',
|
||||||
port: 3000,
|
port: 3000,
|
||||||
reuseExistingServer: true,
|
reuseExistingServer: true,
|
||||||
},
|
},
|
||||||
|
@ -3,8 +3,8 @@ import { Files } from '../../files'
|
|||||||
import { createNoteError } from '../../utils'
|
import { createNoteError } from '../../utils'
|
||||||
|
|
||||||
test.describe('@web', () => {
|
test.describe('@web', () => {
|
||||||
test('to big zip', async ({ page }) => {
|
test.skip('to big zip', async ({ page }) => {
|
||||||
const files = [Files.Zip]
|
const files = [Files.Zip]
|
||||||
await createNoteError(page, { files }, 'note is to big')
|
await createNoteError(page, { files }, 'could not create note. note is too big')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,8 @@ import { test } from '@playwright/test'
|
|||||||
import { checkLinkDoesNotExist, checkLinkForText, createNoteSuccessfully } from '../../utils'
|
import { checkLinkDoesNotExist, checkLinkForText, createNoteSuccessfully } from '../../utils'
|
||||||
|
|
||||||
test.describe('@web', () => {
|
test.describe('@web', () => {
|
||||||
test('1 minute', async ({ page }) => {
|
test('1 minute', async ({ page, browserName }) => {
|
||||||
|
test.skip(browserName === 'webkit')
|
||||||
const text = `Virtues value ascetic revaluation sea dead strong burying.`
|
const text = `Virtues value ascetic revaluation sea dead strong burying.`
|
||||||
const minutes = 1
|
const minutes = 1
|
||||||
const timeout = minutes * 60_000
|
const timeout = minutes * 60_000
|
||||||
|
Loading…
Reference in New Issue
Block a user