Skip to content

Commit

Permalink
Released Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Grigorian committed Feb 21, 2019
0 parents commit 54d0698
Show file tree
Hide file tree
Showing 62 changed files with 7,193 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
/dist/
/node_modules/
/public_html/
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The MIT License (MIT)
Copyright 2017-present, Rafael Grigorian

* * *

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Chrome Extension - MILK
> Cookie's best friend! Modern cookie manager.
![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)
![Version 1.0.1](https://img.shields.io/badge/Version-1.0.1-yellow.svg?style=for-the-badge)
![Version 1.0.1](https://img.shields.io/chrome-web-store/d/haipckejfdppjfblgondaakgckohcihp.svg?style=for-the-badge)

![screenshot](docs/images/screenshot-1.png)

### About

MILK is a modern cookie manager that aims to streamline the way you interact with cookies. With a modern and easy to use interface, it is easy to manage your browser's cookies. This extension comes with the following features:

- Realtime Cookie List
- Dynamically Search For Cookies
- Create, Read, Update & Delete Cookies
- Import & Export Cookies
- Open Source Software (MIT)
- Modern UI/UX (Material Design)

### Development

```shell
# Hot Reload
yarn clean
yarn install
yarn serve
```

### Package Extension

```shell
# Package Extension
yarn release
```
Binary file added design/icons.sketch
Binary file not shown.
Binary file added design/screenshots.sketch
Binary file not shown.
Binary file added design/ux.sketch
Binary file not shown.
Binary file added docs/images/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "chrome-milk",
"version": "1.0.0",
"description": "Chrome extension that manages your browser's cookies",
"main": "./src/index.jsx",
"author": "Rafael Grigorian <[email protected]>",
"license": "MIT",
"scripts": {
"build": "parcel build src/index.html --no-cache --out-dir public_html",
"serve": "parcel serve src/index.html --no-cache --out-dir public_html",
"clean": "rm -rf public_html dist",
"zip": "mkdir dist && zip -r dist/chrome-milk.zip public_html/*",
"release": "yarn clean && yarn build && yarn zip"
},
"dependencies": {
"@material-ui/core": "^3.5.1",
"parcel": "^1.9.7",
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"devDependencies": {
"moment": "^2.22.2",
"node-sass": "^4.9.3",
"parcel-bundler": "^1.6.1",
"parcel-plugin-static-files-copy": "^1.2.3"
},
"alias": {
"asset": "./src/assets",
"style": "./src/stylesheets",
"atom": "./src/components/atoms",
"molecule": "./src/components/molecules",
"orginism": "./src/components/orginisms",
"page": "./src/components/pages"
}
}
9 changes: 9 additions & 0 deletions src/assets/images/insecure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/invisible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/lax.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/none.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/secure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/strict.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/visible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions src/components/atoms/Expires.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from "react"
import PropTypes from "prop-types"
import moment from "moment"

class Expires extends React.Component {

render () {
let today = new Date ().getTime ()
let expires = this.props.timestamp * 1000
let delta = Math.abs ( expires - today )
let duration = moment.duration ( delta, "milliseconds" )
return <div className="expires" >
<div>
{[
duration._data.years,
duration._data.months,
duration._data.days
].join ("/")}
</div>
<div>
{[
duration._data.hours,
duration._data.minutes,
duration._data.seconds
].join (":")}
</div>
</div>
}

}

Expires.propTypes = {
timestamp: PropTypes.number.isRequired,
}

Expires.defaultProps = {
timestamp: 0
}

export default Expires
29 changes: 29 additions & 0 deletions src/components/atoms/IconButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from "react"
import PropTypes from "prop-types"

class IconButton extends React.Component {

render () {
let className = `icon-button ${this.props.active && this.props.stateful ? "active": ""}`
return <div className={ className } onClick={ this.props.onClick } >
<i className="material-icons" >
{ this.props.children }
</i>
</div>
}

}

IconButton.propTypes = {
active: PropTypes.bool,
children: PropTypes.string.isRequired,
onClick: PropTypes.func,
stateful: PropTypes.bool.isRequired
}

IconButton.defaultProps = {
active: false,
onClick: null,
}

export default IconButton
9 changes: 9 additions & 0 deletions src/components/atoms/ImagePanel.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react"

export default class ImagePanel extends React.Component {

render () {
return this.constructor.name
}

}
9 changes: 9 additions & 0 deletions src/components/atoms/Label.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react"

export default class Label extends React.Component {

render () {
return <div className="label" >{ this.props.children }</div>
}

}
28 changes: 28 additions & 0 deletions src/components/atoms/MenuItem.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react"
import PropTypes from "prop-types"

class MenuItem extends React.Component {

render () {
return <div
className={`menu-item ${this.props.disabled ? "" : "active"}`}
onClick={this.props.disabled ? null : this.props.onClick} >
{this.props.children}
</div>
}

}

MenuItem.propTypes = {
children: PropTypes.string,
disabled: PropTypes.bool,
onClick: PropTypes.func
}

MenuItem.defaultProps = {
children: "",
disabled: false,
onClick: null
}

export default MenuItem
Loading

0 comments on commit 54d0698

Please sign in to comment.