Skip to content

Commit ea455bc

Browse files
authored
Replace the package name with a scoped version to the firefox-devtools organization (PR #20)
This also changes a few URL to the new repository.
1 parent c983b7f commit ea455bc

File tree

6 files changed

+23
-65
lines changed

6 files changed

+23
-65
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Please read https://reactjs.org/ and the Code of Conduct before opening an issue
66
### Found a bug?
77

88
##### Before Submitting A Bug Report
9-
- Please read the [API documentation](https://github.com/vkbansal/react-contextmenu#api) thoroughly
10-
- Perform a [cursory search](https://github.com/vkbansal/react-contextmenu/issues?utf8=%E2%9C%93&q=is%3Aissue) to see if the problem has already been reported. If it has, add a comment to the existing issue instead of opening a new one.
9+
- Please read the [API documentation](https://github.com/firefox-devtools/react-contextmenu#api) thoroughly
10+
- Perform a [cursory search](https://github.com/firefox-devtools/react-contextmenu/issues?utf8=%E2%9C%93&q=is%3Aissue) to see if the problem has already been reported. If it has, add a comment to the existing issue instead of opening a new one.
1111

1212
##### Submiting a (good) bug report
1313

README.md

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# Project is no longer maintained
2-
3-
[![NPM version][npm-image]][npm-url]
4-
[![Build Status][travis-image]][travis-url]
5-
[![Dependency Status][deps-image]][deps-url]
6-
[![Dev Dependency Status][dev-deps-image]][dev-deps-url]
7-
[![Code Climate][climate-image]][climate-url]
8-
9-
[![NPM](https://nodei.co/npm/react-contextmenu.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/react-contextmenu/)
10-
111
# React Contextmenu
122

133
ContextMenu in React with accessibility support. Live Examples can be found [here](//vkbansal.github.io/react-contextmenu/)
144

5+
This is a fork from [the original project](https://github.com/vkbansal/react-contextmenu) for use with the [firefox profiler](https://github.com/firefox-devtools/profiler/). We
6+
don't intend to add new features but will fix issues with the existing code, and
7+
sometimes change it for our usage. We hope it can be useful for more projects.
8+
9+
Thanks [Vivek Kumar Bansal](https://github.com/vkbansal) for all the good work
10+
put in this project.
11+
1512
## Table of contents
1613

1714
- [Installation](#installation)
@@ -28,13 +25,13 @@ ContextMenu in React with accessibility support. Live Examples can be found [her
2825
Using npm
2926

3027
```
31-
npm install --save react-contextmenu
28+
npm install --save @firefox-devtools/react-contextmenu
3229
```
3330

3431
Using yarn
3532

3633
```
37-
yarn add react-contextmenu
34+
yarn add @firefox-devtools/react-contextmenu
3835
```
3936

4037
## Browser Support
@@ -51,7 +48,7 @@ Simple example
5148
```jsx
5249
import React from "react";
5350
import ReactDOM from "react-dom";
54-
import { ContextMenu, MenuItem, ContextMenuTrigger } from "react-contextmenu";
51+
import { ContextMenu, MenuItem, ContextMenuTrigger } from "@firefox-devtools/react-contextmenu";
5552

5653
function handleClick(e, data) {
5754
console.log(data.foo);
@@ -104,27 +101,13 @@ see [usage docs](./docs/usage.md) / [examples](./examples) for more details.
104101

105102
## Contributors
106103

107-
[All Contributors](https://github.com/vkbansal/react-contextmenu/graphs/contributors)
104+
[All Contributors](https://github.com/firefox-devtools/react-contextmenu/graphs/contributors)
108105

109106
## Changelog
110107

111-
For Changelog, see [releases](https://github.com/vkbansal/react-contextmenu/releases)
108+
For Changelog, see [releases](https://github.com/firefox-devtools/react-contextmenu/releases)
109+
For the changelog from before the fork, see [releases](https://github.com/vkbansal/react-contextmenu/releases)
112110

113111
## License
114112

115113
[MIT](./LICENSE.md). Copyright(c) [Vivek Kumar Bansal](http://vkbansal.me/)
116-
117-
[npm-url]: https://npmjs.org/package/react-contextmenu
118-
[npm-image]: http://img.shields.io/npm/v/react-contextmenu.svg?style=flat-square
119-
120-
[travis-url]: https://travis-ci.org/vkbansal/react-contextmenu
121-
[travis-image]: http://img.shields.io/travis/vkbansal/react-contextmenu/master.svg?style=flat-square
122-
123-
[deps-url]: https://david-dm.org/vkbansal/react-contextmenu
124-
[deps-image]: https://img.shields.io/david/vkbansal/react-contextmenu.svg?style=flat-square
125-
126-
[dev-deps-url]: https://david-dm.org/vkbansal/react-contextmenu
127-
[dev-deps-image]: https://img.shields.io/david/dev/vkbansal/react-contextmenu.svg?style=flat-square
128-
129-
[climate-url]: https://codeclimate.com/github/vkbansal/react-contextmenu
130-
[climate-image]: http://img.shields.io/codeclimate/github/vkbansal/react-contextmenu.svg?style=flat-square

deploy.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You need to setup two things:
77
```jsx
88
import React from "react";
99
import ReactDOM from "react-dom";
10-
import { ContextMenu, MenuItem, ContextMenuTrigger } from "react-contextmenu";
10+
import { ContextMenu, MenuItem, ContextMenuTrigger } from "@firefox-devtools/react-contextmenu";
1111

1212
function handleClick(e, data) {
1313
console.log(data.foo);
@@ -59,4 +59,4 @@ The styling can be apllied to using following classes.
5959
- `react-contextmenu-wrapper` : applied to wrapper around elements in `ContextMenuTrigger`.
6060
- `react-contextmenu-submenu` : applied to items that are submenus.
6161

62-
> Note: This package does note include any styling by default. You can use [react-contextmenu.css](https://github.com/vkbansal/react-contextmenu/blob/master/examples/react-contextmenu.css) from examples for quick setup.
62+
> Note: This package does note include any styling by default. You can use [react-contextmenu.css](https://github.com/firefox-devtools/react-contextmenu/blob/master/examples/react-contextmenu.css) from examples for quick setup.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-contextmenu",
2+
"name": "@firefox-devtools/react-contextmenu",
33
"version": "2.14.0",
44
"description": "Context Menu implemented in React",
55
"main": "modules/index.js",
@@ -39,12 +39,12 @@
3939
"license": "MIT",
4040
"repository": {
4141
"type": "git",
42-
"url": "https://github.com/vkbansal/react-contextmenu.git"
42+
"url": "https://github.com/firefox-devtools/react-contextmenu.git"
4343
},
4444
"bugs": {
45-
"url": "https://github.com/vkbansal/react-contextmenu/issues"
45+
"url": "https://github.com/firefox-devtools/react-contextmenu/issues"
4646
},
47-
"homepage": "https://github.com/vkbansal/react-contextmenu",
47+
"homepage": "https://github.com/firefox-devtools/react-contextmenu",
4848
"dependencies": {
4949
"classnames": "^2.2.5",
5050
"object-assign": "^4.1.0"

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module "react-contextmenu" {
1+
declare module "@firefox-devtools/react-contextmenu" {
22
import * as React from "react";
33

44
export interface ContextMenuProps {
@@ -66,7 +66,7 @@ declare module "react-contextmenu" {
6666
export function hideMenu(opts?: any, target?: HTMLElement): void;
6767
}
6868

69-
declare module "react-contextmenu/modules/actions" {
69+
declare module "@firefox-devtools/react-contextmenu/modules/actions" {
7070
export function showMenu(opts?: any, target?: HTMLElement): void;
7171
export function hideMenu(opts?: any, target?: HTMLElement): void;
7272
}

0 commit comments

Comments
 (0)