Skip to content

Commit aca7bf1

Browse files
committed
adding inspector context
1 parent 923f7d9 commit aca7bf1

35 files changed

+16178
-1
lines changed

apps/app-3.2/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file contains information which helps Meteor properly upgrade your
2+
# app when you run 'meteor update'. You should check it into version control
3+
# with your project.
4+
5+
notices-for-0.9.0
6+
notices-for-0.9.1
7+
0.9.4-platform-file
8+
notices-for-facebook-graph-api-2
9+
1.2.0-standard-minifiers-package
10+
1.2.0-meteor-platform-split
11+
1.2.0-cordova-changes
12+
1.2.0-breaking-changes
13+
1.3.0-split-minifiers-package
14+
1.4.0-remove-old-dev-bundle-link
15+
1.4.1-add-shell-server-package
16+
1.4.3-split-account-service-packages
17+
1.5-add-dynamic-import-package
18+
1.7-split-underscore-from-meteor-base
19+
1.8.3-split-jquery-from-blaze

apps/app-3.2/.meteor/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
local

apps/app-3.2/.meteor/.id

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file contains a token that is unique to your project.
2+
# Check it into your repository along with the rest of this directory.
3+
# It can be used for purposes such as:
4+
# - ensuring you don't accidentally deploy one app on top of another
5+
# - providing package authors with aggregated statistics
6+
7+
ulvvpf1vbsn.fmnxph9oo1ir

apps/app-3.2/.meteor/packages

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Meteor packages used by this project, one per line.
2+
# Check this file (and the other files in this directory) into your repository.
3+
#
4+
# 'meteor add' and 'meteor remove' will edit this file for you,
5+
# but you can also edit it by hand.
6+
7+
meteor-base # Packages every Meteor app needs to have
8+
mobile-experience # Packages for a great mobile UX
9+
mongo # The database Meteor supports right now
10+
reactive-var # Reactive variable for tracker
11+
12+
standard-minifier-css # CSS minifier run for production mode
13+
standard-minifier-js # JS minifier run for production mode
14+
es5-shim # ECMAScript 5 compatibility for older browsers
15+
ecmascript # Enable ECMAScript2015+ syntax in app code
16+
typescript # Enable TypeScript syntax in .ts and .tsx modules
17+
shell-server # Server-side component of the `meteor shell` command
18+
hot-module-replacement # Update client in development without reloading the page
19+
20+
static-html # Define static page content in .html files
21+
react-meteor-data # React higher-order component for reactively tracking Meteor data

apps/app-3.2/.meteor/platforms

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
server
2+
browser

apps/app-3.2/.meteor/release

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
none

apps/app-3.2/.meteor/versions

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+

apps/app-3.2/client/main.css

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
padding: 10px;
3+
font-family: sans-serif;
4+
}

apps/app-3.2/client/main.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<head>
2+
<title>Meteor App</title>
3+
</head>
4+
5+
<body>
6+
<div id="loading">Loading...</div>
7+
<div id="react-target"></div>
8+
</body>

apps/app-3.2/client/main.jsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import { createRoot } from 'react-dom/client';
3+
import { Meteor } from 'meteor/meteor';
4+
import { App } from '/imports/ui/App';
5+
6+
Meteor.startup(() => {
7+
console.log(99222234999229)
8+
const container = document.getElementById('react-target');
9+
const root = createRoot(container);
10+
root.render(<App />);
11+
});

apps/app-3.2/imports/api/links.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Mongo } from 'meteor/mongo';
2+
3+
export const LinksCollection = new Mongo.Collection('links');

apps/app-3.2/imports/ui/App.jsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import { Hello } from './Hello.jsx';
3+
import { Info } from './Info.jsx';
4+
5+
export const App = () => (
6+
<div>
7+
<h1>Welcome to Meteor!</h1>
8+
<Hello/>
9+
<Info/>
10+
</div>
11+
);

apps/app-3.2/imports/ui/Hello.jsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React, { useState } from 'react';
2+
3+
export const Hello = () => {
4+
const [counter, setCounter] = useState(0);
5+
6+
const increment = () => {
7+
setCounter(counter + 1);
8+
};
9+
10+
return (
11+
<div>
12+
<button onClick={increment}>Click Me</button>
13+
<p>You've pressed the button {counter} times.</p>
14+
</div>
15+
);
16+
};

apps/app-3.2/imports/ui/Info.jsx

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import { useFind, useSubscribe } from 'meteor/react-meteor-data';
3+
import { LinksCollection } from '../api/links';
4+
5+
export const Info = () => {
6+
const isLoading = useSubscribe('links');
7+
const links = useFind(() => LinksCollection.find());
8+
9+
if(isLoading()) {
10+
return <div>Loading...</div>;
11+
}
12+
13+
return (
14+
<div>
15+
<h2>Learn Meteor!</h2>
16+
<ul>{links.map(
17+
link => <li key={link._id}>
18+
<a href={link.url} target="_blank">{link.title}</a>
19+
</li>
20+
)}</ul>
21+
</div>
22+
);
23+
};

0 commit comments

Comments
 (0)