Skip to content

Instantly share code, notes, and snippets.

View StErMi's full-sized avatar
🔥
let's go!

StErMi StErMi

🔥
let's go!
View GitHub Profile
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;
contract Require {
event Logme();
constructor() {}
@StErMi
StErMi / sentry.ts
Created April 20, 2021 07:11
Sentry configuration for React app
/* eslint-disable no-process-env */
import * as Sentry from '@sentry/react';
import {Integrations} from '@sentry/tracing';
if (
process.env.REACT_APP_ENVIRONMENT === 'production' ||
process.env.REACT_APP_ENVIRONMENT === 'staging'
) {
Sentry.init({
environment: process.env.REACT_APP_ENVIRONMENT,
@StErMi
StErMi / sentry.ts
Created April 19, 2021 06:47
Sentry configuration for Angular app
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import * as Sentry from '@sentry/angular';
import { Integrations } from '@sentry/tracing';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
Sentry.init({
environment: environment.environment,
@StErMi
StErMi / manifest.json
Last active February 15, 2018 12:53
Example of manifest.json to directly load a local json inside a component model
{
"_version": "1.1.0",
"sap.app": {
"dataSources": {
"init_data_alias": {
"uri": "model/init_data.json",
"type": "JSON"
}
}
},
@StErMi
StErMi / parameters.md
Last active September 12, 2017 15:09
openui5-multiinputdialog Parameters
Name Type Default Description
selectDialogFilterKeys string[] null List of keys to filter select dialog items with
selectDialogMode String CheckSelected HideSelected
@StErMi
StErMi / methods.md
Created September 12, 2017 15:05
openui5-multiinputdialog Methods
Name Description
setSelectDialogTitle Set the SelectDialog Title
setSelectDialogNoDataText Set the SelectDialog text when there's no item available
setSelectDialogMultiSelect Set the SelectDialog multiselect mode
setSelectDialogGrowingThreshold Set the SelectDialog growing threshold
setSelectDialogContentWidth Set the SelectDialog content width
setSelectDialogRememberSelections Set if the SelectDialog should remember selections
setSelectDialogContentHeight Set the SelectDialog content height
existToken Check if a Token already exists in the MultiInput
@StErMi
StErMi / view.xml
Created September 12, 2017 15:01
openui5-multiinputdialog View.xml
<df:MultiInputDialog
suggestionItems="{oData>/Customers}"
tokens="{oDataModel>/tokens}"
tokenUpdate="onTokenUpdate"
selectDialogItems="{oData>/Customers}"
selectDialogFilterKeys="ContactName,ContactTitle"
selectDialogMultiSelect="true">
<df:suggestionItems>
<core:Item
key="{oData>CustomerID}"
@StErMi
StErMi / manifest.json
Created September 12, 2017 14:59
openui5-multiinputdialog manifest.json
"sap.ui5": {
...
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
...
"it.designfuture.multiinputdialog": {}
}
},
"resourceRoots": {
@StErMi
StErMi / openui5-toastr-methods.md
Created September 8, 2017 08:27
openui5-toastr Methods
Name Description
info Show an info toast
success Show a success toast
warning Show an warning toast
error Show an error toast
clearToast Clear a specific toast
clearLastToast Clear the last toast showed
clearAllToast Clear all the toasts stacked