github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/fish_client/src/views/dashboard.js (about)

     1  /**
     2   * Copyright 2017 Intel Corporation
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   * ----------------------------------------------------------------------------
    16   */
    17  'use strict'
    18  
    19  const m = require('mithril')
    20  
    21  const Dashboard = {
    22    view (vnode) {
    23      return [
    24        m('.header.text-center.mb-4',
    25          m('h4', 'Welcome To'),
    26          m('h1.mb-3', 'FishNet'),
    27          m('h5',
    28            m('em',
    29              'Powered by ',
    30              m('strong', 'Sawtooth Supply Chain')))),
    31        m('.blurb',
    32          m('p',
    33            m('em', 'Sawtooth Supply Chain'),
    34            ' is a general purpose supply chain solution built using the ',
    35            'power of ',
    36            m('a[href="https://github.com/hyperledger/sawtooth-core"]',
    37              { target: '_blank' },
    38              "Hyperledger Sawtooth's"),
    39            ' blockchain technology. It maintains a distributed ledger ',
    40            'that tracks both asset provenance and a timestamped history ',
    41            'detailing how an asset was stored, handled, and transported.'),
    42          m('p',
    43            m('em', 'FishNet'),
    44            ' demonstrates this unique technology with an illustrative ',
    45            'example: tracking the provenance of fish from catch to plate. ',
    46            'One day an application like this could be used by restaurants, ',
    47            'grocery stores, and their customers to ensure the fish they ',
    48            'purchase is ethically sourced and properly transported.'),
    49          m('p',
    50            'To use ',
    51            m('em', 'FishNet'),
    52            ', create an account using the link in the navbar above. ',
    53            'Once logged in, you will be able to add new fish assets to ',
    54            'the blockchain and track them with data like temperature or ',
    55            'location. You will be able to authorize other "agents" on the ',
    56            'blockchain to track this data as well, or even transfer ',
    57            'ownership or possession of the fish entirely. For the ',
    58            'adventurous, these actions can also be accomplished directly ',
    59            'with the REST API running on the ',
    60            m('em', 'Supply Chain'),
    61            ' server, perfect for automated IoT sensors.'))
    62      ]
    63    }
    64  }
    65  
    66  module.exports = Dashboard