• Stars
    star
    325
  • Rank 129,350 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The OneNote Web Clipper extension

WebClipper

Setup

1. Install npm -- https://nodejs.org/en/download/

(Note: on windows, you also need to add "%appdata%\npm" to your PATH)

2. Install the WebClipper packages

From the root of this project, run:

$ npm install

3. Build and Test

The default command to build and test:

$ npm run build
or
$ npm run build -- --<arg>
  • Compiles LESS and TypeScript into /build
  • Bundles the JavaScript modules together into /build/bundles
  • Exports all the needed files to /target

4. Running in chrome

Google instructions

  1. In chrome, open chrome://extensions/
  2. Enable developer mode (upper right toggle)
  3. Click on "load unpacked" and select the target/chrome folder
  4. On subsequent builds, you don't have to go through this flow again. Simply refreshing the page should update the add-in

4. Running in edge

Microsoft instructions

  1. In edge, go to edge://extensions
  2. Enable developer mode (bottom left toggle)
  3. Restart edge
  4. Click on top right "...", then Extensions
  5. Click on "Load unpacked" and select the target\edge\OneNoteWebClipper\edgeextension\manifest\extension
  6. On subsequent builds, you need to go through steps (4) and (5) again

5. Looking at console output

Set the "enable_console_logging" local storage entry to true

6. Shipping an update to the store

Every store is different and you'll have to look at our internal guide to understand how to ship an update. In general, shipping in chrome/edge is easy and shipping in FF/Safari is hard. We don't ship any updates to IE anymore.

Edge

Instructions here

  1. Build locally npm run build:prod
  2. Run npm run pack-edge. The results will be in /OneNoteWebClipper/EdgeExtension
  3. The file you will upload is the target/edge/OneNoteWebClipper/edgeextension/package/edgeExtension.appx file. You can also test by uploading the target/edge/onenotewebclipper/edgeextension/manifest/extension folder locally in edge
  4. Now follow our internal instructions to update the package.

Congratulations!

At this point you should see the tests passing, and see the packaged code in the target folder

Other useful commands

Clean

$ npm run clean

Removes all of the generated files from build

More Repositories

1

VanillaAddIn

Vanilla OneNote COM Add-In sample that can help bootstrap Add-In projects
C#
86
star
2

OneNoteApi

JavaScript library to make calling the OneNote API easier.
TypeScript
76
star
3

OneNoteAPISampleNodejs

Node.js sample for the OneNote API
JavaScript
74
star
4

GoldFish

JSON/CBOR streaming library, without using memory, like a GoldFish
C++
66
star
5

OneNoteAPISampleWinUniversal

Code sample with examples of how to use the OneNote API on a Windows 8.1 and above Universal app
C#
63
star
6

OneNoteConversionTool

This is a Windows Application for converting documents of various formats into OneNote.
C#
44
star
7

OneNoteAPISamplePHP

Code sample with examples of how to use the OneNote API on PHP.
PHP
37
star
8

Android-REST-API-Explorer

View and run the REST APIs that read, add, update, and delete OneNote entities such as notebooks, section groups, sections, and pages.
Java
36
star
9

OneNoteAPISampleAndroid

Code sample with examples of how to use the OneNote API on Android
Java
36
star
10

OneNoteAPISampleWinStore

Code sample with examples of how to use the OneNote API for Windows 8 apps
C#
33
star
11

OneNoteAPIPostmanCollection

Postman collection for OneNote API requests.
30
star
12

OneNoteAPISampleiOS

Code sample with examples of how to use the OneNote API on iOS
Objective-C
27
star
13

OneNotePicker-JS

A JavaScript UI component that allows a user to choose a section from a list of their notebooks.
TypeScript
23
star
14

OneNoteAPISampleRuby

Code sample with examples of how to use the OneNote API with Ruby on Rails.
Ruby
20
star
15

OneNoteAPISampleWinPhone

Code sample with examples of how to use the OneNote API on Windows Phone
C#
19
star
16

OneNote-For-AutoCAD

OneNote Add-in for AutoCAD
C#
18
star
17

OneNotePicker-Android

Android Library to allow a user to select a OneNote section in any notebook by Microsoft Open Technologies, Inc.
Java
17
star
18

MsGraph_OneNoteApiSamplePHP

PHP
15
star
19

Videos

Repository that contains all the source code for the OneNote Developer Videos Series.
Java
15
star
20

OneNoteClassNotebookAPISamplePowerShell

Code sample with examples of how to use the OneNote Class Notebooks API on PowerShell
PowerShell
14
star
21

iOS-REST-API-Explorer

View and run the REST APIs that read, add, update, and delete OneNote entities such as notebooks, section groups, sections, and pages.
Objective-C
12
star
22

OneNoteAPIDiagnostics

10
star
23

OneNotePicker-iOS

iOS Library to allow a user to select a OneNote section in any notebook by Microsoft Open Technologies, Inc.
Objective-C
9
star
24

OneDriveForBusiness-SetupPowerShellCmdlets

Tenant Admin Powershell Cmdlets trigger the creation of OneDrive for Business sites and grant tenant administrators administrative access to these sites.
PowerShell
9
star
25

OneNoteApiSampleAspNetCore

OneNote API sample in ASP.NET core
C#
7
star
26

ClassNotebookTransferAPISample

Code sample of how to use the OneNote API to transfer a Class Notebook on PowerShell
PowerShell
7
star
27

MsGraph_OneNoteApiSampleNodejs

MsGraph_OneNoteApiSampleNodejs
JavaScript
5
star
28

MsGraph_OneNoteApiSampleAspNetCore

C#
5
star
29

MsGraph_Android_REST_API_Explorer

MsGraph_Android_REST_API_Explorer
Java
4
star
30

OneNoteAPIDiagnosticsSrc

C#
3
star
31

MsGraph_OneNoteApiSampleiOS

Objective-C
2
star
32

OneNoteCNApiSample

Sample web app for the OneNote Class Notebook APIs
JavaScript
2
star
33

SetupGuestSharingForTeamSites

Allows to set all the modern groups or Team sites sharing capability to ExternalUserAndGuestSharing in an SPO.
PowerShell
1
star