Creating a sample OXD component
https://oxd-int-infinity.orangehrm.com/pages/number-input.html
Steps
- Fork the oxd repository (https://github.com/orangehrm/oxd)
- Setup the repository locally adding correct origin and upstream remotes
Creating a sample OXD component
https://oxd-int-infinity.orangehrm.com/pages/number-input.html
Steps
sudo apt install libnss3-tools
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
const fs = require("fs"); | |
const path = require("path"); | |
const glob = require("glob"); | |
function traverseAndWriteImports(directory, outputFile) { | |
const filePattern = path.join(directory, "**/*.{js,ts}"); | |
const files = glob.sync(filePattern, { | |
ignore: "**/node_modules/**", | |
nodir: true, | |
}); |
const faker = { | |
name: { | |
firstName() { | |
// array containing 100 random first names | |
const firstNames = [ | |
"Tim", | |
"John", | |
"Jane", | |
"Jack", | |
"Jill", |
class SuppressWarningsPlugin { | |
warning; | |
maxWarnings; | |
constructor(maxWarnings = 0) { | |
this.maxWarnings = maxWarnings; | |
} | |
apply(compiler) { | |
compiler.hooks.emit.tap("SuppressWarningsPlugin", (compilation) => { | |
if (!Array.isArray(compilation.warnings)) return; |
(function () { | |
"use strict"; | |
angular.module("app").controller("CounterController", CounterController); | |
CounterController.$inject = ["$scope", "storeService"]; | |
function CounterController($scope, storeService) { | |
var vm = this; |
1.X Folder structure
βββ components
β βββ package.json
β βββ src
β βββ core
β β βββ components
β β βββ Alert
β β βββ alert.scss
β β βββ Alert.vue
#!/bin/bash | |
IP='192.168.1.1' | |
DELAY=5 | |
DATE=$(date '+%d/%m/%Y %H:%M:%S') | |
ping -c 1 $IP &> /dev/null | |
if [[ $? -ne 0 ]]; | |
then |
<?php | |
/** | |
* OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures | |
* all the essential functionalities required for any enterprise. | |
* Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com | |
* | |
* OrangeHRM is free software; you can redistribute it and/or modify it under the terms of | |
* the GNU General Public License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. |