text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/files/shares/via-link/')
},
commands: {
/**
* like build-in navigate() but also waits till for the progressbar to appear and disappear
* @returns {*}
*/
navigateAndWaitTi... | owncloud/web/tests/acceptance/pageObjects/sharedViaLinkPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/sharedViaLinkPage.js",
"repo_id": "owncloud",
"token_count": 187
} | 859 |
const { client } = require('nightwatch-api')
const { When, Then } = require('@cucumber/cucumber')
const codify = require('../helpers/codify')
const assert = require('assert')
When('the user accepts all shares displayed in the notifications on the webUI', function () {
return client.page.webPage().acceptAllSharesInNo... | owncloud/web/tests/acceptance/stepDefinitions/notificationsContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/notificationsContext.js",
"repo_id": "owncloud",
"token_count": 375
} | 860 |
{
"extends": "@ownclouders",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended"
],
"parserO... | owncloud/web/tests/e2e/.eslintrc.json/0 | {
"file_path": "owncloud/web/tests/e2e/.eslintrc.json",
"repo_id": "owncloud",
"token_count": 487
} | 861 |
Feature: Search in the project space
Scenario: Search in the project spaces
Given "Admin" creates following user using API
| id |
| Alice |
And "Admin" assigns following roles to the users using API
| id | role |
| Alice | Space Admin |
And "Alice" logs in
And "Al... | owncloud/web/tests/e2e/cucumber/features/search/searchProjectSpace.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/search/searchProjectSpace.feature",
"repo_id": "owncloud",
"token_count": 703
} | 862 |
Feature: Users can create shortcuts for resources and sites
Background:
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
Scenario: shortcut
When "Alice" logs in
And "Alice" creates the following folders in personal space using API
| name |
| d... | owncloud/web/tests/e2e/cucumber/features/smoke/shortcut.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/shortcut.feature",
"repo_id": "owncloud",
"token_count": 988
} | 863 |
import { Given } from '@cucumber/cucumber'
import { World } from '../environment'
import * as tempFs from '../../support/utils/runtimeFs'
Given(
'the user creates a file {string} of {string} size in the temp upload directory',
function (this: World, fileName: string, fileSize: string): Promise<void> {
return t... | owncloud/web/tests/e2e/cucumber/steps/tempFs.ts/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/steps/tempFs.ts",
"repo_id": "owncloud",
"token_count": 122
} | 864 |
import join from 'join-path'
import { BodyInit, Response } from 'node-fetch'
import { request as httpRequest, checkResponseStatus } from '../http'
import { User } from '../../types'
import { TokenEnvironmentFactory } from '../../environment'
import { config } from '../../../config'
interface KeycloakToken {
access_t... | owncloud/web/tests/e2e/support/api/keycloak/utils.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/keycloak/utils.ts",
"repo_id": "owncloud",
"token_count": 617
} | 865 |
import { Group, User } from '../types'
import { dummyUserStore, dummyGroupStore, createdUserStore, createdGroupStore } from '../store'
export class UsersEnvironment {
getUser({ key }: { key: string }): User {
const userKey = key.toLowerCase()
if (!dummyUserStore.has(userKey)) {
throw new Error(`user w... | owncloud/web/tests/e2e/support/environment/userManagement.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/environment/userManagement.ts",
"repo_id": "owncloud",
"token_count": 908
} | 866 |
import { Page } from '@playwright/test'
import util from 'util'
import { UsersEnvironment } from '../../../environment'
const userIdSelector = `[data-item-id="%s"] .users-table-btn-action-dropdown`
const editActionBtnContextMenu = '.context-menu .oc-users-actions-edit-trigger'
const editActionBtnQuickActions =
'[dat... | owncloud/web/tests/e2e/support/objects/app-admin-settings/users/actions.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/users/actions.ts",
"repo_id": "owncloud",
"token_count": 4982
} | 867 |
import { Page } from '@playwright/test'
import * as po from '../search/actions'
export class Search {
#page: Page
constructor({ page }: { page: Page }) {
this.#page = page
}
getSearchResultMessage(): Promise<string> {
return po.getSearchResultMessage({ page: this.#page })
}
async selectTagFilter... | owncloud/web/tests/e2e/support/objects/app-files/search/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/search/index.ts",
"repo_id": "owncloud",
"token_count": 318
} | 868 |
import { Page } from '@playwright/test'
import { User } from '../../types'
import { config } from '../../../config'
import { TokenEnvironmentFactory, TokenProviderType } from '../../environment'
export class Session {
#page: Page
constructor({ page }: { page: Page }) {
this.#page = page
}
signIn(username... | owncloud/web/tests/e2e/support/objects/runtime/session.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/runtime/session.ts",
"repo_id": "owncloud",
"token_count": 745
} | 869 |
import { Locator } from '@playwright/test'
export const waitForEvent = (locator: Locator, type: keyof SVGElementEventMap): Promise<void> =>
locator.evaluate(
(element, arg) =>
new Promise<void>((resolve) => {
const finalizer = () => {
element.removeEventListener(arg.type, finalizer)
... | owncloud/web/tests/e2e/support/utils/locator.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/utils/locator.ts",
"repo_id": "owncloud",
"token_count": 361
} | 870 |
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
fo... | zhuifengshaonianhanlu/pikachu/assets/css/fonts.googleapis.com.css/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/assets/css/fonts.googleapis.com.css",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 225
} | 871 |
<?php
session_start();
include_once 'function.php';
//$_SESSION['vcode']=vcode(100,40,30,4);
$_SESSION['vcode']=vcodex();
//验证码绕过 on server 这里其实还是有一个问题,就是服务端将验证码字符串以明文COOKIE的方式给了前端,那验证码还有什么鸟意义。。。
setcookie('bf[vcode]',$_SESSION['vcode']);
?>
| zhuifengshaonianhanlu/pikachu/inc/showvcode.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/inc/showvcode.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 193
} | 872 |
<?php
error_reporting(0);
// var_dump($_SERVER);
if ((!isset($_SERVER['PHP_AUTH_USER'])) || (!isset($_SERVER['PHP_AUTH_PW']))) {
//发送认证框,并给出迷惑性的info
header('Content-type:text/html;charset=utf-8');
header("WWW-Authenticate: Basic realm='认证'");
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Requ... | zhuifengshaonianhanlu/pikachu/pkxss/xfish/fish.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/xfish/fish.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 346
} | 873 |
<?php
$html.=<<<A
<img class=player src="include/ai.png" />
<p class=nabname>
Allen Iverson (Allen Iverson), was born on June 7, 1975 in the United States in Hampton, Virginia, a former American professional basketball player, the secretary defender (double can guard), 11 times in NBA all-star squad, a former U.S. drea... | zhuifengshaonianhanlu/pikachu/vul/fileinclude/include/file2.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/fileinclude/include/file2.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 116
} | 874 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "op2_admin_edit.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/overpermission/op2/op2_admin_edit.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/overpermission/op2/op2_admin_edit.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1986
} | 875 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "sqli_insert.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_iu/sqli_reg.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_iu/sqli_reg.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1813
} | 876 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "urlredirect.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/urlredirect/urlredirect.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/urlredirect/urlredirect.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1270
} | 877 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "xxe.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','... | zhuifengshaonianhanlu/pikachu/vul/xxe/xxe.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/xxe/xxe.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1411
} | 878 |
#nextbutton {
width: 50vw;
height: auto;
position: absolute;
bottom: 6vh;
left: 25vw;
background-color: #AD50FF;
border: 0.2em solid white;
text-align: center;
color: #FFF;
border-radius: 100px;
}
#nextbutton:active {
background-color: white;
color: #AD50FF;
}
h2 {
font-size: 1.3em;
text-a... | 8thwall/web/examples/aframe/animation-mixer/index.css/0 | {
"file_path": "8thwall/web/examples/aframe/animation-mixer/index.css",
"repo_id": "8thwall",
"token_count": 152
} | 0 |
#overlay {
z-index: 35;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
}
#savePrompt {
position: absolute;
left: 50%;
bottom: 22vh;
transform: translateX(-50%);
max-width: 80vw;
font-family: sans-serif;
font-weight: bold;
font-size: 6vmin;
color: black;... | 8thwall/web/examples/aframe/capturephoto/index.css/0 | {
"file_path": "8thwall/web/examples/aframe/capturephoto/index.css",
"repo_id": "8thwall",
"token_count": 318
} | 1 |
// Copyright (c) 2021 8th Wall, Inc.
/* globals AFRAME */
// Component that places trees where the ground is clicked
AFRAME.registerComponent('tap-place', {
init() {
const ground = document.getElementById('ground')
ground.addEventListener('click', (event) => {
// Create new entity for the new object
... | 8thwall/web/examples/aframe/placeground/tap-place.js/0 | {
"file_path": "8thwall/web/examples/aframe/placeground/tap-place.js",
"repo_id": "8thwall",
"token_count": 504
} | 2 |
module.exports = function override(config) {
// add html loader as a webpack config rule
config.module.rules.push({
test: /\.html$/i,
loader: 'html-loader',
})
return config
}
| 8thwall/web/examples/aframe/reactapp/config-overrides.js/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/config-overrides.js",
"repo_id": "8thwall",
"token_count": 67
} | 3 |
import React from 'react'
// Renders 404 message for any unknown route.
function NotFound() {
return (
<>
<h1>404</h1>
<h2>Not Found</h2>
</>
)
}
export {NotFound}
| 8thwall/web/examples/aframe/reactapp/src/views/notfound.jsx/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/src/views/notfound.jsx",
"repo_id": "8thwall",
"token_count": 84
} | 4 |
# 8th Wall Web Examples - Camera Pipeline
8th Wall Web's Markerless AR Tracking runs within a powerful camera application framework that is
designed to enable rapid development of highly efficient camera applications. This framework makes
it easy to build camera applications by taking over the hard work of binding to ... | 8thwall/web/examples/camerapipeline/README.md/0 | {
"file_path": "8thwall/web/examples/camerapipeline/README.md",
"repo_id": "8thwall",
"token_count": 628
} | 5 |
/*
Ported to JavaScript by Lazar Laszlo 2011
lazarsoft@gmail.com, www.lazarsoft.info
*/
/*
*
* Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/decoder.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/decoder.js",
"repo_id": "8thwall",
"token_count": 953
} | 6 |
# 8th Wall Web Examples - three.js - Tap to place
This interactive example allows the user to grow trees on the ground by tapping. This showcases raycasting, instantiating objects, importing 3D models, and animation.

[Try the live demo here](https://... | 8thwall/web/examples/threejs/placeground/README.md/0 | {
"file_path": "8thwall/web/examples/threejs/placeground/README.md",
"repo_id": "8thwall",
"token_count": 229
} | 7 |
import type {ComponentDefinition} from 'aframe'
import {memo} from '../../common/factory'
declare const THREE: any
declare const XRExtras: any
// Keep in sync with face-controller
const EAR_POINTS = new Set([
'leftHelix',
'leftCanal',
'leftLobe',
'rightHelix',
'rightCanal',
'rightLobe',
])
const FACE_POI... | 8thwall/web/xrextras/src/aframe/components/face-components.ts/0 | {
"file_path": "8thwall/web/xrextras/src/aframe/components/face-components.ts",
"repo_id": "8thwall",
"token_count": 2272
} | 8 |
@font-face {
font-family: 'Raleway-Regular';
src: url('//cdn.8thwall.com/web/fonts/raleway-regular.woff') format('woff'), /* Modern Browsers */
url('//cdn.8thwall.com/web/fonts/raleway-regular.ttf') format('truetype') /* Safari, Android, iOS */
}
@font-face {
font-family: 'Raleway-Bold';
src: url('//cd... | 8thwall/web/xrextras/src/fonts/fonts.css/0 | {
"file_path": "8thwall/web/xrextras/src/fonts/fonts.css",
"repo_id": "8thwall",
"token_count": 549
} | 9 |
let pauseOnBlur = null
const PauseOnBlurFactory = () => {
if (pauseOnBlur == null) {
pauseOnBlur = create()
}
return pauseOnBlur
}
function create() {
const blur = () => {
XR8.pause()
}
const focus = () => {
XR8.resume()
}
const pipelineModule = () => ({
name: 'pauseonblur',
onA... | 8thwall/web/xrextras/src/pauseonblurmodule/pauseonblur.js/0 | {
"file_path": "8thwall/web/xrextras/src/pauseonblurmodule/pauseonblur.js",
"repo_id": "8thwall",
"token_count": 298
} | 10 |
import type {XRExtras} from '../xrextras'
declare global {
interface Window {
XR8: any;
XRExtras: typeof XRExtras;
THREE: any;
}
}
| 8thwall/web/xrextras/src/types/global.ts/0 | {
"file_path": "8thwall/web/xrextras/src/types/global.ts",
"repo_id": "8thwall",
"token_count": 67
} | 11 |
## 1、表格
在HTML中 ,我们可以使用`table`标签来展示表格数据。
### 1.1、标准结构
```html
<table>
<caption>表格标题</caption> <!--表头(表格标题)-->
<!--定义表格的列头行。-->
<thead>
<tr>
<td>列头行1</td>
<td>列头行2</td>
</tr>
</thead>
<!--定义表格的主体行-->
<tbody>
<tr>
<td>主体行1</td>
<td>主体行2</td>
</tr>
</tbody... | Daotin/Web/01-HTML/01-HTML基础/03-表格.md/0 | {
"file_path": "Daotin/Web/01-HTML/01-HTML基础/03-表格.md",
"repo_id": "Daotin",
"token_count": 2515
} | 12 |
`transform` 字面上就是变形,改变的意思。在CSS3中transform主要包括以下几种:移动 `translate`,缩放`scale`,旋转`rotate`,翻转`skew`,改变旋转轴心等。
## 1、元素的移动:translate
**作用:**使用transform实现元素的移动
**语法:**
```css
/*使用transform实现元素的移动
1.如果只有一个参数就代表x方向
2.如果有两个参数就代表x/y方向*/
transform: translate(100px);
transform: translate(400px,500px);
transform: translate(0px,5... | Daotin/Web/02-CSS/02-CSS3/05-transform.md/0 | {
"file_path": "Daotin/Web/02-CSS/02-CSS3/05-transform.md",
"repo_id": "Daotin",
"token_count": 6394
} | 13 |
## 1、日期的定义
**定义日期**:
```js
var date = new Date(); // 获取当前日期
// 带参数的日期形式
var date = new Date("month dd,yyyy hh:mm:ss"); // 自定义日期(日期必须合法)
var date = new Date("month dd,yyyy"); // 自定义日期(日期必须合法)
var date = new Date(yyyy,mth,dd,hh,mm,ss); // 日期可以不合法,会自动转换
var date = new Date(yyyy,mth,dd); // 日期可以不合法,会自动转换
var date = new... | Daotin/Web/03-JavaScript/01-JavaScript基础知识/07-日期Date.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/07-日期Date.md",
"repo_id": "Daotin",
"token_count": 4402
} | 14 |
## 一、document 元素
```javascript
// 获取 body
document.body;
// 获取 title
document.title; // 获取的是 title 中的值
// 获取 html
document.documentElement;
```
**案例:图片跟着鼠标移动**
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
img {
position: absolut... | Daotin/Web/03-JavaScript/03-BOM/03-offset,scroll,变速动画函数.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/03-BOM/03-offset,scroll,变速动画函数.md",
"repo_id": "Daotin",
"token_count": 11502
} | 15 |
## 0、复习
实例对象和构造函数之间的关系:
1、实例对象是通过构造函数来创建的,创建的过程叫实例化。
2、如何判断一个对象是不是某种数据类型?
- 通过构造器的方法。`实例对象.constructor === 构造函数名字`
- (推荐使用)` 实例对象 instanceof 构造函数名字 `
## 1、原型的引入
**由来:**构造函数的问题。如果一个构造函数中有一个匿名方法,那么每实例化一个对象,然后在对象调用这个方法的时候,由于每个对象的方法都是各自的,所以每次调用这个方法的时候都会在内存中开辟一块空间存储这个方法,这样就造成内存资源的浪费。
**解决方法:**定义一个函数代替匿名方法。
由这个思想,提... | Daotin/Web/03-JavaScript/04-JavaScript高级知识/01-原型.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/01-原型.md",
"repo_id": "Daotin",
"token_count": 5000
} | 16 |
DOM中有很多方式获取元素,比如通过id,通过标签名,通过类名,通过name的值,通过选择器等方式。
**在 jQuery 中就只有一种方式:`$("选择器")`**
### 1、基本选择器
#### 1.1、id 选择器
**语法:** ` $("#id选择器的值")`
```js
$(function () {// 页面加载
$("#btn").click(function () {
console.log($(this).val());
$(this).val("改变按钮");
// this.value = "改变按钮";
});
});
```
> 注意:this 是DOM对... | Daotin/Web/04-jQuery/02-jQuery选择器.md/0 | {
"file_path": "Daotin/Web/04-jQuery/02-jQuery选择器.md",
"repo_id": "Daotin",
"token_count": 9688
} | 17 |
html, body {
width: 100%;
height: 100%;
}
.layout {
width: 100%;
height: 100%;
}
/* 头部header */
.header {
width: 100%;
height: 50px;
background-color: #eee;
border-bottom: 1px solid #ccc;
position: absolute;
}
.header-back,
.header-menu {
width: 50px;
height: 50px;
back... | Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/css/category.css/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/css/category.css",
"repo_id": "Daotin",
"token_count": 1141
} | 18 |
// Bordered & Pulled
// -------------------------
.#{$fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em $fa-border-color;
border-radius: .1em;
}
.#{$fa-css-prefix}-pull-left { float: left; }
.#{$fa-css-prefix}-pull-right { float: right; }
.#{$fa-css-prefix} {
&.#{$fa-css-prefix}-pull-lef... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_bordered-pulled.scss/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_bordered-pulled.scss",
"repo_id": "Daotin",
"token_count": 257
} | 19 |
## 一、字符串的扩展
- `includes(str)` : 判断是否包含指定的字符串
- `startsWith(str) `: 判断是否以指定字符串开头
- `endsWith(str) `: 判断是否以指定字符串结尾
- `repeat(count) `: 重复指定次数
```js
let str = 'abcdefg';
console.log(str.includes('a')); //true
console.log(str.includes('h')); //false
//startsWith(str) : 判断是否以指定字符串开头
console.log(st... | Daotin/Web/08-ES6语法/06-字符串扩展,数值扩展,数组扩展,对象扩展,set,map,ES7.md/0 | {
"file_path": "Daotin/Web/08-ES6语法/06-字符串扩展,数值扩展,数组扩展,对象扩展,set,map,ES7.md",
"repo_id": "Daotin",
"token_count": 3780
} | 20 |
## Node.js模块化教程
后端 commonJS node 就是在后端node.js使用 commonJS 实现 js 模块化。
在服务器端: 模块的加载是运行时同步加载的。
### 语法:
**commonJS 导出模块语法:**
```js
module.exports = Object|Function|Array|String|Number|Boolean; //一个文件内只能使用一次
exports.xxx = Object|Function|Array|String|Number|Boolean; //一个文件可以导出多次
```
**commonJS 导入模块语法:**
```js
let x... | Daotin/Web/09-模块化规范/02-后端CommonJS-Node模块化.md/0 | {
"file_path": "Daotin/Web/09-模块化规范/02-后端CommonJS-Node模块化.md",
"repo_id": "Daotin",
"token_count": 1279
} | 21 |
## 一、Vue.js 概述
### 1、什么是Vue.js
Vue.js 是目前最火的一个前端框架,React是最流行的一个前端框架(React除了开发网站,还可以开发手机App, Vue语法也是可以用于进行手机App开发的,需要借助于Weex)
Vue.js 是前端的**主流框架之一**,和Angular.js、React.js 一起,并成为前端三大主流框架!
Vue.js 是一套构建用户界面的框架,**只关注视图层**,它不仅易于上手,还便于与第三方库或既有项目整合。(Vue有配套的第三方类库,可以整合起来做大型项目的开发)。
在Vue中,一个核心的概念,就是让用户不再操作DOM元素,解放了用户的双手,让程序员可以更... | Daotin/Web/12-Vue/01-Vue.js概述,基本结构,指令,事件修饰符,样式.md/0 | {
"file_path": "Daotin/Web/12-Vue/01-Vue.js概述,基本结构,指令,事件修饰符,样式.md",
"repo_id": "Daotin",
"token_count": 18143
} | 22 |
## 一、组件的生命周期函数
### constructor:
最先执行,构建组建时执行。
此时,可以拿到内部定义的属性的值,不可以拿到父组件传过来的输入属性。
### OnInit:
接受完父组件传递过来的值后执行。可以拿到父组件传过来的输入属性。
```js
export class StreamComponent implements OnInit {
ngOnInit() {
}
@Input()
receiveGoods: Goods
streamTxt: string = 'aaa';
}
```
### OnChange :
- 只在输入属性发生变化时执... | Daotin/Web/14-Angular/07-生命周期函数.md/0 | {
"file_path": "Daotin/Web/14-Angular/07-生命周期函数.md",
"repo_id": "Daotin",
"token_count": 1600
} | 23 |
package pers.husen.web.bean.po;
/**
*
*
* @author 何明胜
*
* 2017年10月20日
*/
public class ImageUploadPo {
private int success;
private String message;
private String url;
@Override
public String toString() {
return "ImageUploadPo [success=" + success + ", message=" + message + ", url=" + url + "]";
}
/**
... | Humsen/web/web-core/src/pers/husen/web/bean/po/ImageUploadPo.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/bean/po/ImageUploadPo.java",
"repo_id": "Humsen",
"token_count": 325
} | 24 |
package pers.husen.web.common.handler;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import o... | Humsen/web/web-core/src/pers/husen/web/common/handler/FileDownloadHandler.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/common/handler/FileDownloadHandler.java",
"repo_id": "Humsen",
"token_count": 1349
} | 25 |
package pers.husen.web.config;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import pers.husen.web.common.constants.CommonConstants;
import pers.husen.web.config.listener.WebInitConfigListener;
import java.io.File;
/**
* @author 何明胜
*
* 2017年9月28日
*/
public class ProjectDepl... | Humsen/web/web-core/src/pers/husen/web/config/ProjectDeployConfig.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/config/ProjectDeployConfig.java",
"repo_id": "Humsen",
"token_count": 1117
} | 26 |
package pers.husen.web.dao.impl;
import java.util.ArrayList;
import java.util.Date;
import pers.husen.web.bean.vo.CodeLibraryVo;
import pers.husen.web.common.constants.DbConstans;
import pers.husen.web.dao.CodeLibraryDao;
import pers.husen.web.dbutil.DbQueryUtils;
import pers.husen.web.dbutil.DbManipulationUtils;
imp... | Humsen/web/web-core/src/pers/husen/web/dao/impl/CodeLibraryDaoImpl.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dao/impl/CodeLibraryDaoImpl.java",
"repo_id": "Humsen",
"token_count": 2737
} | 27 |
package pers.husen.web.dbutil.mappingdb;
/**
* 文件下载数据库
*
* @author 何明胜
*
* 2017年10月20日
*/
public class FileDownloadMapping {
/**
* 数据库名称
*/
public static String DB_NAME = "file_download";
}
| Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/FileDownloadMapping.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/FileDownloadMapping.java",
"repo_id": "Humsen",
"token_count": 113
} | 28 |
package pers.husen.web.service;
import pers.husen.web.dao.VisitTotalDao;
import pers.husen.web.dao.impl.VisitTotalDaoImpl;
/**
* @author 何明胜
*
* 2017年9月30日
*/
public class VisitTotalSvc implements VisitTotalDao{
private static final VisitTotalDaoImpl visitTotalDaoImpl = new VisitTotalDaoImpl();
@Override
pu... | Humsen/web/web-core/src/pers/husen/web/service/VisitTotalSvc.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/service/VisitTotalSvc.java",
"repo_id": "Humsen",
"token_count": 213
} | 29 |
package pers.husen.web.servlet.module;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import pers.husen.web.common.constan... | Humsen/web/web-core/src/pers/husen/web/servlet/module/BlogModuleSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/module/BlogModuleSvt.java",
"repo_id": "Humsen",
"token_count": 432
} | 30 |
@charset "UTF-8";
.contact-div {
padding: 0em 1em !important;
} | Humsen/web/web-mobile/WebContent/css/contact/contact.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/contact/contact.css",
"repo_id": "Humsen",
"token_count": 29
} | 31 |
@charset "UTF-8";
.modify-pwd-form {
margin-top: 50px;
}
.old-pwd-wrong-info{
display: none;
} | Humsen/web/web-mobile/WebContent/css/personal_center/modify-pwd.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/personal_center/modify-pwd.css",
"repo_id": "Humsen",
"token_count": 51
} | 32 |
/**
* 写新文章的js
*
* @author 何明胜
*
* 2017年9月28日
*/
/** 加载插件 */
$.ajax({
url : '/plugins/plugins.html',
async : false,
type : 'GET',
success : function(data) {
$($('head')[0]).find('script:first').after(data);
}
});
var article_id = -1;// 文章id,新文章默认为-1,编辑文章为相应的id
var article_type = -1; //文章类型,默认-1,博客=blo... | Humsen/web/web-mobile/WebContent/js/editor/editor.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/editor/editor.js",
"repo_id": "Humsen",
"token_count": 4133
} | 33 |
/**
* @author 何明胜
*
* 2017年10月25日
*/
// 图片是否修改
is_pic_modify = false;
$(function() {
// 填充用户信息
fillUserInfo();
// 添加验证
modifyValidator();
// 用户头像更换点击事件
userHeadChangeClick();
// 提交事件
$('#submitModify').click(submitForm);
// 个人资料点击跳转修改邮箱
$('#btn_goModifyEmail').click(gotoModifyEmailClick);
});
/**
* 用... | Humsen/web/web-mobile/WebContent/js/personal_center/modify-userinfo.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/personal_center/modify-userinfo.js",
"repo_id": "Humsen",
"token_count": 3773
} | 34 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>个人中心</title>
<!-- 网站图标 -->
<link rel="shortcut icon" href="/images/favicon.ico">
<!-- Bootstrap -->
<link rel="stylesheet" href="/plugins/boot... | Humsen/web/web-mobile/WebContent/personal_center/usercenter.html/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/personal_center/usercenter.html",
"repo_id": "Humsen",
"token_count": 1290
} | 35 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/matchbrackets.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/matchbrackets.js",
"repo_id": "Humsen",
"token_count": 2019
} | 36 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/show-hint.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/show-hint.js",
"repo_id": "Humsen",
"token_count": 5773
} | 37 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/mode/simple.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/mode/simple.js",
"repo_id": "Humsen",
"token_count": 3512
} | 38 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/selection/selection-pointer.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/selection/selection-pointer.js",
"repo_id": "Humsen",
"token_count": 1333
} | 39 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/**
* Link to the project's GitHub page:
* https://github.com/pickhardt/coffeescript-codemirror-mode
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // Co... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/coffeescript/coffeescript.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/coffeescript/coffeescript.js",
"repo_id": "Humsen",
"token_count": 4598
} | 40 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/eiffel/eiffel.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/eiffel/eiffel.js",
"repo_id": "Humsen",
"token_count": 1818
} | 41 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/http/http.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/http/http.js",
"repo_id": "Humsen",
"token_count": 1103
} | 42 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/ruby/ruby.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/ruby/ruby.js",
"repo_id": "Humsen",
"token_count": 4716
} | 43 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/spreadsheet/spreadsheet.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/spreadsheet/spreadsheet.js",
"repo_id": "Humsen",
"token_count": 1551
} | 44 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/*
For extra ASP classic objects, initialize CodeMirror instance with this option:
isASP: true
E.G.:
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
li... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/vbscript/vbscript.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/vbscript/vbscript.js",
"repo_id": "Humsen",
"token_count": 6621
} | 45 |
/*
Name: Base16 Default Dark
Author: Chris Kempson (http://chriskempson.com)
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
*/
.cm-s-base16-dark.CodeMirror {backg... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/base16-dark.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/base16-dark.css",
"repo_id": "Humsen",
"token_count": 790
} | 46 |
/*
Name: Paraíso (Dark)
Author: Jan T. Sott
Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
*/
.cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;}
.cm-s-paraiso-dark div.CodeMirror-s... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/paraiso-dark.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/paraiso-dark.css",
"repo_id": "Humsen",
"token_count": 804
} | 47 |
[
{
"name" : "&#64;",
"description":"at symbol"
},
{
"name":"&copy;",
"description":"copyright symbol"
},
{
"name":"&reg;",
"description":"registered symbol"
},
{
"name":"&trade;",
"description":"trademark symbol"
},
{
"name":"&hearts;",
"description":"heart"
},
{
... | Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/html-entities-dialog/html-entities.json/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/html-entities-dialog/html-entities.json",
"repo_id": "Humsen",
"token_count": 6961
} | 48 |
(function($) {
/**
* Belgium (Dutch) language package
* Translated by @dokterpasta
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Geef een geldige base 64 encoded tekst in'
},
between: {
'defau... | Humsen/web/web-mobile/WebContent/plugins/validator/js/language/be_NL.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/validator/js/language/be_NL.js",
"repo_id": "Humsen",
"token_count": 7598
} | 49 |
(function($) {
/**
* The Dutch language package
* Translated by @jvanderheide
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Voer een geldige Base64 geëncodeerde tekst in'
},
between: {
'defaul... | Humsen/web/web-mobile/WebContent/plugins/validator/js/language/nl_NL.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/validator/js/language/nl_NL.js",
"repo_id": "Humsen",
"token_count": 7733
} | 50 |
Manifest-Version: 1.0
Class-Path:
| Humsen/web/web-pc/WebContent/META-INF/MANIFEST.MF/0 | {
"file_path": "Humsen/web/web-pc/WebContent/META-INF/MANIFEST.MF",
"repo_id": "Humsen",
"token_count": 15
} | 51 |
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>web-pc</display-name>
<... | Humsen/web/web-pc/WebContent/WEB-INF/web.xml/0 | {
"file_path": "Humsen/web/web-pc/WebContent/WEB-INF/web.xml",
"repo_id": "Humsen",
"token_count": 544
} | 52 |
@charset "UTF-8";
.topbar-nav {
margin: 10px 0 0 20px;
line-height: 0.8;
}
.navbar.navbar-default div {
float: left;
}
.access-statistics {
margin: 15px 15px 0 0;
}
.login-register {
margin: 16px 20px 0 0;
}
.nav-others {
margin: 16px 0 0 0;
}
.search-target {
min-width: initial;
}
.right-blank-space {
m... | Humsen/web/web-pc/WebContent/css/navigation/topbar.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/css/navigation/topbar.css",
"repo_id": "Humsen",
"token_count": 185
} | 53 |
/**
* 博客模板
*
* @author 何明胜
*
* 2017年12月20日
*/
/** 加载插件 * */
$.ajax({
url : '/plugins/plugins.html',
async : false,
type : 'GET',
success : function(data) {
$($('head')[0]).find('script:first').after(data);
}
});
$(function() {
/** 顶部导航栏 */
$.ajax({
url : '/module/navigation/topbar.html',
async ... | Humsen/web/web-pc/WebContent/js/article/blog-template.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/js/article/blog-template.js",
"repo_id": "Humsen",
"token_count": 2884
} | 54 |
/**
* @author 何明胜
*
* 2017年9月27日
*/
$(function(){
//加载新版本特性
loadNewVersionFeature();
//加载文章类别
loadCategory();
});
/**
* 显示最新版本特性
* @returns
*/
function loadNewVersionFeature(){
$.ajax({
type : 'POST',
url : '/latestRlseFetr.hms',
dataType : 'json',
success : function(response){
$('#txt_versionF... | Humsen/web/web-pc/WebContent/js/navigation/leftbar.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/js/navigation/leftbar.js",
"repo_id": "Humsen",
"token_count": 1268
} | 55 |
<!-- 顶部固定导航栏 -->
<link rel="stylesheet" href="/css/navigation/topbar.css">
<!-- 登录、注册表单验证 -->
<script src="/js/login/formvalidator.js"></script>
<!-- md5加密 -->
<script src="/js/customize-jquery.md5.js"></script>
<!-- 自定义js -->
<script src="/js/navigation/topbar.js"></script>
<!-- 导航区 -->
<nav class="navbar navbar-d... | Humsen/web/web-pc/WebContent/module/navigation/topbar.html/0 | {
"file_path": "Humsen/web/web-pc/WebContent/module/navigation/topbar.html",
"repo_id": "Humsen",
"token_count": 1352
} | 56 |
/*
* Table styles
*/
table.dataTable {
width: 100%;
margin: 0 auto;
clear: both;
border-collapse: separate;
border-spacing: 0;
/*
* Header and footer styles
*/
/*
* Body styles
*/
}
table.dataTable thead th,
table.dataTable tfoot th {
font-weight: bold;
}
table.dataTable thead th,
table.da... | Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.jqueryui.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.jqueryui.css",
"repo_id": "Humsen",
"token_count": 6257
} | 57 |
(function($) {
/**
* Chilean Spanish language package
* Translated by @marceloampuerop6
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Por favor ingrese un valor válido en base 64'
},
between: {
... | Humsen/web/web-pc/WebContent/plugins/validator/js/language/es_CL.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/validator/js/language/es_CL.js",
"repo_id": "Humsen",
"token_count": 7961
} | 58 |
(function($) {
/**
* Russian language package
* Translated by @cylon-v. Improved by @stepin, @oleg-voloshyn
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Пожалуйста, введите корректную строку base64'
},
b... | Humsen/web/web-pc/WebContent/plugins/validator/js/language/ru_RU.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/validator/js/language/ru_RU.js",
"repo_id": "Humsen",
"token_count": 11236
} | 59 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>代码库</title>
<meta name="description"
content="欢迎来到何明胜的个人网站.本站主要用于记录和分享本人的学习心得和编程经验,并分享常见可复用代码、推荐书籍以及软件等资源.本站源码已托管github,欢迎访问:https://github.com/HelloHusen/web">
<meta name="keywords" content="何明胜,何明胜的个人网站,何明胜的博客,一格的程序人生">
<meta name="author" content="何明胜,一格"... | Humsen/web/web-pc/WebContent/topic/code/code_template.html/0 | {
"file_path": "Humsen/web/web-pc/WebContent/topic/code/code_template.html",
"repo_id": "Humsen",
"token_count": 904
} | 60 |
[](https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0)
[](https://github.com/OCA/web/actions/workflows/pre-commit.yml?query=b... | OCA/web/README.md/0 | {
"file_path": "OCA/web/README.md",
"repo_id": "OCA",
"token_count": 3461
} | 61 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_advanced_search_x2x
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-03 03:49+0000\n"... | OCA/web/web_advanced_search/i18n/fr.po/0 | {
"file_path": "OCA/web/web_advanced_search/i18n/fr.po",
"repo_id": "OCA",
"token_count": 594
} | 62 |
{
"name": "Apply Field Style",
"author": "Akretion,Odoo Community Association (OCA)",
"summary": "Apply css class style to fields from a dict parameters",
"version": "16.0.1.0.1",
"license": "AGPL-3",
"maintainer": ["bealdav"],
"website": "https://github.com/OCA/web",
"category": "web",
... | OCA/web/web_apply_field_style/__manifest__.py/0 | {
"file_path": "OCA/web/web_apply_field_style/__manifest__.py",
"repo_id": "OCA",
"token_count": 175
} | 63 |
======================
Calendar slot duration
======================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: s... | OCA/web/web_calendar_slot_duration/README.rst/0 | {
"file_path": "OCA/web/web_calendar_slot_duration/README.rst",
"repo_id": "OCA",
"token_count": 1296
} | 64 |
================
Chatter Position
================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fbb006a9a99f... | OCA/web/web_chatter_position/README.rst/0 | {
"file_path": "OCA/web/web_chatter_position/README.rst",
"repo_id": "OCA",
"token_count": 1104
} | 65 |
Configurable chatter position from the user preferences.
Supports Both Community & Enterprise Edition.
| OCA/web/web_chatter_position/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_chatter_position/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 20
} | 66 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_company_color
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-27 11:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Tea... | OCA/web/web_company_color/i18n/it.po/0 | {
"file_path": "OCA/web/web_company_color/i18n/it.po",
"repo_id": "OCA",
"token_count": 1600
} | 67 |
# Copyright 2019 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
from ..models.res_company import URL_BASE
class TestResCompany(common.TransactionCase):
IMG_GREEN = (
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUl"
... | OCA/web/web_company_color/tests/test_res_company.py/0 | {
"file_path": "OCA/web/web_company_color/tests/test_res_company.py",
"repo_id": "OCA",
"token_count": 1411
} | 68 |
odoo.define("web_copy_confirm.confirm_tests", function (require) {
"use strict";
/* global QUnit*/
var FormView = require("web.FormView");
var testUtils = require("web.test_utils");
var createView = testUtils.createView;
QUnit.module(
"web_copy_confirm",
{
beforeE... | OCA/web/web_copy_confirm/static/tests/confirm_tests.js/0 | {
"file_path": "OCA/web/web_copy_confirm/static/tests/confirm_tests.js",
"repo_id": "OCA",
"token_count": 1854
} | 69 |
This modules offers the dark mode for Odoo CE. The dark mode can be activated by
every user in the user menu in the top right.
| OCA/web/web_dark_mode/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_dark_mode/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 31
} | 70 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dashboard_tile
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Conte... | OCA/web/web_dashboard_tile/i18n/web_dashboard_tile.pot/0 | {
"file_path": "OCA/web/web_dashboard_tile/i18n/web_dashboard_tile.pot",
"repo_id": "OCA",
"token_count": 4910
} | 71 |
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<!-- This is for old Dialog template.
Because Odoo haven't done every template to OWL. -->
<t t-extend="web.DialogWidget">
<t t-jquery="button.btn-close" t-operation="inner">
<i class="fa fa-close" />
</t>
... | OCA/web/web_dialog_size/static/src/xml/web_dialog_size.xml/0 | {
"file_path": "OCA/web/web_dialog_size/static/src/xml/web_dialog_size.xml",
"repo_id": "OCA",
"token_count": 1230
} | 72 |
* `Onestein <https://www.onestein.nl>`_:
* Dennis Sluijk <d.sluijk@onestein.nl>
* Andrea Stirpe <a.stirpe@onestein.nl>
* `Tecnativa <https://www.tecnativa.com>`_:
* David Vidal
* João Marques
* Alexandre Díaz
* Víctor Martínez
* David Vidal
| OCA/web/web_disable_export_group/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_disable_export_group/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 119
} | 73 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
# Translators:
# Niki Waibel <niki.waibel@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-13 16:06+0000\n"
"PO-Rev... | OCA/web/web_environment_ribbon/i18n/de.po/0 | {
"file_path": "OCA/web/web_environment_ribbon/i18n/de.po",
"repo_id": "OCA",
"token_count": 422
} | 74 |
* Francesco Apruzzese <cescoap@gmail.com>
* Javi Melendez <javimelex@gmail.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Thomas Binsfeld <thomas.binsfeld@acsone.eu>
* Xavier Jiménez <xavier.jimenez@qubiq.es>
* Dennis Sluijk <d.sluijk@onestein.nl>
* Eric Lembregts <eric@lembregts.eu>
| OCA/web/web_environment_ribbon/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_environment_ribbon/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 130
} | 75 |
Having this module installed allows a developer to render a float or integer field
without a thousands separator using
.. code-block:: xml
<field name="id" options="{'enable_formatting': false}" />
Setting this option is supported for list and form views. In kanban views you
can simply use
.. code-block:: xml
... | OCA/web/web_field_numeric_formatting/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_field_numeric_formatting/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 197
} | 76 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_group_expand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content... | OCA/web/web_group_expand/i18n/web_group_expand.pot/0 | {
"file_path": "OCA/web/web_group_expand/i18n/web_group_expand.pot",
"repo_id": "OCA",
"token_count": 273
} | 77 |
* Implement keyboard shortcuts
| OCA/web/web_help/readme/ROADMAP.rst/0 | {
"file_path": "OCA/web/web_help/readme/ROADMAP.rst",
"repo_id": "OCA",
"token_count": 5
} | 78 |
/** @odoo-module **/
import {Trip} from "@web_help/trip.esm";
import {registry} from "@web/core/registry";
export class UserTrip extends Trip {
setup() {
this.addStep({
selector: ".o_list_button_add, .o-kanban-button-new",
content: this.env._t("To create a new user click here."),
... | OCA/web/web_help/static/src/user_trip.esm.js/0 | {
"file_path": "OCA/web/web_help/static/src/user_trip.esm.js",
"repo_id": "OCA",
"token_count": 465
} | 79 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.