• Stars
    star
    846
  • Rank 51,722 (Top 2 %)
  • Language
    JavaScript
  • Created about 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

腾讯 AlloyTeam 开源项目官网 - 我们的愿景: 成为业界卓越的Web团队!

Tencent AlloyTeam

One Team, One Dream! 多年以后,让我们创造一个奇迹!

By Tencent AlloyTeam

我们的愿景

成为业界卓越的Web团队!

团队部分代码规范

虽然这些细节是小事,但是却体现了一个coder的专业程度。 更多详细情况请看: http://alloyteam.github.io/CodeGuide/

标准文件结构

[mainfolder]
 |--[component]		  //所有组件	
 |   |-- [component_name] //组件文件夹
 |   |    |-- img1.png    //组件依赖的图片
 |   |    |-- index.css	  //组件依赖的css文件
 |   |    |-- index.js	  //组件依赖的js文件
 |   |-- [component_name] //组件文件夹
 |   |    ...
 |   |    |-- index.css	  //组件依赖的css文件
 |   |    |-- index.js	  //组件依赖的js文件
 |--[js]		//js文件夹
 |   |-- main.js
 |--[style]		//所有样式相关的css和image
 |   |-- [image]	//主要image文件夹
 |   |    |-- img1.png
 |   |    ...
 |   |-- [style_name_a]	//皮肤A的文件夹
 |   |    |-- [image]	//皮肤A的image
 |   |    |-- style_name_a.css	//皮肤A的css文件
 |   |    ...
 |   |-- [style_name_b]	//皮肤B的文件夹
 |   |-- [style_name_c]	//皮肤C的文件夹
 |   |-- main.css	//主要css文件
 |--[audio]		//所有样式相关的audio音频文件
 |   |-- sound.mp3	//audio文件
 |-- index.html		//index文件
 |-- page1.html		//其他页面
 ...

文件名全部英文小写,用下划线分隔。

标准html5代码

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="author" content="Tencent.AlloyTeam.Jetyu" />
	<meta name="copyright" content="Tencent.AlloyTeam" />
	<meta name="keywords" content="腾讯 Alloy 团队" />
	<meta name="description" content="Tencent.AlloyTeam" />
	
	<title>Tencent AlloyTeam 标准文档</title>
	<link href="./style/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<!-- 注释 -->
	<h1 id="title" class="title">Tencent AlloyTeam 标准文档</h1>
	<div>
		<h3>Title</h3>
		<p>
			标准文档
		</p>
	</div>

	<script type="text/javascript" src="./js/jx.min.js"></script>
	<script type="text/javascript">

		var J = new Jx();

	</script>
</body>
</html>

标准javascript代码

/**
 * === Javascript eXtension 模块 =========================================================================
 * Copyright (c) 2015 Tencent AlloyTeam, All rights reserved.
 * http://www.AlloyTeam.com/
 * Code licensed under the BSD License:
 * http://www.AlloyTeam.com/license.txt
 * 
 * @version 2.0
 * @author	Kinvix <[email protected]>
 * @description 描述文字
 * ---2015.6.1 ----------------------------
 */

/**
 * 注释
 */
Jx().$package('tencent.alloyteam', function(J) {
	var self = this,
		$D = J.dom,
		$E = J.event,
		$H = J.http;

	// 输出字符串'Hello world!'
	J.out('Hello world!');

	// 输出this === tencent.alloyteam的判断结果
	J.out(this === tencent.alloyteam);
});

标准css代码

.copyright {
    margin: 50px 0 0 0;
    height: 50px;

    font-family: Tahoma;
    font-size: 12px;
    text-align: center;

    color: #999;
}

.copyright a {
    text-decoration: none;

    color: #999;
}

/* 注释 */
.copyright a:hover,
.copyright a:focus {
    text-decoration: underline;

    outline: none;
}

标准版权声明代码

<div class="copyright">Copyright &copy; <script>document.write(new Date().getFullYear());</script> <a href="http://www.AlloyTeam.com/" target="_blank">AlloyTeam.com</a>. All Rights Reserved.</div>

标准捐赠代码

 <a href="http://me.alipay.com/kinvix" target="helpus" title="支持开源项目,请我们喝杯咖啡吧^_Q"> <img src="http://alloyteam.github.io/style/image/alipay_btn.jpg" alt="支持开源项目,请我们喝杯咖啡吧^_Q" /> </a>
 
 <a href="http://me.alipay.com/kinvix" target="helpus" title="感谢支持开源项目,我们会努力做的更好!"> <img src="http://alloyteam.github.io/style/image/alipay_btn.jpg" alt="捐赠开源项目" /> </a>

标准访问统计代码

<!--Tencent Analytics-->
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=39379138" charset="UTF-8"></script>
<!--Google Analytics-->
<script type="text/javascript">

  	var _gaq = _gaq || [];
  	_gaq.push(['_setAccount', 'UA-23019343-9']);
  	_gaq.push(['_trackPageview']);

	(function() {
	   	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();

</script>

关于团队

var AlloyTeam = {
    name: 'AlloyTeam',
    qq: 1838456721,
    site: 'http://www.alloyteam.com/',
    github: 'http://alloyteam.github.io/',
    coding: 'http://www.coding.net/alloyteam/'
}

More Repositories

1

Mars

腾讯移动 Web 前端知识库
9,586
star
2

AlloyFinger

Super tiny size multi-touch gestures library for the web.    You can touch this →
JavaScript
3,403
star
3

AlloyImage

基于HTML5的专业级图像处理开源引擎。An image processing lib based on html5.
JavaScript
3,002
star
4

PhyTouch

Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案
JavaScript
2,954
star
5

eslint-config-alloy

Progressive ESLint config for your React/Vue/TypeScript projects
JavaScript
2,614
star
6

AlloyLever

1kb js library contains development debugging, error monitoring and reporting, user problem localization features - 1KB代码搞定开发调试发布,错误监控上报,用户问题定位
JavaScript
1,381
star
7

curvejs

Made curve a dancer in HTML5 canvas - 魔幻线条
JavaScript
1,300
star
8

CodeGuide

Alloyteam代码规范
HTML
1,275
star
9

JX

JX(Javascript eXtension tools) 是腾讯AlloyTeam推出的模块化、非侵入式Web前端框架,适合构建和组织工业级大规模、高效率的 Web App
JavaScript
1,156
star
10

AlloyCrop

The best and tiny size mobile cropping component - 做最好且最小的移动裁剪组件
JavaScript
940
star
11

Rythem

a fiddler-like project using Qt
C++
878
star
12

alloy-worker

面向事务的高可用 Web Worker 通信框架
TypeScript
635
star
13

AlloyStick

AlloyStick 骨骼动画引擎 - 腾讯 AlloyTeam
JavaScript
430
star
14

Rosin

A tool for web developers debug mobile page with fiddler. http://alloyteam.github.io/Rosin/
C#
310
star
15

StreetFighter

街霸StreetFighter
JavaScript
301
star
16

webtop

HTML5 本地App开发引擎
C++
290
star
17

AlloyPhoto

JavaScript
276
star
18

gopng

GoPng - a HTML5 css sprite generator with cool feature.
272
star
19

sodajs

Light weight but powerful template engine for JavaScript
JavaScript
256
star
20

tslint-config-alloy

AlloyTeam TSLint 规则
JavaScript
205
star
21

JXAnimate

基于CSS3的并行动画、声音引擎 - JX.Animate
CSS
192
star
22

AlloyTimer

AlloyTimer定时器 - 番茄工作法的时间管理应用
JavaScript
190
star
23

JMUI

移动Web开发UI组件库
JavaScript
178
star
24

AlloyViewer

H5图片查看器—Imageview component built with react
JavaScript
176
star
25

JM

面向Mobile的极致JavaScript库
JavaScript
141
star
26

AlloyDesigner

AlloyDesigner是一款致力于提高前端生产效率的浏览器内运行工具,AlloyDesigner + Chrome F12(Especially with WorkSpace) 打造前端新的开发和测试模式
138
star
27

omi-cli

Create website with no build configuration - 创建网站无需任何配置
JavaScript
126
star
28

AlloyPullRefresh

JavaScript
119
star
29

Spirit

腾讯移动Web整体解决方案
CSS
117
star
30

CodeTank

CodeTank(代码坦克)是全世界首款 Javascript 程序员的游戏, 由腾讯 AlloyTeam 用 HTML5、Javascript 等 Web 新技术来构建一个基于互联网的智能坦克机器人战斗仿真引擎
112
star
31

AlloyClip

A PC & Mobile Image Clip Kit based on AlloyImage
JavaScript
108
star
32

MLogger

一个浮在页面上的日志查看工具
JavaScript
100
star
33

Abstract.js

Abstract.js is a web framework for fast development
JavaScript
46
star
34

AlloyLint

apply eslint autofix but keep last author info in git blame。运行 eslint 的自动修复,但是保留最后修改人的信息
TypeScript
41
star
35

AlloyFlow

made workflow simple
JavaScript
39
star
36

AlloyTicker

The Master of Time          DEMO
JavaScript
25
star
37

netural

JavaScript前向神经网络(推理)和反向传播(训练)的实现
JavaScript
21
star