Dmitry Yu Okunev лет назад: 6
Сommit
cf4fcee9c0

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules/

+ 17 - 0
.meteor/.finished-upgraders

@@ -0,0 +1,17 @@
+# 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 - 0
.meteor/.gitignore

@@ -0,0 +1 @@
+local

+ 7 - 0
.meteor/.id

@@ -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
+
+jspn67yxousv1r6w7pf

+ 22 - 0
.meteor/packages

@@ -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.
+
+meteor-base@1.1.0             # Packages every Meteor app needs to have
+mobile-experience@1.0.4       # Packages for a great mobile UX
+mongo@1.1.19                   # The database Meteor supports right now
+blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
+reactive-var@1.0.11            # Reactive variable for tracker
+tracker@1.1.3                 # Meteor's client-side reactive programming library
+
+standard-minifier-css@1.3.4   # CSS minifier run for production mode
+standard-minifier-js@2.1.1    # JS minifier run for production mode
+es5-shim@4.6.15                # ECMAScript 5 compatibility for older browsers
+ecmascript@0.8.1              # Enable ECMAScript2015+ syntax in app code
+shell-server@0.2.4            # Server-side component of the `meteor shell` command
+
+autopublish@1.0.7             # Publish all data to the clients (for prototyping)
+insecure@1.0.7                # Allow all DB writes from clients (for prototyping)
+iron:router

+ 2 - 0
.meteor/platforms

@@ -0,0 +1,2 @@
+server
+browser

+ 1 - 0
.meteor/release

@@ -0,0 +1 @@
+METEOR@1.5.1

+ 84 - 0
.meteor/versions

@@ -0,0 +1,84 @@
+allow-deny@1.0.6
+autopublish@1.0.7
+autoupdate@1.3.12
+babel-compiler@6.19.4
+babel-runtime@1.0.1
+base64@1.0.10
+binary-heap@1.0.10
+blaze@2.3.2
+blaze-html-templates@1.1.2
+blaze-tools@1.0.10
+boilerplate-generator@1.1.1
+caching-compiler@1.1.9
+caching-html-compiler@1.1.2
+callback-hook@1.0.10
+check@1.2.5
+ddp@1.3.0
+ddp-client@2.0.0
+ddp-common@1.2.9
+ddp-server@2.0.0
+deps@1.0.12
+diff-sequence@1.0.7
+dynamic-import@0.1.1
+ecmascript@0.8.2
+ecmascript-runtime@0.4.1
+ecmascript-runtime-client@0.4.3
+ecmascript-runtime-server@0.4.1
+ejson@1.0.13
+es5-shim@4.6.15
+fastclick@1.0.13
+geojson-utils@1.0.10
+hot-code-push@1.0.4
+html-tools@1.0.11
+htmljs@1.0.11
+http@1.2.12
+id-map@1.0.9
+insecure@1.0.7
+iron:controller@1.0.12
+iron:core@1.0.11
+iron:dynamic-template@1.0.12
+iron:layout@1.0.12
+iron:location@1.0.11
+iron:middleware-stack@1.1.0
+iron:router@1.1.2
+iron:url@1.1.0
+jquery@1.11.10
+launch-screen@1.1.1
+livedata@1.0.18
+logging@1.1.17
+meteor@1.7.0
+meteor-base@1.1.0
+minifier-css@1.2.16
+minifier-js@2.1.1
+minimongo@1.2.1
+mobile-experience@1.0.4
+mobile-status-bar@1.0.14
+modules@0.9.2
+modules-runtime@0.8.0
+mongo@1.1.19
+mongo-id@1.0.6
+npm-mongo@2.2.24
+observe-sequence@1.0.16
+ordered-dict@1.0.9
+promise@0.8.9
+random@1.0.10
+reactive-dict@1.1.9
+reactive-var@1.0.11
+reload@1.1.11
+retry@1.0.9
+routepolicy@1.0.12
+shell-server@0.2.4
+spacebars@1.0.15
+spacebars-compiler@1.1.2
+standard-minifier-css@1.3.4
+standard-minifier-js@2.1.1
+templating@1.3.2
+templating-compiler@1.3.2
+templating-runtime@1.3.2
+templating-tools@1.1.2
+tracker@1.1.3
+ui@1.0.13
+underscore@1.0.10
+url@1.1.0
+webapp@1.3.17
+webapp-hashing@1.0.9

+ 7 - 0
client/logo.html

@@ -0,0 +1,7 @@
+<template name="logo">
+	<div id='logo-fullscreen-container'>
+		<br><br>
+		Здравствуйте!<br><br>
+		<img id='logo-fullscreen' src='/images/mephi_logo_large.png' alt='MEPHI logo (large)'>
+	</div>
+</template>

+ 89 - 0
client/main.css

@@ -0,0 +1,89 @@
+/* CSS declarations go here */
+
+* {
+	padding: 0;
+	margin: 0;
+}
+
+body {
+	color: white;
+}
+
+header {
+	display: block;
+	position: fixed;
+	top: 0;
+	left: 0;
+	right: 0;
+	z-index: 128;
+	height: 45px;
+	background-color: #0082c9;
+}
+
+header a {
+	text-decoration: none;
+	color: white;
+	font-family: Verdana, sans-serif;
+	font-size: 20px;
+	/*white-space: nowrap;*/
+}
+
+header ul {
+	padding: 12px;
+}
+
+header li {
+	list-style: none;
+	opacity: 0.7;
+	transition: opacity 0.2s ease-in-out 0s;
+}
+header li:hover {
+	opacity: 1;
+}
+
+nav {
+	display: inline-block
+}
+
+#logo {
+	float: left;
+	padding: 6px;
+	opacity: 0.7;
+	transition: opacity 0.2s ease-in-out 0s;
+}
+#logo:hover {
+	opacity: 1;
+}
+
+#logo-fullscreen-container {
+	font-family: Verdana, sans-serif;
+	font-size: 20px;
+	text-align: center;
+	color: black;
+	background: #fff;
+	display: block;
+	position: absolute;
+	width: 100%;
+	height: 100%;
+}
+#logo-fullscreen {
+	display: block;
+	margin: auto;
+}
+
+#auth {
+	display: inline-block;
+	float: right;
+}
+
+iframe {
+	background: url(/images/loading_enh.webp) no-repeat center center;
+	display: block;
+	position: absolute;
+	width: 100%;
+	height: calc(100% - 45px);
+	left: 0;
+	border: 0;
+	top: 45px;
+}
+

+ 32 - 0
client/main.html

@@ -0,0 +1,32 @@
+<head>
+	<title>Стартовая страница</title>
+	<meta name="viewport" content="width=device-width">
+	<meta name="theme-color" content="#0065ac">
+</head>
+
+<body>
+</body>
+
+<template name="main">
+	<header>
+		<a href='https://start.mephi.ru/logo' target='iframe'><img id='logo' src='/images/mephi_logo_onwhite_32px.png' alt='MEPHI logo' width='32px' height='32px'></a>
+		<nav>
+			
+			<ul id='services'>
+				{{#each services}}
+					{{> service}}
+				{{/each}}
+			</ul>
+		</nav>
+		<div id='auth'>
+			test
+		</div>
+	</header>
+	<iframe name='iframe' id='iframe' src='/logo'></iframe>
+</template>
+
+<template name="service">
+	<li class='service'>
+		<a href='{{link_to}}' target='iframe'>{{name}}</a>
+	</li>
+</template>

+ 16 - 0
client/main.js

@@ -0,0 +1,16 @@
+import { Template } from 'meteor/templating';
+
+import './main.html';
+
+Router.route('/', function () {
+	this.render('main', {
+		data: {
+			services: [
+				{ link_to: 'https://voip.mephi.ru', name: 'IP-телефония' },
+			],
+		},
+	})
+});
+Router.route('/logo', function () {
+	this.render('logo');
+});

+ 11 - 0
package.json

@@ -0,0 +1,11 @@
+{
+  "name": "start",
+  "private": true,
+  "scripts": {
+    "start": "meteor run"
+  },
+  "dependencies": {
+    "babel-runtime": "^6.20.0",
+    "meteor-node-stubs": "~0.2.4"
+  }
+}

BIN
public/images/loading.gif


BIN
public/images/loading.webp


BIN
public/images/loading_enh.gif


+ 1 - 0
public/images/loading_enh.webp

@@ -0,0 +1 @@
+loading.webp

BIN
public/images/mephi_logo_large.png


BIN
public/images/mephi_logo_onwhite.png


BIN
public/images/mephi_logo_onwhite_32px.png


+ 5 - 0
server/main.js

@@ -0,0 +1,5 @@
+import { Meteor } from 'meteor/meteor';
+
+Meteor.startup(() => {
+  // code to run on server at startup
+});