This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.gramant.adplanner.auth; | |
import io.thedocs.soyuz.to; | |
import lombok.AllArgsConstructor; | |
import org.jooq.DSLContext; | |
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; | |
import org.springframework.security.web.authentication.rememberme.PersistentTokenRepository; | |
import org.springframework.stereotype.Repository; | |
import java.util.Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<databaseChangeLog | |
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | |
<changeSet id="20230213.f1.xml" author="fbelov"> | |
<sql> | |
CREATE TABLE persistent_logins_with_history ( | |
username VARCHAR(64) NOT NULL, | |
series VARCHAR(64) NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.gramant.adplanner.auth; | |
import org.springframework.security.core.userdetails.UserDetails; | |
import org.springframework.security.core.userdetails.UserDetailsService; | |
import org.springframework.security.web.authentication.rememberme.*; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.util.Arrays; | |
import java.util.Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class PreloadingImageBuilder extends StatefulWidget { | |
final ImageProvider imageProvider; | |
final AsyncWidgetBuilder<dynamic> builder; | |
PreloadingImageBuilder({this.imageProvider, this.builder}); | |
@override | |
_PreloadingImageBuilderState createState() => _PreloadingImageBuilderState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:evtrip/utils/my_future_builder.dart'; | |
import 'package:flutter/widgets.dart'; | |
class MyFutureNullableBuilder extends StatelessWidget { | |
final Future<bool> future; | |
final AsyncWidgetBuilder<bool> builder; | |
MyFutureNullableBuilder({ | |
Key key, | |
Future<dynamic> future, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:evtrip/utils/my_future_nullable_builder.dart'; | |
import 'package:flutter/widgets.dart'; | |
class PreloadingImageBuilder extends StatefulWidget { | |
final ImageProvider imageProvider; | |
final AsyncWidgetBuilder<dynamic> builder; | |
PreloadingImageBuilder({this.imageProvider, this.builder}); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from '@angular/core'; | |
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from '@angular/common/http'; | |
import {Observable} from "rxjs"; | |
import {map} from "rxjs/operators"; | |
@Injectable() | |
export class DateHttpInterceptor implements HttpInterceptor { | |
// Migrated from AngularJS https://raw.githubusercontent.com/Ins87/angular-date-interceptor/master/src/angular-date-interceptor.js | |
private static iso8601Date = /^\d{4}-\d\d-\d\d?$/; | |
private static iso8601DateTime = /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class MyStreamBuilder<T> extends StatelessWidget { | |
final T initialData; | |
final AsyncWidgetBuilder<T> builder; | |
final Stream<T> stream; | |
const MyStreamBuilder({ | |
Key key, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name your-domain.com; | |
access_log /var/log/jj-dashboard/nginx.access.log; | |
error_log /var/log/jj-dashboard/nginx.error.log; | |
root /opt/adv/jj-dashboard-frontend/; | |
index index.html index.htm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import xml configuration | |
@ImportResource("classpath:applicationContext.xml") | |
//import java configuration | |
@Import({App.Config.class, App.JobsConfig.class}) |
NewerOlder