0.5.0 • Published 3 years ago

@piccollage/pic-collage-live v0.5.0

Weekly downloads
43
License
ISC
Repository
github
Last release
3 years ago

pic-collage-live

Components for building realtime collaborative collage editors with Typescript.

Dependencies

+-----------------------------------------------------------------------------+
|                                      APP                                    |
+--------------+-----------------+---------+--------------------+-------------+
|  app_common  | editor_sidemenu | persons |  templates_browser |  pc_server  |      
+--------------+-----------------+---------+--------------------+-------------+
|                                    collager                                 |                         
+-----------------------------------------------------------------------------+
|      collage_firebase     |      text_editor      |      path_editor        |
+---------------------------+-----------------------+-------------------------+
|                           |     fonts_firebase    |                         |
+-----------------------------------------------------------------------------+
|                                collage_toolkit                              |
+-----------------------------------------------------------------------------+
|                                     CBJS                                    |
+-----------------------------------------------------------------------------+

Mobile/desktop dependencies

  • TextEditor => horizontal/vertical/mobile
  • CreatorView => ResponsiveView => MobileHeaderView/DesktopHeaderView
  • manipulateAddText
    • manipulateEditTextModal
    • manipulateEditTextModeless
  • CollagerEditWidget/CollagerEditView => isMobile$

    • manipulateEditTextModal
      • mobile
    • manipulateEditTextModeless
      • vertical
    • (horizontal is unused?)

CBJS Dependencies

  • PersonPlugin
  • BulletinContext

  • MDDV utils (Widget, Context, Command, Manipulator)

  • Base types (Point, Color, Font, etc.)

  • Serialization utilities (fieldTo, structTo)

  • Firebase utilities (sync_, etc.)
  • Rx utilities (operators, useBehaviorSubject, promise$)
  • Generic utilities (logging, etc.)
  • View utilities (Portal, IAnimation)
  • Gesture utilities (Touch -> Rx)

Setting up Firebase

  • Rules for Storage access
  • Rules for Firebase access
  • CORS cloud setup (see below)
  • We serve index.html via /functions (for OG rewriting), so need to:
    • After build, copy index.html (see package.json)
    • Make sure functions works, so need to change from "Free" plan to "Pay as you go" in "Usage and billing".
    • Setup to serve as a single-page-app.

CORS domain on bucket stickers:

https://stackoverflow.com/questions/37760695/firebase-storage-and-access-control-allow-origin

  • Go to https://console.cloud.google.com/home
  • "Activate Google Cloud Shell" (upper right menu bar).
  • Create a file (cors.json):

    [ { "origin": "*", "method": "GET", "maxAgeSeconds": 3600 } ]

  • gsutil cors set cors.json gs://pic-collage-live.appspot.com

Emulator

https://firebase.google.com/docs/database/security/test-rules-emulator firebase setup:emulators:firestore

Setting up Staging

Issue with face-api.js:

Debugging on the device tips

  • Install Android Studio.
  • Make sure adb is in the path (~/Library/...).
  • Run adb devices so that Chrome can see it.

Live Coding 1 (2019-06-14)

  • MagicDotWidget
    • Create
    • Prop
  • ScrapWidget
  • Check if not for other gestures
  • MagicDotView
    • Follow position
    • Hide if no position
  • Calculate position of MagicDot (RELATIVE)
  • Trigger manipulator from gesture
  • Code manipulator

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Serve index.html from node server locally

NOTE: This is NOT server side rendering for React. It's just a mechanism to generate dynamic html file for meta tag information.

Requirements

  • Install the Firebase CLI
npm install -g firebase-tools
  • Install packages in functions directory
yarn
  • Make sure node version is consistent with functions(node 10)
yarn serve
0.5.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.4.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.241

3 years ago

0.1.240

3 years ago

0.1.239

3 years ago

0.1.238

3 years ago

0.1.237

3 years ago

0.1.235

3 years ago

0.1.236

3 years ago

0.1.234

3 years ago

0.1.233

3 years ago

0.1.231

3 years ago

0.1.232

3 years ago

0.1.230

3 years ago

0.1.229

3 years ago

0.1.228

3 years ago

0.1.227

3 years ago

0.1.226

3 years ago

0.1.224

3 years ago

0.1.225

3 years ago

0.1.223

3 years ago

0.1.217

3 years ago

0.1.216

3 years ago

0.1.219

3 years ago

0.1.218

3 years ago

0.1.215

3 years ago

0.1.220

3 years ago

0.1.222

3 years ago

0.1.214

3 years ago

0.1.210

3 years ago

0.1.211

3 years ago

0.1.208

3 years ago

0.1.207

3 years ago

0.1.206

3 years ago

0.1.205

3 years ago

0.1.203

3 years ago

0.1.202

3 years ago

0.1.198

3 years ago

0.1.201

3 years ago

0.1.200

3 years ago

0.1.197

3 years ago

0.1.193

3 years ago

0.1.195

3 years ago

0.1.191

3 years ago

0.1.189

3 years ago

0.1.166

3 years ago

0.1.160

3 years ago

0.1.156

3 years ago

0.1.154

3 years ago

0.1.153

3 years ago

0.1.151

3 years ago

0.1.149

3 years ago

0.1.147

3 years ago

0.1.145

3 years ago

0.1.143

3 years ago

0.1.141

3 years ago

0.1.139

3 years ago

0.1.137

3 years ago

0.1.135

3 years ago

0.1.134

3 years ago

0.1.132

3 years ago

0.1.131

3 years ago