text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
Feature: Notifications
As a user
I want to be notified
So that I can stay updated about the information
Scenario: User should be able to read and dismiss notifications
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
| Carol |
And "Admin" assigns fol... | owncloud/web/tests/e2e/cucumber/features/smoke/notifications.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/notifications.feature",
"repo_id": "owncloud",
"token_count": 1247
} | 861 |
Feature: spaces public link
Scenario: public link for space
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
| Carol |
| David |
And "Admin" assigns following roles to the users using API
| id | role |
| Alice | Space Admin |
... | owncloud/web/tests/e2e/cucumber/features/spaces/publicLink.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/spaces/publicLink.feature",
"repo_id": "owncloud",
"token_count": 2614
} | 862 |
{
"extends": "@ownclouders/tsconfig",
"compilerOptions": {
"module": "CommonJS"
}
}
| owncloud/web/tests/e2e/cucumber/tsconfig.json/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/tsconfig.json",
"repo_id": "owncloud",
"token_count": 40
} | 863 |
export * as http from './http'
export * as graph from './graph'
export * as dav from './davSpaces'
export * as share from './share'
export * as keycloak from './keycloak'
export * as provision from './provision'
export * as settings from './userSettings'
| owncloud/web/tests/e2e/support/api/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/index.ts",
"repo_id": "owncloud",
"token_count": 80
} | 864 |
import { Link } from '../types'
import { createdLinkStore } from '../store'
export class LinksEnvironment {
getLink({ name }: { name: string }): Link {
if (!createdLinkStore.has(name)) {
throw new Error(`link with name '${name}' not found`)
}
return createdLinkStore.get(name)
}
updateLinkName(... | owncloud/web/tests/e2e/support/environment/link.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/environment/link.ts",
"repo_id": "owncloud",
"token_count": 367
} | 865 |
import { Page } from '@playwright/test'
const usersNavSelector = '//a[@data-nav-name="admin-settings-users"]'
const appLoadingSpinnerSelector = '#app-loading-spinner'
export class Users {
#page: Page
constructor({ page }: { page: Page }) {
this.#page = page
}
async navigate(): Promise<void> {
await t... | owncloud/web/tests/e2e/support/objects/app-admin-settings/page/users.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/page/users.ts",
"repo_id": "owncloud",
"token_count": 156
} | 866 |
import { Download, Locator, Page } from '@playwright/test'
import * as po from './actions'
import { Space } from '../../../types'
export class Resource {
#page: Page
constructor({ page }: { page: Page }) {
this.#page = page
}
async create(args: Omit<po.createResourceArgs, 'page'>): Promise<void> {
co... | owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts",
"repo_id": "owncloud",
"token_count": 3638
} | 867 |
export * as applicationFiles from './app-files'
export * as applicationAdminSettings from './app-admin-settings'
export * as runtime from './runtime'
export * as account from './account'
export * as urlNavigation from './url-navigation'
| owncloud/web/tests/e2e/support/objects/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/index.ts",
"repo_id": "owncloud",
"token_count": 64
} | 868 |
const addDays = (days: number): Date => {
const date = new Date()
date.setDate(date.getDate() + days)
return date
}
const addMonth = (noOfMonths: number): Date => {
const date = new Date()
date.setMonth(date.getMonth() + noOfMonths)
return date
}
export const getActualExpiryDate = (
dateType: 'day' | 'w... | owncloud/web/tests/e2e/support/utils/datePicker.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/utils/datePicker.ts",
"repo_id": "owncloud",
"token_count": 272
} | 869 |
// This file must not export or import anything on top-level
declare module '*.vue' {
import { defineComponent } from 'vue'
const component: ReturnType<typeof defineComponent>
export default component
}
| owncloud/web/web.jest.d.ts/0 | {
"file_path": "owncloud/web/web.jest.d.ts",
"repo_id": "owncloud",
"token_count": 57
} | 870 |
<?php
//全局session_start
session_start();
//全局居设置时区
date_default_timezone_set('Asia/Shanghai');
//全局设置默认字符
header('Content-type:text/html;charset=utf-8');
//定义数据库连接参数
define('DBHOST', '127.0.0.1');//将localhost或者127.0.0.1修改为数据库服务器的地址
define('DBUSER', 'root');//将root修改为连接mysql的用户名
define('DBPW', '');//将root修改为连接mysql的密码,如... | zhuifengshaonianhanlu/pikachu/inc/config.inc.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/inc/config.inc.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 407
} | 871 |
<?php
include_once '../inc/config.inc.php';
include_once '../inc/mysql.inc.php';
$link=connect();
//这个是获取cookie的api页面
if(isset($_GET['cookie'])){
$time=date('Y-m-d g:i:s');
$ipaddress=getenv ('REMOTE_ADDR');
$cookie=$_GET['cookie'];
$referer=$_SERVER['HTTP_REFERER'];
$useragent=$_SERVER['HTTP_USER... | zhuifengshaonianhanlu/pikachu/pkxss/xcookie/cookie.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/xcookie/cookie.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 280
} | 872 |
<?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 = "csrf.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','active open','active','','','','','... | zhuifengshaonianhanlu/pikachu/vul/csrf/csrf.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/csrf/csrf.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 3958
} | 873 |
<?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 = "fileinclude.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/fileinclude/fileinclude.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/fileinclude/fileinclude.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2504
} | 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 = "op1_login.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','... | zhuifengshaonianhanlu/pikachu/vul/overpermission/op1/op1_login.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/overpermission/op1/op1_login.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2085
} | 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_edit.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_iu/sqli_edit.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1984
} | 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 = "unser.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/unserilization/unser.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/unserilization/unser.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1169
} | 877 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$PIKA_ROOT_DIR = "../../../";
include_once $PIKA_ROOT_DIR.'inc/config.inc.php';
include_once $PIKA_ROOT_DIR.'inc/mysql.inc.php';
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "xss_blind.p... | zhuifengshaonianhanlu/pikachu/vul/xss/xssblind/xss_blind.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/xssblind/xss_blind.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1520
} | 878 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>8th Wall Web: Portal</title>
<!-- We've included a slightly modified version of A-Frame, which fixes some polish concerns -->
<script src="//cdn.8thwall.com/web/aframe/8frame-1.3.0.min.js"></script>
<!-- XR Extras - provides utilities l... | 8thwall/web/examples/aframe/portal/index.html/0 | {
"file_path": "8thwall/web/examples/aframe/portal/index.html",
"repo_id": "8thwall",
"token_count": 1758
} | 0 |
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Mona... | 8thwall/web/examples/aframe/reactapp/src/index.css/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/src/index.css",
"repo_id": "8thwall",
"token_count": 155
} | 1 |
// Copyright (c) 2021 8th Wall, Inc.
/* globals AFRAME */
AFRAME.registerComponent('shoot-tomato', {
init() {
const camera = document.getElementById('camera')
const splatSnd = document.querySelector('#splat').components.sound
this.el.sceneEl.addEventListener('touchstart', (event) => {
// Create el... | 8thwall/web/examples/aframe/tossobject/toss-object.js/0 | {
"file_path": "8thwall/web/examples/aframe/tossobject/toss-object.js",
"repo_id": "8thwall",
"token_count": 1413
} | 2 |
/*
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/alignpat.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/alignpat.js",
"repo_id": "8thwall",
"token_count": 3098
} | 3 |
/*
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/version.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/version.js",
"repo_id": "8thwall",
"token_count": 6046
} | 4 |
// Copyright (c) 2018 8th Wall, Inc.
// A pipeline module that throws an error after 300 frames -- illustrates the error handling in
// RuntimeError.pipelineModule().
const throwerrorPipelineModule = () => {
let frame = 0
return {
name: 'throwerror',
onUpdate: () => { if (++frame > 300) { throw Error('Too ... | 8thwall/web/xrextras/index.js/0 | {
"file_path": "8thwall/web/xrextras/index.js",
"repo_id": "8thwall",
"token_count": 446
} | 5 |
#almostthereContainer {
z-index: 820;
background-color: #101118;
}
.xrextras-old-style #almostthereContainer {
background-color: #FFFFFF;
}
#qrcode {
background-color: white;
margin: 0 auto;
width: 250px;
height: 250px;
padding: 8px;
border-radius: 20px;
box-sizing: content-box;
}
#qrcode>svg {
... | 8thwall/web/xrextras/src/almosttheremodule/almost-there-module.css/0 | {
"file_path": "8thwall/web/xrextras/src/almosttheremodule/almost-there-module.css",
"repo_id": "8thwall",
"token_count": 1438
} | 6 |
import htmlContent from './media-preview.html'
import './media-preview.css'
import {configure, getConfig} from './capture-config'
const IOS_DOWNLOAD_LOCATION = 'shareddocuments:///private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Downloads/'
const getFileNamePrefix = () => getConfig().fileNamePrefix || ... | 8thwall/web/xrextras/src/mediarecorder/media-preview.js/0 | {
"file_path": "8thwall/web/xrextras/src/mediarecorder/media-preview.js",
"repo_id": "8thwall",
"token_count": 3564
} | 7 |
<div id="runtimeErrorContainer" class="absolute-fill">
<div id="error_msg_unknown" class="hidden">
<div class="error-text-outer-container">
<div class="error-text-container error-margin-top-5">
<p><img height="75px" src="//cdn.8thwall.com/web/img/runtimeerror/v1/computer-voxel.png" class="floater"><... | 8thwall/web/xrextras/src/runtimeerrormodule/runtime-error-module.html/0 | {
"file_path": "8thwall/web/xrextras/src/runtimeerrormodule/runtime-error-module.html",
"repo_id": "8thwall",
"token_count": 227
} | 8 |
## 新增获取/操作元素
### 1、新增获取元素
```js
document.querySelector("选择器");
document.querySelectorAll("选择器");
```
### 2、新增操作元素类样式
```js
document.querySelector("选择器").classList.add("类样式"); // 添加类样式
document.querySelector("选择器").classList.remove("类样式"); // 移除类样式
document.querySelector("选择器").classList.toggle("类样式"); // 反转类样式(有则... | Daotin/Web/01-HTML/02-HTML5/02-新增获取操作元素,自定义属性.md/0 | {
"file_path": "Daotin/Web/01-HTML/02-HTML5/02-新增获取操作元素,自定义属性.md",
"repo_id": "Daotin",
"token_count": 1970
} | 9 |
## 一、CSS可见性
```css
overflow: hidden; /*溢出隐藏 */
visibility: hidden; /* 隐藏元素 隐藏之后还保留原来的位置。*/
display: none; /* 隐藏元素 隐藏之后不保留原来的位置。*/
display: block; /* 元素可见 */
```
> `display:none` 和`display:block` 常配合js使用(如:鼠标经过时出现,鼠标离开时消失)。
## 二、css之内容移除(logo优化)
### 1、方法一
```css
text-indent: -5000em;
```
> te... | Daotin/Web/02-CSS/01-CSS基础/05-可见性、内容移除、精灵图、属性选择器、滑动门.md/0 | {
"file_path": "Daotin/Web/02-CSS/01-CSS基础/05-可见性、内容移除、精灵图、属性选择器、滑动门.md",
"repo_id": "Daotin",
"token_count": 4192
} | 10 |
# 块元素水平垂直居中(完整版)
内联元素(inline)和行内块元素(inline-block)的水平垂直居中很简单,设置line-height和text-align: center就可以了。
这里主要说块级元素(block)的水平垂直居中方式。
## 水平居中
整体示例代码:
```html
<style>
.center{
border:1px solid red;
/* 填入下列样式代码 */
}
</style>
<div class="center">水平居中</div>
```
### 1、有固定的宽度
- 方法1:只需给需要居中的块级元素加`marg... | Daotin/Web/02-CSS/01-CSS基础/块元素水平垂直居中(完整版).md/0 | {
"file_path": "Daotin/Web/02-CSS/01-CSS基础/块元素水平垂直居中(完整版).md",
"repo_id": "Daotin",
"token_count": 1335
} | 11 |
## 1、JavaScript简介
**JavaScript历史**
要了解JavaScript,我们首先要回顾一下JavaScript的诞生。在上个世纪的1995年,当时的网景公司正凭借其Navigator浏览器成为Web时代开启时最著名的第一代互联网公司。由于网景公司希望能在静态HTML页面上添加一些动态效果,于是叫Brendan Eich这哥们在两周之内设计出了JavaScript语言。你没看错,这哥们只用了10天时间。
为什么起名叫 JavaScript?原因是当时Java语言非常红火,所以网景公司希望借Java的名气来推广,但事实上JavaScript除了语法上有点像 Java,其他部分基本上没啥关系。
**ECMAS... | Daotin/Web/03-JavaScript/01-JavaScript基础知识/01-JavaScript概述.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/01-JavaScript概述.md",
"repo_id": "Daotin",
"token_count": 3193
} | 12 |
## 一、事件冒泡
### 1、事件冒泡
事件冒泡:当有多个元素嵌套,并且这些元素绑定了相同的事件,这时候如果里面的元素事件触发了,那么外面的事件会自动触发。
示例:
```html
<body>
<div id="dv1">
<div id="dv2">
<div id="dv3"></div>
</div>
</div>
<script src="common.js"></script>
<script>
my$("dv1").onclick = function() {
console.... | Daotin/Web/03-JavaScript/02-DOM/08-事件冒泡.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/02-DOM/08-事件冒泡.md",
"repo_id": "Daotin",
"token_count": 5707
} | 13 |
## 1、滑动解锁
要求:滑动滑块到末尾跳转页面,不成功,滑块回到起点。
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
margin: ... | Daotin/Web/03-JavaScript/02-DOM/案例01:几种常见的验证码.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/02-DOM/案例01:几种常见的验证码.md",
"repo_id": "Daotin",
"token_count": 5459
} | 14 |
对象的深拷贝
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
</body>
<script src="js/objectDepthCopy.js"></script>
<scr... | Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例01:对象深拷贝.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例01:对象深拷贝.md",
"repo_id": "Daotin",
"token_count": 1357
} | 15 |
## 一、服务器和客户端
服务器和客户端都是电脑,在硬件层面上没有明显的划分,配置很差的个人电脑任然可以作为服务器。
服务器如果想对外提供服务,必须安装相应的软件,所以不是服务器这台电脑可以提供服务,而是其安装的软件提供的服务。比如:
HTTP网页服务:Apache,Tomcat,IIS等
文件上传下载服务:VsFtp等
邮箱服务:SendMail 等
数据存储服务:MySql,Oracle 等
### 1、网路相关概念
**IP 地址:**
地址是为了标注某个地点,方便查找。
互联网上有很多公司,每家公司都有自己的服务器。通过 IP 地址就可以找到特定的服务器,使用这台服务器提供的服务。比如百度服务器的地址... | Daotin/Web/05-PHP&数据库/01-服务器相关概念.md/0 | {
"file_path": "Daotin/Web/05-PHP&数据库/01-服务器相关概念.md",
"repo_id": "Daotin",
"token_count": 3145
} | 16 |
跨域这个概念来自一个叫 “同源策略” 的东西。同源策略是浏览器上为了安全考虑实施的非常重要的安全机制。
Ajax 默认只能获取到同源的数据,对于非同源的数据,Ajax是获取不到的。
**什么是同源?**
协议、域名、端口全部相同。
比如一个界面地址为:http://www.example.com/dir/page.html 这个网址,在这个地址中要去访问下面服务器的数据,那么会发生什么情况呢?
| URL | 结果 | 原因 |
| --------------------------------------... | Daotin/Web/06-Ajax/10-跨域.md/0 | {
"file_path": "Daotin/Web/06-Ajax/10-跨域.md",
"repo_id": "Daotin",
"token_count": 13776
} | 17 |
## 一、常见的响应式框架
随着Web应用变的越来越复杂,在大量的开发过程中我们发现有许多功能模块非常相似,比如轮播图、分页、选项卡、导航栏等,开发中往往会把这些具有通用性的功能模块进行一系列封装,使之成为一个个组件应用到项目中,可以极大的节约开发成本,将这些通用的组件缩合到一起就形成了前端框架。
**常见的响应式框架有:**
**1、Bootstrap**
官网:http://www.bootcss.com/

简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。
来自 Twitter,粉丝众多,是目前最受欢迎的前端框架。
**2、Amaze UI**
官网:... | Daotin/Web/07-移动Web开发/07-Bootstrap.md/0 | {
"file_path": "Daotin/Web/07-移动Web开发/07-Bootstrap.md",
"repo_id": "Daotin",
"token_count": 6065
} | 18 |
// 封装移动端的tap事件
var fingerTap = {
tap: function (dom, callback) {
// 判断dom是否存在
if((!dom) || (typeof dom != "object")) {
return;
}
var startX, startY, endX, endY, startTime, endTime;
dom.addEventListener("touchstart", function (e) {
// 不止一个手指
... | Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/js/tap.js/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/js/tap.js",
"repo_id": "Daotin",
"token_count": 928
} | 19 |
/* 头部块 */
.wjs-header {
height: 50px;
line-height: 50px;
border-bottom: 1px solid #ccc;
}
.wjs-header .row {
height: 100%;
text-align: center;
}
.wjs-header .row > div:nth-of-type(-n+3) {
border-right: 1px solid #ccc;
}
.wjs-header .row .code {
display: block;
position: relative;
}
.wjs-header .row .cod... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/css/wjs-index.css/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/css/wjs-index.css",
"repo_id": "Daotin",
"token_count": 3373
} | 20 |
/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */
(function( w ){
"use strict";
//exposed namespace
var respond = {};
w.respond = respond;
//define update even in native-mq-supporting browsers, to avoid errors
respond.update = function(){};
//define ajax o... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/respond/respond.js/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/respond/respond.js",
"repo_id": "Daotin",
"token_count": 4097
} | 21 |
## 1、内置模块的应用
### 1.1、node 路由
在 `http.createServer((req, res) => {});`中
通过 `req.url`可以获取客户端传递的路由地址。
通常,http.createServer函数至少执行两次,一次是根路径`/` ,一次是`/favicon.ico`
当我们访问 `http://localhost:3000` 的时候,默认的是主路径和图标路径。
如果有路由的时候,比如:`http://localhost:3000/other` 的时候,我们希望访问的是`other.html`,此时`req.url` 的地址为`/other` 和 `/favicon.ico`... | Daotin/Web/10-Node.js/03-内置函数的应用.md/0 | {
"file_path": "Daotin/Web/10-Node.js/03-内置函数的应用.md",
"repo_id": "Daotin",
"token_count": 8579
} | 22 |
## 使用webpack开发vue
### 1、搭建webpack环境
```
npm init -y
```
这里只使用到html-webpack-plugin,ES6转换到ES5模块和vue模块
```
npm i html-webpack-plugin babel-loader@7.1.5 babel-core babel-preset-env webpack@3 -D
npm i vue -S
```
### 2、配置config文件
```js
let Hwp = require('html-webpack-plugin');
module.exports = {
entry: __dir... | Daotin/Web/12-Vue/11-结合webpack开发vue.md/0 | {
"file_path": "Daotin/Web/12-Vue/11-结合webpack开发vue.md",
"repo_id": "Daotin",
"token_count": 1154
} | 23 |
## 一、渲染元素标签是否显示
> 在jsx语法中,标签也是一种类型,可以直接赋值给变量,那么我们就可以通过一个flag来判断是否显示该变量,也就是这个标签。
```jsx
import ReactDOM from 'react-dom';
import React from 'react';
import propTypes from 'prop-types'
class Box extends React.Component {
constructor() {
super();
this.state = {
isShow: false,
};
... | Daotin/Web/13-React/02-各种标签渲染,数据双向绑定.md/0 | {
"file_path": "Daotin/Web/13-React/02-各种标签渲染,数据双向绑定.md",
"repo_id": "Daotin",
"token_count": 3063
} | 24 |
## 一、Angular简介
### 1、什么是 Angular?
Angular 是一个开发平台。它能帮你更轻松的构建 Web 应用。Angular 集声明式模板、依赖注入、端到端工具和一些最佳实践于一身,为你解决开发方面的各种挑战。Angular 为开发者提升构建 Web、手机或桌面应用的能力。
### 2、Angular代码整体架构
Angular项目是由一个个模块组成。
**并且至少会有一个主模块,其他的模块在使用的时候,需要导入到主模块中使用。**
一个模块中只要包含三个部分:
- **组件 component:主要是显示视图的html**
- **管道 pipe:类似于过滤器的功能**
- **服务 s... | Daotin/Web/14-Angular/01-Angular简介,项目搭建,组件创建,Typescript.md/0 | {
"file_path": "Daotin/Web/14-Angular/01-Angular简介,项目搭建,组件创建,Typescript.md",
"repo_id": "Daotin",
"token_count": 2942
} | 25 |
/*
Navicat Premium Data Transfer
Source Server : 阿里云MySQL
Source Server Type : MySQL
Source Server Version : 50718
Source Host : rm-wz9lp2i9322g0n06zvo.mysql.rds.aliyuncs.com:3306
Source Schema : web
Target Server Type : MySQL
Target Server Version : 50718
File Encoding ... | Humsen/web/docs/数据库部署/第1步 - 创建数据库/visit_total.sql/0 | {
"file_path": "Humsen/web/docs/数据库部署/第1步 - 创建数据库/visit_total.sql",
"repo_id": "Humsen",
"token_count": 346
} | 26 |
package pers.husen.web.bean.vo;
import java.util.Date;
/**
* @author 何明胜
*
* 2017年9月30日
*/
public class VisitTotalVo {
private int visitId;
private int visitCount;
private Date visitDate;
/**
* @return the visitDate
*/
public Date getVisitDate() {
return visitDate;
}
/**
* @param visitDate the visi... | Humsen/web/web-core/src/pers/husen/web/bean/vo/VisitTotalVo.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/bean/vo/VisitTotalVo.java",
"repo_id": "Humsen",
"token_count": 318
} | 27 |
package pers.husen.web.common.helper;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.GeneralSecurityException;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Authenticato... | Humsen/web/web-core/src/pers/husen/web/common/helper/SendEmailHelper.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/common/helper/SendEmailHelper.java",
"repo_id": "Humsen",
"token_count": 3635
} | 28 |
package pers.husen.web.dao;
import java.util.ArrayList;
import pers.husen.web.bean.vo.MessageAreaVo;
/**
* @author 何明胜
*
* 2017年9月25日
*/
public interface MessageAreaDao {
/**
* 查询留言区所有留言
*
* @param messageId
* @return
*/
public ArrayList<MessageAreaVo> queryAllMessageArea(int messageId);
/**
* ... | Humsen/web/web-core/src/pers/husen/web/dao/MessageAreaDao.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dao/MessageAreaDao.java",
"repo_id": "Humsen",
"token_count": 194
} | 29 |
package pers.husen.web.dbutil.assist;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
/**
* 设置PreparedStatement参数的工具类
*
* @author : 何明胜
*
* 2017年9月21日
*/
public class SetPsParamUtils {
/**
* 判断参数类型并转换
*
* @param index
* @param obj
... | Humsen/web/web-core/src/pers/husen/web/dbutil/assist/SetPsParamUtils.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/assist/SetPsParamUtils.java",
"repo_id": "Humsen",
"token_count": 906
} | 30 |
package pers.husen.web.service;
import java.util.ArrayList;
import pers.husen.web.bean.vo.CodeLibraryVo;
import pers.husen.web.dao.CodeLibraryDao;
import pers.husen.web.dao.impl.CodeLibraryDaoImpl;
/**
* @author 何明胜
*
* 2017年9月28日
*/
public class CodeLibrarySvc implements CodeLibraryDao{
private static final Co... | Humsen/web/web-core/src/pers/husen/web/service/CodeLibrarySvc.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/service/CodeLibrarySvc.java",
"repo_id": "Humsen",
"token_count": 534
} | 31 |
package pers.husen.web.servlet.contact;
import java.io.IOException;
import java.io.PrintWriter;
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... | Humsen/web/web-core/src/pers/husen/web/servlet/contact/SendEmailServlet.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/contact/SendEmailServlet.java",
"repo_id": "Humsen",
"token_count": 475
} | 32 |
package pers.husen.web.servlet.userinfo;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servle... | Humsen/web/web-core/src/pers/husen/web/servlet/userinfo/UserInfoSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/userinfo/UserInfoSvt.java",
"repo_id": "Humsen",
"token_count": 1729
} | 33 |
@charset "UTF-8";
/* 留言区分页的CSS */
.pager-box:after {
display: block;
height: 0;
visibility: hidden;
clear: both;
content: '';
}
.pager {
float: left;
position: relative;
left: 50%;
font-family: 微软雅黑;
}
.pager a, .pager span {
position: relative;
left: -50%;
display: block;
float: left;
margin-left: 5p... | Humsen/web/web-mobile/WebContent/css/message/pager.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/message/pager.css",
"repo_id": "Humsen",
"token_count": 321
} | 34 |
/**
* 加载代码目录
*
* @author 何明胜
*
* 2017年9月18日
*/
/** 加载插件 * */
$.ajax({
url : '/plugins/plugins.html', // 这里是静态页的地址
async : false,
type : 'GET', // 静态页用get方法,否则服务器会抛出405错误
success : function(data) {
$($('head')[0]).find('script:first').after(data);
}
});
$(function() {
/** 顶部导航栏 **/
$.ajax({
url : '/... | Humsen/web/web-mobile/WebContent/js/article/code-library.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/article/code-library.js",
"repo_id": "Humsen",
"token_count": 2062
} | 35 |
/**
* 初始化菜单栏
*
* @author 何明胜
*
* 2017年9月27日
*/
$(function(){
var menuBarNo = Number($('#menuBarNo').val());
menuBarInit(menuBarNo);
});
function menuBarInit(menuBarNo){
var menu_bar = '<aside id="fh5co-aside" role="complementary" class="border js-fullheight">'
+'<h1 id="fh5co-logo">'
+'<a href="/" cla... | Humsen/web/web-mobile/WebContent/js/navigation/left-menu-bar.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/navigation/left-menu-bar.js",
"repo_id": "Humsen",
"token_count": 677
} | 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/display/panel.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/display/panel.js",
"repo_id": "Humsen",
"token_count": 1192
} | 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/fold/xml-fold.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/fold/xml-fold.js",
"repo_id": "Humsen",
"token_count": 2890
} | 38 |
.CodeMirror-merge {
position: relative;
border: 1px solid #ddd;
white-space: pre;
}
.CodeMirror-merge, .CodeMirror-merge .CodeMirror {
height: 350px;
}
.CodeMirror-merge-2pane .CodeMirror-merge-pane { width: 47%; }
.CodeMirror-merge-2pane .CodeMirror-merge-gap { width: 6%; }
.CodeMirror-merge-3pane .CodeMirro... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/merge/merge.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/merge/merge.css",
"repo_id": "Humsen",
"token_count": 1402
} | 39 |
.CodeMirror-search-match {
background: gold;
border-top: 1px solid orange;
border-bottom: 1px solid orange;
-moz-box-sizing: border-box;
box-sizing: border-box;
opacity: .5;
}
| Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/search/matchesonscrollbar.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/search/matchesonscrollbar.css",
"repo_id": "Humsen",
"token_count": 73
} | 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"), require("../htmlmixed/htmlmixed"),
require("../../a... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/django/django.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/django/django.js",
"repo_id": "Humsen",
"token_count": 1016
} | 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"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby"))... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/haml/haml.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/haml/haml.js",
"repo_id": "Humsen",
"token_count": 2304
} | 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"), require("../xml/xml"), require("../meta"));
else if (type... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/markdown/markdown.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/markdown/markdown.js",
"repo_id": "Humsen",
"token_count": 10040
} | 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/puppet/puppet.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/puppet/puppet.js",
"repo_id": "Humsen",
"token_count": 2944
} | 44 |
// 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/smalltalk/smalltalk.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/smalltalk/smalltalk.js",
"repo_id": "Humsen",
"token_count": 1847
} | 45 |
.cm-tw-syntaxerror {
color: #FFF;
background-color: #900;
}
.cm-tw-deleted {
text-decoration: line-through;
}
.cm-tw-header5 {
font-weight: bold;
}
.cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
padding-left: 10px;
}
.cm-tw-box {
border-top-width: 0px ! important... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/tiki/tiki.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/tiki/tiki.css",
"repo_id": "Humsen",
"token_count": 177
} | 46 |
/*
Copyright (C) 2011 by MarkLogic Corporation
Author: Mike Brevoort <mike@brevoort.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the right... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/xq-dark.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/xq-dark.css",
"repo_id": "Humsen",
"token_count": 1048
} | 47 |
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// CommonJS... | Humsen/web/web-mobile/WebContent/plugins/jquery/js/jquery.cookie.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/jquery/js/jquery.cookie.js",
"repo_id": "Humsen",
"token_count": 1158
} | 48 |
#发送邮箱
email.from.user=yige_robot@foxmail.com
email.from.password=ejmfrxvtxkzygjhj
#接收邮箱
email.to.user=husen@hemingsheng.cn | Humsen/web/web-mobile/config/config.properties/0 | {
"file_path": "Humsen/web/web-mobile/config/config.properties",
"repo_id": "Humsen",
"token_count": 77
} | 49 |
@charset "UTF-8";
.editor-form-div {
margin: 20px 15px;
}
.article-type {
width: initial;
}
.category-width {
width: 220px;
}
.category-input {
margin-left: 8px;
} | Humsen/web/web-pc/WebContent/css/upload/editor-article.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/css/upload/editor-article.css",
"repo_id": "Humsen",
"token_count": 78
} | 50 |
/**
* 首页
*
* @author 何明胜
*
* 2017年12月15日
*/
/** 加载插件 * */
$.ajax({
url : '/plugins/plugins.html', // 这里是静态页的地址
async : false,
type : 'GET', // 静态页用get方法,否则服务器会抛出405错误
success : function(data) {
$($('head')[0]).find('script:first').after(data);
}
});
$(function() {
/** 顶部导航栏 **/
$.ajax({
url : '/mod... | Humsen/web/web-pc/WebContent/js/index/index.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/js/index/index.js",
"repo_id": "Humsen",
"token_count": 853
} | 51 |
table.dataTable {
clear: both;
margin-top: 6px !important;
margin-bottom: 6px !important;
max-width: none !important;
border-collapse: separate !important;
}
table.dataTable td,
table.dataTable th {
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
table.dataTable td.dataTables_empty,
table.data... | Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.bootstrap.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.bootstrap.css",
"repo_id": "Humsen",
"token_count": 1782
} | 52 |
/*
* 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 thead td,
table.dataTable tfoot th,
table.dataTable tfoot td {
pad... | Humsen/web/web-pc/WebContent/plugins/DataTables/css/jquery.dataTables_themeroller.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/css/jquery.dataTables_themeroller.css",
"repo_id": "Humsen",
"token_count": 5359
} | 53 |
env:
browser: true
es6: true
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2019
overrides:
- files:
- "**/*.esm.js"
parserOptions:
sourceType: module
# Globals available in Odoo that shouldn't produce errorings
globals:
_: reado... | OCA/web/.eslintrc.yml/0 | {
"file_path": "OCA/web/.eslintrc.yml",
"repo_id": "OCA",
"token_count": 1744
} | 54 |
[settings]
; see https://github.com/psf/black
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
combine_as_imports=True
use_parentheses=True
line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
e... | OCA/web/.isort.cfg/0 | {
"file_path": "OCA/web/.isort.cfg",
"repo_id": "OCA",
"token_count": 144
} | 55 |
===============
Advanced search
===============
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:49aa0bfa3f44cf2... | OCA/web/web_advanced_search/README.rst/0 | {
"file_path": "OCA/web/web_advanced_search/README.rst",
"repo_id": "OCA",
"token_count": 1989
} | 56 |
* Holger Brunn <hbrunn@therp.nl>
* Rami Alwafaie <rami.alwafaie@initos.com>
* Jose Mª Bernet <josemaria.bernet@guadaltech.es>
* Simone Orsi <simone.orsi@camptocamp.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* `Tecnativa <https://www.tecnativa.com>`_:
* Vicent Cubells
* Jairo Llopis
* Alexandre Díaz
* `DynApps ... | OCA/web/web_advanced_search/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_advanced_search/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 212
} | 57 |
/** @odoo-module **/
import {CustomFilterItem} from "@web/search/filter_menu/custom_filter_item";
import {RecordPicker} from "../../js/RecordPicker.esm";
import {patch} from "@web/core/utils/patch";
/**
* Patches the CustomFilterItem for owl widgets.
*/
patch(CustomFilterItem.prototype, "web_advanced_search.CustomF... | OCA/web/web_advanced_search/static/src/search/filter_menu/custom_filter_item.esm.js/0 | {
"file_path": "OCA/web/web_advanced_search/static/src/search/filter_menu/custom_filter_item.esm.js",
"repo_id": "OCA",
"token_count": 1613
} | 58 |
Allow to set an additional css class to fields in form view.
Use case : you may highlight some fields for training purpose
.. figure:: ../static/description/demo.png
:alt: Colored fields
| OCA/web/web_apply_field_style/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_apply_field_style/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 53
} | 59 |
* Drop module if/when https://github.com/odoo/odoo/pull/66739 is merged.
| OCA/web/web_calendar_slot_duration/readme/ROADMAP.rst/0 | {
"file_path": "OCA/web/web_calendar_slot_duration/readme/ROADMAP.rst",
"repo_id": "OCA",
"token_count": 26
} | 60 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_chatter_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-11 14:37+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Langua... | OCA/web/web_chatter_position/i18n/pt_BR.po/0 | {
"file_path": "OCA/web/web_chatter_position/i18n/pt_BR.po",
"repo_id": "OCA",
"token_count": 522
} | 61 |
# Copyright 2019 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID, api
from .models.res_company import URL_BASE
def uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env["ir.attachment"].search([("url", "=l... | OCA/web/web_company_color/hooks.py/0 | {
"file_path": "OCA/web/web_company_color/hooks.py",
"repo_id": "OCA",
"token_count": 193
} | 62 |
This module change navbar colors based in the company logo colors.
| OCA/web/web_company_color/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_company_color/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 14
} | 63 |
* Stefan Rijnhart <stefan@opener.amsterdam>
* Robin Conjour <rconjour@demolium.com>
* Dhara Solanki <dhara.solanki@initos.com>
| OCA/web/web_copy_confirm/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_copy_confirm/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 54
} | 64 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dark_mode
#
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-Tr... | OCA/web/web_dark_mode/i18n/web_dark_mode.pot/0 | {
"file_path": "OCA/web/web_dark_mode/i18n/web_dark_mode.pot",
"repo_id": "OCA",
"token_count": 386
} | 65 |
from . import models
| OCA/web/web_dashboard_tile/__init__.py/0 | {
"file_path": "OCA/web/web_dashboard_tile/__init__.py",
"repo_id": "OCA",
"token_count": 5
} | 66 |
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="model_tile_rule" model="ir.rule">
<field name="name">tile.owner</field>
<field name="model_id" ref="model_tile_tile" />
<field name="groups" eval="[(4, ref('base.group_user'))]" />
<field name="domain_force">
... | OCA/web/web_dashboard_tile/security/ir_rule.xml/0 | {
"file_path": "OCA/web/web_dashboard_tile/security/ir_rule.xml",
"repo_id": "OCA",
"token_count": 308
} | 67 |
# Copyright 2015 ACSONE SA/NV
# Copyright 2018 Amaris
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Web Dialog Size",
"summary": """
A module that lets the user expand a
dialog box to the full screen width.""",
"author": "ACSONE SA/NV, "
"Therp BV, "
"Si... | OCA/web/web_dialog_size/__manifest__.py/0 | {
"file_path": "OCA/web/web_dialog_size/__manifest__.py",
"repo_id": "OCA",
"token_count": 544
} | 68 |
/** @odoo-module **/
import {ActionDialog} from "@web/webclient/actions/action_dialog";
import {onMounted, useExternalListener} from "@odoo/owl";
import {useListener} from "@web/core/utils/hooks";
import {LegacyComponent} from "@web/legacy/legacy_component";
import {Dialog} from "@web/core/dialog/dialog";
export clas... | OCA/web/web_dialog_size/static/src/js/web_dialog_draggable.esm.js/0 | {
"file_path": "OCA/web/web_dialog_size/static/src/js/web_dialog_draggable.esm.js",
"repo_id": "OCA",
"token_count": 901
} | 69 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_disable_export_group
#
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"
... | OCA/web/web_disable_export_group/i18n/web_disable_export_group.pot/0 | {
"file_path": "OCA/web/web_disable_export_group/i18n/web_disable_export_group.pot",
"repo_id": "OCA",
"token_count": 298
} | 70 |
/** @odoo-module **/
/* Copyright 2020 Tecnativa - João Marques
Copyright 2022 Tecnativa - Víctor Martínez
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */
import tour from "web_tour.tour";
tour.register(
"export_tour_xlsx_button_ok",
{
test: true,
url: "/web#model=ir.ui... | OCA/web/web_disable_export_group/static/tests/web_disable_export_group_tour.esm.js/0 | {
"file_path": "OCA/web/web_disable_export_group/static/tests/web_disable_export_group_tour.esm.js",
"repo_id": "OCA",
"token_count": 437
} | 71 |
# Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import HttpCase, tagged
@tagged("-at_install", "post_install")
class TestQunit(HttpCase):
def test_qunit(self):
... | OCA/web/web_domain_field/tests/test_qunit.py/0 | {
"file_path": "OCA/web/web_domain_field/tests/test_qunit.py",
"repo_id": "OCA",
"token_count": 212
} | 72 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
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"
"C... | OCA/web/web_environment_ribbon/i18n/web_environment_ribbon.pot/0 | {
"file_path": "OCA/web/web_environment_ribbon/i18n/web_environment_ribbon.pot",
"repo_id": "OCA",
"token_count": 202
} | 73 |
============================
Web Numeric Field Formatting
============================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!... | OCA/web/web_field_numeric_formatting/README.rst/0 | {
"file_path": "OCA/web/web_field_numeric_formatting/README.rst",
"repo_id": "OCA",
"token_count": 1227
} | 74 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_group_expand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-02-17 10:45+0000\n"
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
"Language-Tea... | OCA/web/web_group_expand/i18n/ca.po/0 | {
"file_path": "OCA/web/web_group_expand/i18n/ca.po",
"repo_id": "OCA",
"token_count": 413
} | 75 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_help
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-02 20:35+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\... | OCA/web/web_help/i18n/es.po/0 | {
"file_path": "OCA/web/web_help/i18n/es.po",
"repo_id": "OCA",
"token_count": 927
} | 76 |
/** @odoo-module **/
import {Component, EventBus, useRef, useState} from "@odoo/owl";
import {registry} from "@web/core/registry";
export class Highlighter extends Component {
setup() {
this.state = useState({visible: false});
this.bus = this.props.bus;
this.bus.on("hide", this, () => this.... | OCA/web/web_help/static/src/components/highlighter/highlighter.esm.js/0 | {
"file_path": "OCA/web/web_help/static/src/components/highlighter/highlighter.esm.js",
"repo_id": "OCA",
"token_count": 2032
} | 77 |
(function () {
"use strict";
// Those are weak because we don't want to prevent
// GC of the dom nodes when we leave a page
const elementStyleMap = new WeakMap();
const alreadyRemove = new WeakSet();
function changeStyle(nodes) {
nodes.forEach((el) => {
if (el.style.display... | OCA/web/web_hide_field_with_key/static/src/js/hide_custom_hidden_fields.js/0 | {
"file_path": "OCA/web/web_hide_field_with_key/static/src/js/hide_custom_hidden_fields.js",
"repo_id": "OCA",
"token_count": 743
} | 78 |
/** @odoo-module **/
import {registry} from "@web/core/registry";
/**
* Handle 'ir.actions.act_multi' action
* @param {object} action see _handleAction() parameters
* @returns {$.Promise}
*/
async function executeMultiAction({env, action}) {
return action.actions
.map((item) => {
return (... | OCA/web/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.esm.js/0 | {
"file_path": "OCA/web/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.esm.js",
"repo_id": "OCA",
"token_count": 249
} | 79 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# Dorin Hongu <dhongu@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-03 03:50+0000\n"
"... | OCA/web/web_ir_actions_act_window_message/i18n/ro.po/0 | {
"file_path": "OCA/web/web_ir_actions_act_window_message/i18n/ro.po",
"repo_id": "OCA",
"token_count": 392
} | 80 |
# © 2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
| OCA/web/web_listview_range_select/__init__.py/0 | {
"file_path": "OCA/web/web_listview_range_select/__init__.py",
"repo_id": "OCA",
"token_count": 46
} | 81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.