Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1492368
feat: get load from file>open menu working.
lkdm Aug 24, 2024
1ded839
feat: add saving.
lkdm Aug 24, 2024
d4eb94a
Merge pull request #1 from lkdm/lm/setup
lkdm Aug 24, 2024
8301d7c
wip: improve code in core crate.
lkdm Aug 24, 2024
c229f0b
fix: saving issue.
lkdm Aug 24, 2024
356fd54
feat: add new file functionality.
lkdm Aug 24, 2024
480b31c
fix: other saving bug.
lkdm Aug 24, 2024
4b43ff7
fix: loading a second time did not work.
lkdm Aug 24, 2024
7b315d9
feat: focus editor when clicking around it.
lkdm Aug 24, 2024
0cf2f7f
fix: cancelling save dialogue crashed.
lkdm Aug 24, 2024
5a29b23
feat: add warning before creating new markdown file.
lkdm Aug 24, 2024
89d01aa
fix: inaccurate dialog copy.
lkdm Aug 24, 2024
1f477de
Merge pull request #2 from lkdm/lm/fix-saving
lkdm Aug 24, 2024
bc7d80c
feat: add icons.
lkdm Aug 24, 2024
bb3ff57
feat: rename app to proseforge.
lkdm Aug 24, 2024
e5076b2
feat: add proseforge title to the top of the window.
lkdm Aug 24, 2024
0965a6c
feat: add Proseforge to about.
lkdm Aug 24, 2024
8645e7d
Merge pull request #12 from lkdm/lm/branding
lkdm Aug 24, 2024
237b0f0
feat: update readme.
lkdm Aug 24, 2024
2ff1b7c
feat: center icon.
lkdm Aug 24, 2024
59e648a
feat: centre logo.
lkdm Aug 24, 2024
98f1c4f
feat: centre logo.
lkdm Aug 24, 2024
2ec7533
feat: reduce size of logo.
lkdm Aug 24, 2024
d82d938
fix: typo.
lkdm Aug 24, 2024
727f654
Merge pull request #13 from lkdm/lm/scripts
lkdm Aug 24, 2024
9d54b6b
fix: linting issues that prevent builds.
lkdm Aug 25, 2024
d064679
Merge pull request #14 from lkdm/lm/build
lkdm Aug 25, 2024
41fdd65
Update README.md
lkdm Aug 25, 2024
74f434f
feat: simplify draftnodes and notenodes separately.
lkdm Sep 20, 2024
4ea91ea
wip
lkdm Sep 20, 2024
3f3ad6e
feat: basic tree and structs.
lkdm Sep 20, 2024
3c39a59
feat: create directory tree struct.
lkdm Sep 20, 2024
9cb756b
feat: implement methods for Node.
lkdm Sep 20, 2024
1d9625f
wip
lkdm Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,088 changes: 69 additions & 5,019 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[package]
name = "proseforge_core"
version = "0.1.0"
edition = "2021"

[workspace]
resolver = "2"
members = ["apps/desktop/src-tauri", "core"]
members = []

[dependencies]
bon = "2.3.0"
indexmap = "2.5.0"
28 changes: 28 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
default:
@just --list

init:
@echo "Initialising development environment"
cargo install tauri-cli@^2.0.0-rc
cargo install --locked trunk
# ARM-based Macs must install wasm-bindget manually
cargo install --locked wasm-bindgen-cli

[macos]
init-ios:
@echo "Initialising development environment for iOS"
ln -s $(which pnpm) /usr/local/bin/pnpm
ln -s $(which node) /usr/local/bin/node
ln -s $(which cargo) /usr/local/bin/cargo

dev target='desktop':
@echo "Running dev instance for {{target}}..."
pushd application
if [ "{{target}}" = "ios" ]; then \
cargo tauri dev ios --open; \
elif [ "{{target}}" = "desktop" ]; then \
cargo tauri dev; \
fi

test $RUST_BACKTRACE="1":
cargo test --all
10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# markdown-rs
A markdown editor written in Rust and React.
<div style="text-align:center">
<p align="center">
<img width="100" height="100" src="https://github.com/lkdm/proseforge/blob/main/apps/desktop/src-tauri/icons/128x128.png" alt="Proseforge logo">
</p>
</div>

# Proseforge

Proseforge is an open-source cross-platform markdown editor written in Rust.

![Screenshot 2024-08-25 at 10 31 34 AM](https://github.com/user-attachments/assets/c486d959-28c6-407c-b1c1-9f09f5591cd4)

## Technologies


Proseforge uses Rust, React, Typescript, Tailwind, and Tauri.

## Monorepo structure

### Apps:

- `desktop` - A [Tauri](https://v2.tauri.app/) app.

### Core:

- `core`: The Rust core. Cross-platform core of the application that provides the main functionality.

### Interface:

- `interface`: The shared React component library.

### Packages:

- `markdown-editor`: A markdown editor component.

## Commands

- `make init` - Initialise the dev environment
- `make install` - Install dependencies
- `pnpm dev:desktop` - Start the desktop app
- `pnpm css` - Compile CSS and watch for changes
- `pnpm run desktop tauri build` - Build the desktop app
24 changes: 0 additions & 24 deletions apps/desktop/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/.vscode/extensions.json

This file was deleted.

7 changes: 0 additions & 7 deletions apps/desktop/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions apps/desktop/index.html

This file was deleted.

27 changes: 0 additions & 27 deletions apps/desktop/package.json

This file was deleted.

Loading