Skip to content

Commit 3521db1

Browse files
author
Sumedha Pramod
committed
Chore: Migrating annotations code into repo
1 parent 12aaab4 commit 3521db1

36 files changed

+79
-75
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "box-annotations",
3-
"version": "0.0.0",
3+
"version": "0.0.9",
44
"description": "Box Annotations",
55
"author": "Box (https://www.box.com/)",
66
"license": "SEE LICENSE IN LICENSE",

src/AnnotationDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import autobind from 'autobind-decorator';
22
import EventEmitter from 'events';
33
import * as annotatorUtil from './annotatorUtil';
44
import * as constants from './annotationConstants';
5-
import { ICON_CLOSE, ICON_DELETE } from '../icons/icons';
5+
import { ICON_CLOSE, ICON_DELETE } from './icons/icons';
66

77
const POINT_ANNOTATION_ICON_HEIGHT = 31;
88
const POINT_ANNOTATION_ICON_DOT_HEIGHT = 8;

src/AnnotationThread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import autobind from 'autobind-decorator';
33
import Annotation from './Annotation';
44
import AnnotationService from './AnnotationService';
55
import * as annotatorUtil from './annotatorUtil';
6-
import { ICON_PLACED_ANNOTATION } from '../icons/icons';
6+
import { ICON_PLACED_ANNOTATION } from './icons/icons';
77
import {
88
STATES,
99
TYPES,

src/Annotator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import EventEmitter from 'events';
22
import autobind from 'autobind-decorator';
33
import AnnotationService from './AnnotationService';
44
import * as annotatorUtil from './annotatorUtil';
5-
import { ICON_CLOSE } from '../icons/icons';
5+
import { ICON_CLOSE } from './icons/icons';
66
import './Annotator.scss';
77
import {
88
CLASS_ACTIVE,

src/Annotator.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@import '../boxuiVariables';
1+
@import 'boxui';
2+
@import 'boxuiVariables';
23

34
$highlight-yellow: #fed94e;
45
$highlight-yellow-active-hover: #ffc900;
@@ -21,7 +22,8 @@ $tablet: 'max-width: 768px';
2122
background-color: $fours;
2223
}
2324

24-
.bp-annotate-draw-header {
25+
.bp-annotate-draw-header,
26+
.bp-header.bp-annotate-draw-header {
2527
background-color: $twos;
2628
border: none;
2729
position: relative;
@@ -61,6 +63,8 @@ $tablet: 'max-width: 768px';
6163
.bp-annotate-draw-undo-redo-container {
6264
margin: 0 auto;
6365

66+
.is-disabled.bp-btn-annotate-draw-undo,
67+
.is-disabled.bp-btn-annotate-draw-redo,
6468
.bp-btn-annotate-draw-undo,
6569
.bp-btn-annotate-draw-redo {
6670
background: none;
@@ -450,6 +454,8 @@ $tablet: 'max-width: 768px';
450454

451455
&:hover {
452456
color: $better-black;
457+
padding: 8px;
458+
padding-left: 4px;
453459
}
454460
}
455461

src/BoxAnnotations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ class BoxAnnotations {
130130
}
131131
}
132132

133-
global.BoxAnnotations = BoxAnnotations;
134133
export default BoxAnnotations;

src/MobileAnnotator.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../_boxuiVariables';
1+
@import 'boxuiVariables';
22

33
$tablet: "(min-width: 768px)";
44

src/__tests__/AnnotationDialog-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ let dialog;
1616
const sandbox = sinon.sandbox.create();
1717
let stubs = {};
1818

19-
describe('lib/annotations/AnnotationDialog', () => {
19+
describe('AnnotationDialog', () => {
2020
before(() => {
21-
fixture.setBase('src/lib');
21+
fixture.setBase('src');
2222
});
2323

2424
beforeEach(() => {
25-
fixture.load('annotations/__tests__/AnnotationDialog-test.html');
25+
fixture.load('__tests__/AnnotationDialog-test.html');
2626

2727
dialog = new AnnotationDialog({
2828
annotatedElement: document.querySelector('.annotated-element'),

src/__tests__/AnnotationModeController-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let annotationModeController;
66
let stubs;
77
const sandbox = sinon.sandbox.create();
88

9-
describe('lib/annotations/AnnotationModeController', () => {
9+
describe('AnnotationModeController', () => {
1010
beforeEach(() => {
1111
annotationModeController = new AnnotationModeController();
1212
stubs = {};

src/__tests__/AnnotationService-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable no-unused-expressions */
22
import fetchMock from 'fetch-mock';
3-
import '../../polyfill';
43
import Annotation from '../Annotation';
54
import AnnotationService from '../AnnotationService';
65

@@ -9,7 +8,7 @@ const API_HOST = 'https://app.box.com/api';
98
let annotationService;
109
let sandbox;
1110

12-
describe('lib/annotations/AnnotationService', () => {
11+
describe('AnnotationService', () => {
1312
beforeEach(() => {
1413
sandbox = sinon.sandbox.create();
1514
annotationService = new AnnotationService({

0 commit comments

Comments
 (0)