Skip to content

Commit

Permalink
create initial components
Browse files Browse the repository at this point in the history
  • Loading branch information
S1B41 committed Apr 2, 2020
1 parent e155fea commit 0047b15
Show file tree
Hide file tree
Showing 21 changed files with 922 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/
19 changes: 19 additions & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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.8.3-split-jquery-from-blaze
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

gc2ftg6yjk8.zs2sfdneezb
22 changes: 22 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
[email protected] # Enable ECMAScript2015+ syntax in app code
[email protected] # Enable TypeScript syntax in .ts and .tsx modules
[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>listo-react</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 const LinksCollection = new Mongo.Collection('links');
8 changes: 8 additions & 0 deletions imports/ui/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import Note from './Note';

export const App = () => (
<div>
<Note />
</div>
);
16 changes: 16 additions & 0 deletions imports/ui/Note.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React, { Component } from 'react'
import NoteActions from './NoteActions';
import NoteInfo from './NoteInfo';
import NoteText from './NoteText';

export default class Note extends Component {
render(){
return(
<div>
<NoteText />
<NoteInfo />
<NoteActions />
</div>
);
};
}
11 changes: 11 additions & 0 deletions imports/ui/NoteActions.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { Component } from 'react'

export default class NoteActions extends Component {
render(){
return(
<div>
<p>Actions</p>
</div>
);
};
}
11 changes: 11 additions & 0 deletions imports/ui/NoteInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { Component } from 'react'

export default class Note extends Component {
render(){
return(
<div>
<p>Info</p>
</div>
);
};
}
11 changes: 11 additions & 0 deletions imports/ui/NoteText.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { Component } from 'react'

export default class Note extends Component {
render(){
return(
<div>
<p>Text</p>
</div>
);
};
}
Loading

0 comments on commit 0047b15

Please sign in to comment.