Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
awatson1978 committed Jun 9, 2019
0 parents commit 9036a33
Show file tree
Hide file tree
Showing 20 changed files with 1,388 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
18 changes: 18 additions & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.

notices-for-0.9.0
notices-for-0.9.1
0.9.4-platform-file
notices-for-facebook-graph-api-2
1.2.0-standard-minifiers-package
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1.3.0-split-minifiers-package
1.4.0-remove-old-dev-bundle-link
1.4.1-add-shell-server-package
1.4.3-split-account-service-packages
1.5-add-dynamic-import-package
1.7-split-underscore-from-meteor-base
1 change: 1 addition & 0 deletions .meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
7 changes: 7 additions & 0 deletions .meteor/.id
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics

ehaig835wwc.lq3jx0dme389
21 changes: 21 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

[email protected] # Packages every Meteor app needs to have
[email protected] # Packages for a great mobile UX
[email protected] # The database Meteor supports right now
[email protected] # Reactive variable for tracker

[email protected] # CSS minifier run for production mode
[email protected] # JS minifier run for production mode
[email protected] # ECMAScript 5 compatibility for older browsers
ecmascript # Enable ECMAScript2015+ syntax in app code
[email protected] # Server-side component of the `meteor shell` command

[email protected] # Publish all data to the clients (for prototyping)
[email protected] # Allow all DB writes from clients (for prototyping)
static-html # Define static page content in .html files
react-meteor-data # React higher-order component for reactively tracking Meteor data
2 changes: 2 additions & 0 deletions .meteor/platforms
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server
browser
1 change: 1 addition & 0 deletions .meteor/release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]
72 changes: 72 additions & 0 deletions .meteor/versions
4 changes: 4 additions & 0 deletions client/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
padding: 10px;
font-family: sans-serif;
}
7 changes: 7 additions & 0 deletions client/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<head>
<title>material-fhir-demo</title>
</head>

<body>
<div id="react-target"></div>
</body>
8 changes: 8 additions & 0 deletions client/main.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import App from '/imports/ui/App'

Meteor.startup(() => {
render(<App />, document.getElementById('react-target'));
});
3 changes: 3 additions & 0 deletions imports/api/links.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Mongo } from 'meteor/mongo';

export default Links = new Mongo.Collection('links');
1 change: 1 addition & 0 deletions imports/linked/material-fhir-ui
Submodule material-fhir-ui added at 90c7c0
14 changes: 14 additions & 0 deletions imports/ui/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import Hello from './Hello.jsx';
import Info from './Info.jsx';
import HelloNpm from 'material-fhir-ui';

const App = () => (
<div>
<h1>Welcome to Meteor!</h1>
<Hello />
<HelloNpm />
</div>
);

export default App;
22 changes: 22 additions & 0 deletions imports/ui/Hello.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, { Component } from 'react';

export default class Hello extends Component {
state = {
counter: 0,
}

increment() {
this.setState({
counter: this.state.counter + 1
});
}

render() {
return (
<div>
<button onClick={() => this.increment()}>Click Me</button>
<p>You've pressed the button {this.state.counter} times.</p>
</div>
);
}
}
32 changes: 32 additions & 0 deletions imports/ui/Info.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React, { Component } from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import Links from '../api/links';

class Info extends Component {
render() {
const links = this.props.links.map(
link => this.makeLink(link)
);

return (
<div>
<h2>Learn Meteor!</h2>
<ul>{ links }</ul>
</div>
);
}

makeLink(link) {
return (
<li key={link._id}>
<a href={link.url} target="_blank">{link.title}</a>
</li>
);
}
}

export default InfoContainer = withTracker(() => {
return {
links: Links.find().fetch(),
};
})(Info);
Loading

0 comments on commit 9036a33

Please sign in to comment.