Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-vue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Salomon
duniter-vue
Commits
70764cf4
Commit
70764cf4
authored
10 months ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
update datapod kind names
parent
a6b136c4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib.ts
+4
-4
4 additions, 4 deletions
src/lib.ts
src/views/DatapodEdit.vue
+3
-3
3 additions, 3 deletions
src/views/DatapodEdit.vue
with
7 additions
and
7 deletions
src/lib.ts
+
4
−
4
View file @
70764cf4
...
...
@@ -4,10 +4,10 @@ import { CID } from 'multiformats'
// for the moment they are updated manually from datapod types
// document describing cesium plus profile
export
const
UPDATE_
CESIUM_PLUS_PROFILE
=
'
bafkreigi5phtqpo6a2f3tx4obaja4fzevy3nyvnl4bnkcxylyqnfeowzbm
'
export
const
D
ELETE_CESIUM_PLUS_PROFILE
=
'
bafkreic5bv5ytl7zv5rh5j2bd5mw6nfrn33mxhiobgmpsiu65yjw3eeduu
'
export
const
CESIUM_PLUS_PROFILE
_UPDATE
=
'
cplus_upsert
'
export
const
CESIUM_PLUS_PROFILE_DELETE
=
'
cplus_delete
'
export
const
D
D_USER_FS
=
'
dd_user_fs
'
export
const
TRANSACTION_COMMENT
=
'
dd_tx_comment
'
export
interface
IndexRequest
{
pubkey
:
string
...
...
This diff is collapsed.
Click to expand it.
src/views/DatapodEdit.vue
+
3
−
3
View file @
70764cf4
...
...
@@ -8,7 +8,7 @@ import DatapodMetadata from '@/components/DatapodMetadata.vue'
import
{
ipfsGateway
,
loginAccount
}
from
'
@/global
'
import
{
CID
}
from
'
multiformats
'
import
{
dialpeers
,
type
DatapodIpfsStack
}
from
'
@/ipfs
'
import
{
DELETE_
CESIUM_PLUS_PROFILE
,
UPDATE_
CESIUM_PLUS_PROFILE
,
buildStringPayload
}
from
'
@/lib
'
import
{
CESIUM_PLUS_PROFILE
_DELETE
,
CESIUM_PLUS_PROFILE
_UPDATE
,
buildStringPayload
}
from
'
@/lib
'
import
type
{
CplusProfile
,
IndexRequest
,
SignedIndexRequest
,
Social
}
from
'
@/lib
'
import
type
{
InjectedAccountWithMeta
}
from
'
@polkadot/extension-inject/types
'
import
{
web3FromSource
}
from
'
@polkadot/extension-dapp
'
...
...
@@ -93,14 +93,14 @@ function insertProfile() {
if
(
p_city
.
value
)
data
.
city
=
p_city
.
value
if
(
p_geoloc
.
value
)
data
.
geoloc
=
p_geoloc
.
value
if
(
p_socials
.
value
)
data
.
socials
=
p_socials
.
value
uploadSignPublish
(
data
,
UPDATE_
CESIUM_PLUS_PROFILE
)
uploadSignPublish
(
data
,
CESIUM_PLUS_PROFILE
_UPDATE
)
}
// request delete profile data
function
deleteProfile
()
{
const
account
=
loginAccount
.
value
!
const
ir
:
IndexRequest
=
{
pubkey
:
account
.
address
,
kind
:
DELETE_
CESIUM_PLUS_PROFILE
,
kind
:
CESIUM_PLUS_PROFILE
_DELETE
,
data
:
null
,
time
:
Date
.
now
()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment