-
Notifications
You must be signed in to change notification settings - Fork 268
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/JS-5093: Publishing #988
Open
ra3orblade
wants to merge
29
commits into
main
Choose a base branch
from
publish-test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a8c5c08
add publish menu button
ra3orblade e04e9cd
refactoring
ra3orblade 24b8c0a
refactoring
ra3orblade 7a98e10
fix publish action state
ra3orblade daeae38
Merge branch 'main' of github.com:anyproto/anytype-ts into feature/puβ¦
ra3orblade 5663593
Merge branch 'main' of github.com:anyproto/anytype-ts into feature/puβ¦
ra3orblade 9aa5a8c
Merge branch 'main' of github.com:anyproto/anytype-ts into feature/puβ¦
ra3orblade be1426c
merge
ra3orblade 7262098
Add publish
mcrakhman ebe1832
map ObjectPublish and call
zarkone 59c2f4a
copy published url to clipboard and show in toast
zarkone 83cdd8b
workaround object show
zarkone b4f0419
Merge branch 'main' of github.com:anyproto/anytype-ts into publish-test
ra3orblade 6dac777
code review
ra3orblade 12ec6b6
Merge branch 'feature/chat' of github.com:anyproto/anytype-ts into puβ¦
ra3orblade 478002f
fix error message if
zarkone b752486
add nix flakes for dev env
zarkone 01c5d1c
merge
ra3orblade e765673
Merge branch 'feature/chat' of github.com:anyproto/anytype-ts into puβ¦
ra3orblade 508d48f
Merge branch 'feature/chat' into publish-test
zarkone a101897
Merge branch 'main' into publish-test
zarkone a60aa6a
Merge branch 'main' into publish-test
zarkone cb743fe
send pageId instead of json content
zarkone 4610102
Merge branch 'main' of github.com:anyproto/anytype-ts into publish-test
ra3orblade 22a0694
Merge branch 'main' of github.com:anyproto/anytype-ts into publish-test
ra3orblade abc9f9c
Merge branch 'main' into publish-test
zarkone 33b97c3
Merge branch 'main' into publish-test
zarkone 20cbb8e
flakes, add pixbuf for new electron
zarkone b160e44
log error
zarkone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# nix-ld should be enabled in configuration.nix: | ||
# programs.nix-ld.enable = true; | ||
# programs.nix-ld.libraries = with pkgs; [ | ||
# gtk3 | ||
# # Add any missing dynamic libraries for unpackaged programs | ||
# # here, NOT in environment.systemPackages | ||
# ]; | ||
|
||
{ | ||
description = ""; | ||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
config = { allowUnfree = true; }; | ||
}; | ||
deps = [ | ||
pkgs.appimage-run | ||
# commit hook | ||
pkgs.husky | ||
# build deps | ||
pkgs.libxcrypt | ||
pkgs.libsecret | ||
pkgs.pkg-config | ||
pkgs.jq | ||
pkgs.nodejs_22 | ||
|
||
# keytar build fails on npm install because python312 has distutils removed | ||
pkgs.python311 | ||
|
||
# electron binary launch deps. | ||
# see also https://nix.dev/guides/faq#how-to-run-non-nix-executables | ||
pkgs.glib | ||
pkgs.nss | ||
pkgs.nspr | ||
pkgs.dbus | ||
pkgs.atk | ||
pkgs.cups | ||
pkgs.libdrm | ||
pkgs.gtk3 | ||
pkgs.adwaita-icon-theme | ||
pkgs.pango | ||
pkgs.cairo | ||
pkgs.xorg.libX11 | ||
pkgs.xorg.libX11 | ||
pkgs.xorg.libXcomposite | ||
pkgs.xorg.libXdamage | ||
pkgs.xorg.libXext | ||
pkgs.xorg.libXfixes | ||
pkgs.xorg.libXrandr | ||
pkgs.mesa | ||
pkgs.expat | ||
pkgs.libxkbcommon | ||
pkgs.xorg.libxcb | ||
pkgs.alsa-lib | ||
pkgs.libGL | ||
pkgs.gdk-pixbuf | ||
]; | ||
XDG_ICONS_PATH = "${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share"; | ||
in { | ||
devShell = pkgs.mkShell { | ||
name = "anytype-ts-dev"; | ||
SERVER_PORT = 9090; | ||
ANY_SYNC_NETWORK = "/home/zarkone/anytype/local-network-config.yml"; | ||
LD_LIBRARY_PATH = "${pkgs.lib.strings.makeLibraryPath deps}"; | ||
nativeBuildInputs = deps; | ||
shellHook = '' | ||
# fixes "No GSettings schemas" error | ||
export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH:$XDG_ICONS_PATH:$XDG_DATA_DIRS | ||
''; | ||
}; | ||
|
||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,13 @@ export const ObjectShow = (response: Rpc.Object.Show.Response) => { | |
}; | ||
}; | ||
|
||
export const ObjectPublish = (response: Rpc.Object.Publish.Response) => { | ||
return { | ||
cid: response.getPublishcid(), | ||
key: response.getPublishfilekey(), | ||
}; | ||
}; | ||
|
||
Comment on lines
+201
to
+207
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. export const ObjectPublish = (response: Rpc.Object.Publish.Response) => ({
cid: response.getPublishcid(),
key: response.getPublishfilekey(),
}) I find it nicer |
||
export const ObjectSearch = (response: Rpc.Object.Search.Response) => { | ||
return { | ||
records: (response.getRecordsList() || []).map(Decode.struct), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to format it like that?