ocr scan
This commit is contained in:
		
							
								
								
									
										49
									
								
								express-server/public/test/dash.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								express-server/public/test/dash.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
import Axios from "axios";
 | 
			
		||||
 | 
			
		||||
$(document).ready(function () {
 | 
			
		||||
 | 
			
		||||
    M.AutoInit();
 | 
			
		||||
    //initialize all modals           
 | 
			
		||||
    $('.modal').modal({
 | 
			
		||||
        dismissible: false
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    // Initialize Firebase
 | 
			
		||||
    var config = {
 | 
			
		||||
        apiKey: "AIzaSyCuvwf78cmSDoZ2yS4XxHZhnjUn7yIHYfw",
 | 
			
		||||
        authDomain: "test-667ca.firebaseapp.com",
 | 
			
		||||
        databaseURL: "https://test-667ca.firebaseio.com",
 | 
			
		||||
        projectId: "test-667ca",
 | 
			
		||||
        storageBucket: "test-667ca.appspot.com",
 | 
			
		||||
        messagingSenderId: "221332577314"
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    firebase.initializeApp(config);
 | 
			
		||||
 | 
			
		||||
    var app = new Vue({
 | 
			
		||||
        el: "myapp",
 | 
			
		||||
        data: {
 | 
			
		||||
            myshoppinglists: [],
 | 
			
		||||
            sharedshoppinglists: []
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        methods: {
 | 
			
		||||
            fetchData: function() {
 | 
			
		||||
                firebase.auth().onAuthStateChanged(function (user) {
 | 
			
		||||
                    if (user) {
 | 
			
		||||
                        firebase.auth().currentUser.getIdToken( /* forceRefresh */ true).then(function (idtoken) {
 | 
			
		||||
                            alert("LALALALAL");
 | 
			
		||||
                        }).catch((error) => console.error("Get id token client error: ", error));
 | 
			
		||||
                    } else {
 | 
			
		||||
                        console.log("Check Auth error", user)
 | 
			
		||||
                    }
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        mounted() {
 | 
			
		||||
            this.fetchData();
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
  
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										21
									
								
								express-server/public/test/materialize/LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								express-server/public/test/materialize/LICENSE
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2014-2018 Materialize
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										91
									
								
								express-server/public/test/materialize/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								express-server/public/test/materialize/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,91 @@
 | 
			
		||||
<p align="center">
 | 
			
		||||
  <a href="http://materializecss.com/">
 | 
			
		||||
    <img src="http://materializecss.com/res/materialize.svg" width="150">
 | 
			
		||||
  </a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<h3 align="center">MaterializeCSS</h3>
 | 
			
		||||
 | 
			
		||||
<p align="center">
 | 
			
		||||
  Materialize, a CSS Framework based on material design.
 | 
			
		||||
  <br>
 | 
			
		||||
  <a href="http://materializecss.com/"><strong>-- Browse the docs --</strong></a>
 | 
			
		||||
  <br>
 | 
			
		||||
  <br>
 | 
			
		||||
  <a href="https://travis-ci.org/Dogfalo/materialize">
 | 
			
		||||
    <img src="https://travis-ci.org/Dogfalo/materialize.svg?branch=master" alt="Travis CI badge">
 | 
			
		||||
  </a>
 | 
			
		||||
  <a href="https://badge.fury.io/js/materialize-css">
 | 
			
		||||
    <img src="https://badge.fury.io/js/materialize-css.svg" alt="npm version badge">
 | 
			
		||||
  </a>
 | 
			
		||||
  <a href="https://cdnjs.com/libraries/materialize">
 | 
			
		||||
    <img src="https://img.shields.io/cdnjs/v/materialize.svg" alt="CDNJS version badge">
 | 
			
		||||
  </a>
 | 
			
		||||
  <a href="https://david-dm.org/Dogfalo/materialize">
 | 
			
		||||
    <img src="https://david-dm.org/Dogfalo/materialize/status.svg" alt="dependencies Status badge">
 | 
			
		||||
    </a>
 | 
			
		||||
  <a href="https://david-dm.org/Dogfalo/materialize#info=devDependencies">
 | 
			
		||||
    <img src="https://david-dm.org/Dogfalo/materialize/dev-status.svg" alt="devDependency Status badge">
 | 
			
		||||
  </a>
 | 
			
		||||
  <a href="https://gitter.im/Dogfalo/materialize">
 | 
			
		||||
    <img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter badge">
 | 
			
		||||
  </a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
## Table of Contents
 | 
			
		||||
- [Quickstart](#quickstart)
 | 
			
		||||
- [Documentation](#documentation)
 | 
			
		||||
- [Supported Browsers](#supported-browsers)
 | 
			
		||||
- [Changelog](#changelog)
 | 
			
		||||
- [Testing](#testing)
 | 
			
		||||
- [Contributing](#contributing)
 | 
			
		||||
- [Copyright and license](#copyright-and-license)
 | 
			
		||||
 | 
			
		||||
## Quickstart:
 | 
			
		||||
Read the [getting started guide](http://materializecss.com/getting-started.html) for more information on how to use materialize.
 | 
			
		||||
 | 
			
		||||
- [Download the latest release](https://github.com/Dogfalo/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/Dogfalo/materialize/releases/))
 | 
			
		||||
- Clone the repo: `git clone https://github.com/Dogfalo/materialize.git` (Beta: `git clone -b v1-dev https://github.com/Dogfalo/materialize.git`)
 | 
			
		||||
- Include the files via [cdnjs](https://cdnjs.com/libraries/materialize). More [here](http://materializecss.com/getting-started.html). ([Beta](https://cdnjs.com/libraries/materialize/1.0.0-beta))
 | 
			
		||||
- Install with [npm](https://www.npmjs.com): `npm install materialize-css` (Beta: `npm install materialize-css@next`)
 | 
			
		||||
- Install with [Bower](https://bower.io): `bower install materialize` ([DEPRECATED](https://bower.io/blog/2017/how-to-migrate-away-from-bower/))
 | 
			
		||||
- Install with [Atmosphere](https://atmospherejs.com): `meteor add materialize:materialize` (Beta: `meteor add materialize:materialize@=1.0.0-beta`)
 | 
			
		||||
 | 
			
		||||
## Documentation
 | 
			
		||||
The documentation can be found at <http://materializecss.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org/en/) installed on your computer.
 | 
			
		||||
 | 
			
		||||
### Running documentation locally
 | 
			
		||||
Run these commands to set up the documentation:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
git clone https://github.com/Dogfalo/materialize
 | 
			
		||||
cd materialize
 | 
			
		||||
npm install
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then run `grunt monitor` to compile the documentation. When it finishes, open a new browser window and navigate to `localhost:8000`. We use [BrowserSync](https://www.browsersync.io/) to display the documentation.
 | 
			
		||||
 | 
			
		||||
### Documentation for previous releases
 | 
			
		||||
Previous releases and their documentation are available for [download](https://github.com/Dogfalo/materialize/releases).
 | 
			
		||||
 | 
			
		||||
## Supported Browsers:
 | 
			
		||||
Materialize is compatible with:
 | 
			
		||||
 | 
			
		||||
- Chrome 35+
 | 
			
		||||
- Firefox 31+
 | 
			
		||||
- Safari 9+
 | 
			
		||||
- Opera
 | 
			
		||||
- Edge
 | 
			
		||||
- IE 11+
 | 
			
		||||
 | 
			
		||||
## Changelog
 | 
			
		||||
For changelogs, check out [the Releases section of materialize](https://github.com/Dogfalo/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md).
 | 
			
		||||
 | 
			
		||||
## Testing
 | 
			
		||||
We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](CONTRIBUTING.md#jasmine-testing-guide).
 | 
			
		||||
 | 
			
		||||
## Contributing
 | 
			
		||||
Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/Dogfalo/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
 | 
			
		||||
 | 
			
		||||
## Copyright and license
 | 
			
		||||
Code Copyright 2018 Materialize. Code released under the MIT license.
 | 
			
		||||
							
								
								
									
										9067
									
								
								express-server/public/test/materialize/css/materialize.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9067
									
								
								express-server/public/test/materialize/css/materialize.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										13
									
								
								express-server/public/test/materialize/css/materialize.min.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								express-server/public/test/materialize/css/materialize.min.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										12374
									
								
								express-server/public/test/materialize/js/materialize.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12374
									
								
								express-server/public/test/materialize/js/materialize.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										6
									
								
								express-server/public/test/materialize/js/materialize.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								express-server/public/test/materialize/js/materialize.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										3
									
								
								express-server/public/test/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								express-server/public/test/style.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
body {
 | 
			
		||||
    background-color: rgb(238, 238, 238);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user