Skip to content

Commit

Permalink
Renamed to Harper
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Jan 15, 2024
1 parent 3b79df6 commit 309d840
Show file tree
Hide file tree
Showing 26 changed files with 712 additions and 692 deletions.
348 changes: 196 additions & 152 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
members = [ "lt-core", "lt-serve", "wasm"]
members = [ "harper-core", "harper-serve", "harper-wasm"]
resolver = "2"
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /bin/bash

set -eo pipefail

R=`pwd`

cd $R/harper-wasm
wasm-pack build --release

cd $R/web
yarn install
yarn build
2 changes: 1 addition & 1 deletion lt-core/Cargo.toml → harper-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "lt-core"
name = "harper-core"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lt-serve/Cargo.toml → harper-serve/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "lt-serve"
name = "harper-serve"
version = "0.1.0"
edition = "2021"

Expand All @@ -9,5 +9,5 @@ serde = { version = "1.0.189", features = ["derive"] }
tokio = { version = "1.33.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.17"
lt-core = { path = "../lt-core" }
harper-core = { path = "../harper-core" }
serde_json = "1.0.110"
2 changes: 1 addition & 1 deletion lt-serve/src/main.rs → harper-serve/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]

use lt_core::{all_linters, Dictionary, Document, FatToken, Lint, Span, Suggestion};
use harper_core::{all_linters, Dictionary, Document, FatToken, Lint, Span, Suggestion};
use std::net::SocketAddr;
use tokio::time::Instant;
use tracing::{debug, info, Level};
Expand Down
4 changes: 2 additions & 2 deletions wasm/Cargo.toml → harper-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "wasm"
name = "harper-wasm"
version = "0.1.0"
edition = "2021"

Expand All @@ -11,7 +11,7 @@ console_error_panic_hook = "0.1.7"
tracing = "0.1.40"
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2.90"
lt-core = { path = "../lt-core" }
harper-core = { path = "../harper-core" }
serde = "1.0.195"
serde-wasm-bindgen = "0.6.3"
getrandom = { version = "0.2.12", features = ["js"] }
2 changes: 1 addition & 1 deletion wasm/src/lib.rs → harper-wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use lt_core::{all_linters, Dictionary, Document, Span, Suggestion};
use harper_core::{all_linters, Dictionary, Document, Span, Suggestion};
use serde::Serialize;
use wasm_bindgen::{prelude::wasm_bindgen, JsValue};

Expand Down
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "web",
"name": "harper-web",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down Expand Up @@ -34,7 +34,7 @@
"vite": "^4.4.2",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0",
"wasm": "link:../wasm/pkg"
"wasm": "link:../harper-wasm/pkg"
},
"type": "module",
"dependencies": {
Expand Down
10 changes: 5 additions & 5 deletions web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import Editor from '$lib/Editor.svelte';
</script>

<div class="w-full h-screen flex flex-col items-center justify-evenly">
<div>
<h1 class="text-5xl font-bold text-center">Hi! I'm Audrey</h1>
<h2 class="text-3xl italic text-center">The Grammar Checker for Artists</h2>
<div class="w-full h-screen flex flex-col items-center">
<div class="p-24">
<h1 class="text-5xl font-bold text-center">Hi. I'm Harper.</h1>
<h2 class="text-3xl text-center">The Grammar Checker for Artists</h2>
<h2 class="text-2xl font-light italic text-center">Private. Free. Unobtrusive.</h2>
<div class="flex flex-row justify-evenly mt-5">
<a href="https://github.com/chilipepperhott/lt-rs" class="hover:scale-105 transition-all"
><img width="40" height="40" src="/icons/github.svg" alt="Project Repository" /></a
Expand All @@ -19,4 +20,3 @@
<Editor />
</div>
</div>

1,014 changes: 489 additions & 525 deletions web/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 309d840

Please sign in to comment.