passbolt-styleguide
Version:
Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.
107 lines (104 loc) โข 3.28 kB
JavaScript
/**
* Default props
* @returns {*}
*/
import {defaultAppContext} from "../../contexts/AppContext.test.data";
export function defaultProps() {
return {
context: defaultAppContext(),
prepareResourceContext: {
settings: {
default_generator: "passphrase",
generators: [
{
"name": "Password",
"type": "password",
"default_options": {
"length": 18,
"look_alike": true,
"min_length": 8,
"max_length": 128,
},
"masks": [
{
"name": "upper",
"label": "A-Z",
"characters": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"active": true
},
{
"name": "lower",
"label": "a-z",
"characters": "abcdefghijklmnopqrstuvwxyz",
"active": true
},
{
"name": "digit",
"label": "0-9",
"characters": "0123456789",
"active": true
},
{
"name": "special_char1",
"label": "# $ % & @ ^ ~",
"characters": "#$%&@^~",
"active": true
},
{
"name": "parenthesis",
"label": "{ [ ( | ) ] ] }",
"characters": "([|])",
"active": true
},
{
"name": "special_char2",
"label": ". , : ;",
"characters": ".,:;",
"active": true
},
{
"name": "special_char3",
"label": "' \" `",
"characters": "'\"`",
"active": true
},
{
"name": "special_char4",
"label": "/ \\ _ -",
"characters": "/\\_-",
"active": true
},
{
"name": "special_char5",
"label": "< * + ! ? =",
"characters": "<*+!?=",
"active": true
},
{
"name": "emoji",
"label": "๐",
"characters": "๐๐๐๐๐๐
๐๐คฃ๐ฅฒโบ๏ธ๐๐๐๐๐๐๐๐ฅฐ๐๐๐๐๐๐๐๐๐คช๐คจ๐ง๐ค๐๐ฅธ๐คฉ๐ฅณ๐๐๐๐๐๐๐โน๏ธ๐ฃ๐๐ซ๐ฉ๐ฅบ๐ข๐ญ๐ค๐ ๐ก๐คฌ๐คฏ๐ณ๐ฅต๐ฅถ๐ฑ๐จ๐ฐ๐ฅ๐๐ค๐ค๐คญ๐คซ๐คฅ๐ถ๐๐๐ฌ๐๐ฏ๐ฆ๐ง๐ฎ๐ฒ๐ฅฑ๐ด๐คค๐ช๐ต๐ค๐ฅด๐คข๐คฎ๐คง๐ท๐ค๐ค๐ค๐ค ๐๐ฟ๐น๐บ๐คก๐ฉ๐ป๐โ ๏ธ๐ฝ๐พ๐ค๐๐บ๐ธ๐น๐ป๐ผ๐ฝ๐๐ฟ๐พ"
}
],
},
{
"name": "Passphrase",
"type": "passphrase",
"default_options": {
"word_count": 8,
"word_case": "lowercase",
"min_word": 4,
"max_word": 40,
"separator": " "
},
}
]
},
onPasswordGenerated: jest.fn()
},
history: {
push: jest.fn(),
goBack: jest.fn()
}
};
}