Skip to content

Commit

Permalink
Kanban and Github Plugins (NEAR-DevHub#344)
Browse files Browse the repository at this point in the history
* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feature: init root

* feature: pass props for widgets accountId and contract accountId

* feature: demo for new root

* feature: adds the configurators wip

* feature: branding configurator

* feature: about and information configurator

* feature: adds new addon flow

* fix: communities metadata

* fix: pass widgets to addon configurator

* fix: formatting and centering

* feature: refactored configurator

* feature: working information, about, and access control editors

* fix: branding for upload, but broken preview

* feature: blog start

* feature: tab links

* refactor: working communities with new root

* feature: implements feed

* fix: format

* feature: addons and configs with swapping config

* feat: puts in replacements for the refactor

* fix: name casing

* fix: format

* Implement server side search (NEAR-DevHub#298)

* Implement server side search

* case insensitive search on content

* add search test

* Update deploy-dev-testnet.yml

* feature: adds addons and their configurators (NEAR-DevHub#326)

* fix: bos-loader pulls from cargo

* fix: links and replacements

* chore: dummy data

* feature: rename page

* wip: plugins

* feature: able to configure addons from community config

* feat: dummy data

* fix: key in tab selection

* feat: telegram configurator

* feature: init github

* refactor: moves configurators inside of configuration

* refactor: posts and blog

* fix: replace mob

* fix: broken link

* fix: move app and clean-up

* refactor: structure

* fix: scripts

* fix: bos-loader pulls from cargo

* fix: links and replacements

* feat: adds workflow to deploy to testnet (NEAR-DevHub#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (NEAR-DevHub#318)

* Fix community posting (NEAR-DevHub#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (NEAR-DevHub#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (NEAR-DevHub#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: structure clean up and fixes (NEAR-DevHub#330)

* fix: adds replacements for mainnet (NEAR-DevHub#318)

* Fix community posting (NEAR-DevHub#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (NEAR-DevHub#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (NEAR-DevHub#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* fix: formatting

* fix: bos-loader pulls from cargo

* feat: adds workflow to deploy to testnet (NEAR-DevHub#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (NEAR-DevHub#318)

* Fix community posting (NEAR-DevHub#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (NEAR-DevHub#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (NEAR-DevHub#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: rename to devhub

* chore: removes hello

* refactor: renames from DevHub to devhub references in code

* fix: marks legacy and makes new feed test

* feature: catches up to main

* fix: formatting

* feature: wrapped kanban and github wip

* test: adds tests for community

* fix: formatting

* fix: bash explicit

* fix: adds check for jq

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* refactor: structure clean up and fixes (NEAR-DevHub#330)

* fix: adds replacements for mainnet (NEAR-DevHub#318)

* Fix community posting (NEAR-DevHub#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (NEAR-DevHub#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (NEAR-DevHub#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* fix: formatting

* fix: bos-loader pulls from cargo

* feat: adds workflow to deploy to testnet (NEAR-DevHub#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (NEAR-DevHub#318)

* Fix community posting (NEAR-DevHub#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (NEAR-DevHub#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (NEAR-DevHub#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: rename to devhub

* chore: removes hello

* refactor: renames from DevHub to devhub references in code

* fix: marks legacy and makes new feed test

* feature: catches up to main

* fix: formatting

* feature: wrapped kanban and github wip

* test: adds tests for community

* fix: formatting

* fix: bash explicit

* fix: adds check for jq

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* refactor: moves over search post feature

* refactor: converts legacy

* refactor: replaces a with Link and separates out community card and spawner

* refactor: simplfies configurator wip

* fix: community configurator

* feat: blog configuration

* feat: improved configurator for wiki

* feat: blog editor

* fix: tag component

* Website Redesign (NEAR-DevHub#336)

* Rebase to develop branch

* fix: organize componnets according to atomic design

* feat: Add hrefs to navlinks

* fix: remove duplicate banner

* fix: remove duplicate Navbar dropdown

* fix: remove comments from app layout

* feat: add visual indicator to navbar on selected link

feat: adds deploy script

fix: access control configurator

fix: ids for addons

fix: formatting

fix: communities test

* refactor: new devhub root and refactor of current app

chore: removes homepage work

chore: removes homepage from app.js

fix: removes from contributing

fix: cleans pull request

fix: removes change to deploy-dev workflow step

* feat: configures tests for different wallet connection scenarios

fix: remove deploy

fix: removes deploy script

* fix: formatting

* feat: adds community addon framework, wiki and telegram plugins

* fix: formatting

* test: bootstraps addon test wip

* fix: formatting

* test: modifies test criteria

* initial commit

* fix: formatting

* fix: non hardcode addons

---------

Co-authored-by: Thomas <[email protected]>
Co-authored-by: Bo Yao <[email protected]>
Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
  • Loading branch information
5 people authored Nov 1, 2023
1 parent 373d86c commit 37f3fd9
Show file tree
Hide file tree
Showing 7 changed files with 624 additions and 33 deletions.
36 changes: 8 additions & 28 deletions src/core/adapter/devhub-contract.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ function setCommunityAddon({ handle, addon }) {
});
}

/**
* Gets all available addons, these are controlled by devhub moderators
*/
function getAllAddons() {
return Near.view("${REPL_DEVHUB_CONTRACT}", "get_all_addons") ?? null;
}

function getAccessControlInfo() {
return (
Near.view("${REPL_DEVHUB_CONTRACT}", "get_access_control_info") ?? null
Expand Down Expand Up @@ -176,33 +183,6 @@ function getPostsByLabel({ label }) {
);
}

function getAddons({ handle }) {
return Near.view("${REPL_DEVHUB_CONTRACT}", "get_addons", { handle }) ?? null;
}

function setAddons({ handle, addons }) {
return (
Near.view("${REPL_DEVHUB_CONTRACT}", "get_addons", { handle, addons }) ??
null
);
}

function getConfig({ config_id }) {
return (
Near.view("${REPL_DEVHUB_CONTRACT}", "get_config", { config_id }) ?? null
);
}

function setConfig({ handle, config_id, config }) {
return (
Near.view("${REPL_DEVHUB_CONTRACT}", "set_config", {
handle,
config_id,
config,
}) ?? null
);
}

function useQuery(name, params) {
const initialState = { data: null, error: null, isLoading: true };

Expand Down Expand Up @@ -247,7 +227,7 @@ return {
getAccessControlInfo,
getAllAuthors,
getAllCommunitiesMetadata,
getAvailableAddons,
getAllAddons,
getCommunityAddons,
getCommunityAddonConfigs,
getAllLabels,
Expand Down
Loading

0 comments on commit 37f3fd9

Please sign in to comment.