Socket
Socket
Sign inDemoInstall

@action-agenda/loading

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @action-agenda/loading

https://github.com/scbd/action-agenda-components/tree/master/packages/view#readme


Version published
Maintainers
1
Created

Readme

Source

sidebarDepth: 5

View

Description

This component displays a single commitment that is published, or not published with appropriate roles.

Install

Widget

To install as a copy and paste widget. As seen here: https://www.cbd.int/action-agenda/contributions/action/?action-id=5eeba456395529000178dcbf

::: tip This component's options can be passed as an attribute on the script tag. See options details :::


<script nomodule="" id="view-legacy" src="https://cdn.cbd.int/@action-agenda/view@~1.0.0/dist/widget/index.umd.min.js"></script>
<script  type="module" id="view" src="https://cdn.cbd.int/@action-agenda/view@~1.0.0/dist/widget/index.min.js"></script> 



<script  type="module" id="view" src="https://cdn.cbd.int/@action-agenda/view@~1.0.0/dist/widget/index.min.js"></script> 



<script nomodule="" id="view-legacy" src="https://cdn.cbd.int/@action-agenda/view@~1.0.0/dist/widget/index.umd.min.js"></script>

Vuejs

To install as vuejs component.


yarn add @action-agenda/view


npm install @action-agenda/view

<template>
  <AAView identifier="5f1a9e9c66d0dd000181331d" ></AAView>
</template>

<script>
import AAView from '@action-agenda/view'

import '@scbd/www-css'

export default { name      : 'App',
                 components: { AAView } 
               }
</script>

Properties

<<< @/packages/view/src/index.vue#snippet

identifier

Can be passed a prop on the element or as a url search param:

?action-id=5dbc8120f247140001197c8a

https://www.cbd.int/action-agenda/contributions/action/?action-id=5dbc8120f247140001197c8a

forceEnv

Tell the component which api to use by passing: dev | stg | prod

dev : https://api.cbddev.xyz/api/actions

stg : https://api.stg.cbd.int/api/actions

prod : https://api.cbd.int/api/actions

options

<<< @/packages/view/src/default-options.js#snippet

I18n (translations)

<<< @/packages/view/src/locales/index.js

Example


.aaexamp{ background-color: rgb(38, 90, 79); } .aaexamp .article-container{ background-color: white; } .aaexamp-header{ max-width: 740px; margin: 0 auto; padding: 2rem 2.5rem; }

FAQs

Last updated on 14 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc