Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/search #15

Merged
merged 20 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 4 additions & 9 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
FROM mcr.microsoft.com/devcontainers/rust:1

RUN cargo install [email protected]
USER root
RUN chmod -R g+w /usr/local/cargo
RUN apt-get update -y
RUN apt-get install -y libwebkit2gtk-4.0 libgtk-3-0 libappindicator3-1 fonts-noto-cjk libssl-dev perl cpanminus webkit2gtk-driver
RUN cpanm JSON Net::SSLeay LWP::Simple LWP::Protocol::https
RUN apt-get update -y \
&& apt-get install -y libwebkit2gtk-4.0 libgtk-3-0 libappindicator3-1 fonts-noto-cjk libssl-dev perl cpanminus webkit2gtk-driver sqlite3 \
&& cpanm JSON IO::Socket::SSL Net::SSLeay LWP::Simple LWP::Protocol::https

USER vscode
# RUN : "install perl modules" \
# && cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) \
# && cpanm JSON Net::SSLeay LWP::Simple LWP::Protocol::https
USER vscode
18 changes: 14 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/node:1": {},
// "ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"installOhMyZsh": false,
Expand All @@ -37,22 +38,31 @@
"ms-azuretools.vscode-docker",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb"
"vadimcn.vscode-lldb",
"oscartbeaumont.rspc-vscode"
]
}
},
"mounts": [
{
"source": "node_modules",
"target": "/workspaces/docbrowser/node_modules",
"type": "volume"
},
{
"target": "/usr/local/cargo/registry",
"source": "cargo",
"target": "/usr/local/cargo",
"type": "volume"
},
{
"source": "cpanm",
"target": "/usr/local/share/perl",
"type": "volume"
},
// {
// "target": "/home/vscode/.asdf/installs",
// "type": "volume"
// "source": "rustup",
// "target": "/usr/local/rustup",
// "type": "volume"
// },
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh",
Expand Down
18 changes: 14 additions & 4 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ set -eu

echo This is postCreate Script!

# cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
# cpanm JSON
# cpanm Net::SSLeay
# cpanm LWP::Simple LWP::Protocol::https
sudo mkdir -p /workspaces/docbrowser
sudo chown -R 1000:1000 /workspaces
mkdir -p /workspaces/docbrowser/node_modules

sudo chmod -R g+w /usr/local/cargo /usr/local/rustup
sudo chown -R :rustlang /usr/local/cargo
sudo chown -R :rustlang /usr/local/rustup

# cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) \
# cpanm JSON Net::SSLeay LWP::Simple LWP::Protocol::https

cargo install [email protected]

pnpm i
2 changes: 1 addition & 1 deletion .devcontainer/postStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu
echo This is postStart Script!

# cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
# cpanm JSON Net::SSLeay LWP::Simple LWP::Protocol::https
# cpanm JSON Net::SSLeay LWP::Simple LWP::Protocol::https
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ dist-ssr
*.sw?

.pnpm-store

docsets/*
Binary file added docsets/hoge.db3
Binary file not shown.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"tauri": "tauri"
},
"dependencies": {
"@rspc/client": "^0.1.3",
"@rspc/react": "^0.1.3",
"@rspc/tauri": "^0.1.3",
"@tauri-apps/api": "^1.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand All @@ -28,7 +31,7 @@
"eslint-plugin-react": "^7.32.2",
"prettier": "^2.8.8",
"tailwindcss": "^3.3.2",
"typescript": "^4.9.5",
"typescript": "^5.1.6",
"vite": "^4.2.1"
}
}
Loading
Loading