Kirill255 / vue-admin-dashboard

Home Page:https://vue-admin-dashboard-test.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-admin-dashboard

https://coursehunters.net/course/vue-dlya-dizaynerov

https://github.com/thomaswangio/vue-admin-dashboard

https://www.figma.com/file/aD9EmjTFnvKU5XucbMEqe1vZ/Design-Code-Dashboard?node-id=268%3A70&redirected=1

https://www.figma.com/file/BDvnImiFgrZR4bopmMD7vfbl?node-id=265:1305

https://designcode.io/design-system

https://designcode.io/design-system-in-figma

https://apexcharts.com/

https://apexcharts.com/vue-chart-demos/

https://datastudio.google.com/

https://analytics.google.com

https://support.google.com/analytics/answer/1008015?hl=ru

https://firebase.google.com/docs/firestore

https://github.com/gdg-tangier/vue-firestore

https://alligator.io/vuejs/vue-cloud-firestore/

https://firebase.google.com/docs/admin/setup

https://www.npmjs.com/package/@netlify/zip-it-and-ship-it

https://firebase.google.com/docs/reference/admin/

https://firebase.google.com/docs/reference/admin/node/admin.firestore

https://googleapis.dev/nodejs/firestore/latest/Query.html

Netlify

Deploy

https://cli.vuejs.org/guide/deployment.html#netlify

netlify

In settings we can change site name

netlify2

netlify3

Identity

https://www.netlify.com/docs/identity/

identity

or

identity

Then on settings tab, we must change registration preferences to Invite only

regpref regpref2

To use the service in your site, you can add the Netlify Identity widget npm i -S netlify-identity-widget

When using the widget on localhost, it will prompt for your Netlify SiteURL the first time it is opened.

localdev

You can invite new Identity users to your site from the Identity tab. This will send email invitations to the addresses you enter.

invite

Accept the invite

confirm

Get token from url

token

And go to http://localhost:8080/ + token address

token2

Create password

pass

Identity with gotrue-js

Build your own form and integrate it using gotrue-js npm i -S gotrue-js

Get Identity API endpoint

gotrue

Lambda functions

https://www.netlify.com/docs/functions/

func

Edit settings

func2

Create functions folder in root directory with lambda functions

Edit deploy settings

func3

Change build command

func4

When we push project to github, our functions will automatically deploy

Run your serverless functions locally for testing

Install netlify-lambda npm install netlify-lambda

Create netlify.toml configuration file in root directory

[build]
  functions = "./functions"

Copy functions folder with lambda functions in src directory

See example

Grab npm scripts

{
  "scripts": {
    "start:lambda": "netlify-lambda serve src/functions",
    "build:lambda": "netlify-lambda build src/functions"
  }
}

Run npm run start:lambda

Go to http://localhost:9000/hello

Troubleshooting

If your Netlify function has additional dependencies, there’s a chance that your function call may fail as a result of node modules not being imported as expected. To ensure that your serverless function has access to the correct dependencies, you can use @netlify/zip-it-and-ship-it package.

Install npm i -S @netlify/zip-it-and-ship-it

netlify/netlify-lambda#112

https://github.com/netlify/netlify-lambda#webpack-configuration

https://www.netlify.com/blog/2018/09/14/forms-and-functions/

https://medium.com/@saphidev/use-firebase-admin-with-netlify-lambda-functions-free-483d3b390e3a

And then be sure to do the following netlify/netlify-lambda#112 (comment)

//./config/webpack.functions.js
const nodeExternals = require("webpack-node-externals");

module.exports = {
  externals: [nodeExternals()]
};
{
  "scripts": {
    "start:lambda": "netlify-lambda serve src/functions --config ./config/webpack.functions.js",
    "build:lambda": "netlify-lambda build src/functions --config ./config/webpack.functions.js"
  }
}

You also need dependencies npmi -D webpack-node-externals

if you get encoding not found

Install npm i -S encoding

netlify/zip-it-and-ship-it#30

https://www.bridgestew.com/journal/how-to-indieweb-syndicate/

Other

netlify/netlify-lambda#43

https://github.com/netlify/functions

https://github.com/netlify-labs/functions-site

https://github.com/DavidWells/netlify-functions-workshop

Slack

https://api.slack.com/

Create new app

slack

Setup permissions

perm

In scopes section type chat and select Send messages as Your_App_Name

scopes

save

Then install app to your workspace

installapp

installapp2

Get token

successinstall

Create channel on your workspace

createchannel

createchannel2

channel

Send request

https://api.slack.com/methods/chat.postMessage

requesttochannel

Google Data Studio

Create new report

report

Select your data source

report2

We can change background color

report3

report4

report5

Add a chart and setup

report6

report7

report8

Then get embed code

embed

embed2

embed3

Result

report9

report10

Make a copy because we need to change the background for the darkmod

report10

report11

report12

report13

report14

Firebase/firestore

https://github.com/gdg-tangier/vue-firestore

// first render when component mounted
firestore() {
  return {
    traffic: {
      ref: db.collection("traffic"),
      objects: true,
      resolve: data => {
        console.log(data); // traffic
        const activeUsers = data.activeUsers; // traffic.activeUsers
      },
      reject: err => {
        console.log(err);
      }
    }
  };
}

// manually binding docs, for example we click to button and run this
this.$binding("newUsers", db.collection("traffic").doc("newUsers"))
  .then(data => {
    console.log(data); // newUsers
  })
  .catch(err => {
    console.log(err);
  });

firestore

firestore2

firestore3

firestore4

Firebase Admin SDK

firestore5

Generate new private key

adminsdk

firestore6

Install npm i -S firebase-admin

Firestore rules

https://firebase.google.com/docs/firestore/security/rules-structure

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /traffic/{document=**} {
      allow read;
    }
  }
}

About

https://vue-admin-dashboard-test.netlify.com


Languages

Language:Vue 80.6%Language:JavaScript 15.2%Language:CSS 3.1%Language:HTML 1.1%