GithubHelp home page GithubHelp logo

zesty-io / live-editor Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 20.22 MB

Website/App Overlay Guide for Editing Zesty.io Content

Home Page: https://chrome.google.com/webstore/detail/zestyio-webengine-view-ex/mnkmogppmhhmafgfljgckpkapodofjob

HTML 0.09% TypeScript 99.25% JavaScript 0.40% CSS 0.14% SCSS 0.12%
zesty-io

live-editor's Issues

Component Refactor

Split out ZestyExplorer component to multiple components in the top level component directory

Save on edits should post all changes

Much like the Manager, saves should be made after editing all desired fields not just one field at a time to avoid unnecessary versions of content

Local Envirnoment Setup

A clean way with a WATCH to develop locally without publishing or pushing to CDNJS, or using the zesty explorer chrome extension.

Document this is the README

Bringing back npm load modules

the ability to install with NPM and run the module from local

  • needs local host in cors

Example implementation

import LiveEditor from '@zesty-io/live-editor'

<LiveEditor content={content} />

If the content object is passed.

If content is passed in and they are not authenticated, only show three tabs: Code, Navigator, JSON

Change Code to ignore fields api call if not authenticated.

Give option to authenticate (this requires cors update from zesty backend)

Code Helper TAb

Layout

image

image

Split out content viewer tab into explorer, editor, seo, JSX helper, json

jsx help should include the table of code examples alongside the field names and code to click to copy

Top bar

Link to edit Schema

Name the model and item working in.

Links to zesty docs

Table

The table should include columns for reach

Reference Name: title
Parsley: {{this.title}}
JSX React: {content.title}
VUE: {{content.title}}

seo tab improvements

dom report

include - h2 h3 h4 h5 p a chars
make dom report table

groudp page meta and global meta

add create head tag button

navigation

change location to bottom of manager link

resource zuid matches page zuid then this is part of the page

group 2 table

page meta start 7
global meta start 8

dom report > table
dom report > add # of chars

2 ..........1
1= edit persmission

open schema, manager button naming

Open new Window

Buttons should open new window (target _blank)

Naming

Open Content and Open schema? or Go to Content and Go to Schema? or Edit content/schema
I think we also want to pay close attention to the naming. Both buttons Open Manager and Open Schema  open the Manager they just open different sections/apps in the Manager. I don’t have any suggestions as to what to name them though

Name change to Live Editor

Changes

  • Readme instructions
  • Build files
  • jsdeliver url
  • Chrome extension name and jsdeliver url in chrome extension package
  • npm package name
  • nextjs starter npm include

SEO Tab

Shows meta as it is, can edit meta, shows dom report (number of H1s, text of page, links)

Meta TAb: Use top level `.meta` from content object, iterate through each, show in table form

Show Meta Data from Zesty

Access only the top level meta.web object, iterate through each into a table format. The goal is to show the user the tags that are available and editable in zesty. Create link to edit like: https://:INSTANCE_ZUID.manager.zesty.io/content/:MODEL_ZUID/:ITEM_ZUID/meta

"type":"item"
"model_name":"homepage"
"model_alternate_name":"Homepage"
"zuid":"7-31209c-g7qsjg"
"createdAt":"2022-03-24 16:27:42"
"updatedAt":"2022-03-24 16:27:41"
"listed":"1"
"version":"316"
"locale":{6 items
"id":"1"
"name":"English (United States)"
"code":"en-US"
"default":"1"
"active":"1"
"enabled":"1"
}
"model":{5 items
"type":"model"
"zuid":"6-31079c-vdg69q"
"name":"homepage"
"label":"Homepage"
"resourceURI":"https://kfg6bckb-dev.webengine.zesty.io/-/instant/6-31079c-vdg69q.json"
}
"web":{12 items
"url":"https://kfg6bckb-dev.webengine.zesty.io/"
"uri":"/"
"fragment":"zesty_home"
"canonical_tag_mode":"1"
"sitemap_priority":"-1.0"
"sitemap_last_updated":"2022-03-24 16:27:41"
"canonical_query_param_whitelist":NULL
"canonical_tag_custom_value":NULL
"seo_link_text":"Homepage"
"seo_meta_title":"Zesty.io: Simplify digital. Maximize results."
"seo_meta_description":"Zesty is built for teams to manage and distribute content to multiple sites, devices, and anywhere else it needs to go."
"seo_meta_keywords":NULL
}
}

Showing loaded from the HTML document

Look through the dom and output the <meta> tags in a separate table.

image

Editing lock to prevent overwriting

  • are there any sync / user locks to keep 2 people from cutting versions on top of each other?
    • can we use content lock from the manager app

Bad links from no ZUID

When loading via CDNJS we dont have the Instance ZUID
image

If this data is missing ( when not implemted from react loading {content}) it can be accessed off the response object in res.headers.z-zuid
image

Not building for npm

Does not run with NPM, @darwin808 please verify this locally and setup a PR.

You can test with nextjs-website and npm update @zesty-io/explorer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.