Giter Site home page Giter Site logo

officedev / script-lab-2017 Goto Github PK

View Code? Open in Web Editor NEW
218.0 60.0 60.0 43.09 MB

[Archived. This is an older version that's no longer maintained. See https://github.com/officedev/script-lab instead]

Home Page: https://aka.ms/scriptlab

License: MIT License

JavaScript 76.59% HTML 0.91% TypeScript 18.12% CSS 4.38%
office-addin code-editor teaches-people typescript

script-lab-2017's Issues

Auto refresh on runner and runner.html

  • for the runner.html solve Office Helpers storage sync bug and use it

  • and for the runner, auto refresh using websockets, **optionally pass snippet if possible

Main Playgrounds homepage should offer (after 3 seconds?) a button to proceed AS IF there is a host

Something like:

It seems you are either opening the Playground in a standalone browser window, or Office.js is slow to load. Would you like to proceed to the editor as is (but you will not be able to run Office snippets)?

Choose your host, to load the appropriate templates:

Web, Excel, Word, OneNote

This will be particularly useful for the WAC editing scenario, to allow someone to open a full editor in one tab, and then their runner in another. And, of course, it will be helpful for trying out pure Web snippets.

When we eventually have Office.ready, we'll be able to tweak the behavior so that instead of waiting 3 seconds, we are waiting for a definitive Office.ready call. But the tweak will be very minor, and it's clear when Office.ready will ship -- so we may as well do this now.

When a host is chosen, we should store it into SESSION storage, so that a subsequent load of the page in the same tab will not need to wait the 3 extra seconds.

Development Activity

  1. Importing snippets via url/gist/yaml
  2. Update and Sync gists across devices
  3. Error reporting

XMLHttpRequest cannot load https://addin-playground.azureedge.net/assets/firebug-lite.js. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://addin-playground-runner.azurewebsites.net' is therefore not allowed access.

Error in console when running a new snippet (web)

XMLHttpRequest cannot load https://addin-playground.azureedge.net/assets/firebug-lite.js. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://addin-playground-runner.azurewebsites.net' is therefore not allowed access.

Enable telemetry

  • if the snippet uses Office.js
  • telemetry on the runner
  • telemetry on cache usage
  • telemetry on functions
  • telemetry on errors
  • telemetry on intellisense & libraries
  • telemetry on code size
  • telemetry on templates used
  • telemetry on public gists
  • telemetry on copy usage
  • telemetry on the separate runner
  • telemetry on snippet modification

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.